Page 1 of 1

How to copy file to sdcard and show progress?

Posted: 18 Jun 2015, 02:15
by Slaxmax
How to copy file to sdcard and show progress?

I tried (example)

Code: Select all

rsync -ah --progress /home/guest/test.img /mnt/sdb1/
but not work
the terminal show 100MB/s and exit command without warning.
The file is copied, but I need wait a few minutes to unmount usb reader sdcard
I use KDE4 x64

Re: How to copy file to sdcard and show progress?

Posted: 18 Jun 2015, 14:56
by donald
What is the size of the "test.img"?
because "--progress" is working fine when I do your rsync command with a ~1GB file.
Small Files may be written to a write cache, before they were actually copied
to the device. (Therefore the "umount" time delay).
If you like to experiment, disable the write cache (if any) with
hdparm -W0 /dev/sdX

Re: How to copy file to sdcard and show progress?

Posted: 18 Jun 2015, 19:58
by Slaxmax
Really only works with large files.
I tried with a 3GB file, but the transfer starts high ~70MB/s and goes down ~300KB/s and then stabilizes ~4-5MB/s.
cache not activated here
Thanks