I have been trying to benchmark how long it takes to read from and write to the entire available space in the FAT filesystem on a 3.5" floppy disk. Reading wasn't much of an issue. As long as the file has not been read prior to the test, I can simply run time cp /media/user/disk/file .
. However, writing is proving more troublesome.
If I use cp
as with reading, I get a result of near-zero. The command finishes and the drive keeps writing for the next 45 seconds or so. I also tried using dd if=/dev/urandom of=/media/user/disk/file bs=1457664 count=1
to generate random data on the fly to put on the disk but with the same result. The final solution I tried was pv file > /media/user/disk/file
, again with the same result, just presented differently. At least I found the claimed write speed of 192MiB/s amusing.
I doubt it makes a great deal of difference with something like this, but I am running Ubuntu 18.04 x64 MATE. The drive uses USB for power and data transfer.
rsync
with -n option and -v ? – abu_bua Jul 06 '18 at 16:08