Anyway, most of us, who copy large files to a USB stick, somewhat more often, know the situation... not having a clue how much more time it will take or rather, how much data was written to the stick. The progress bar and the amount of data seem to freeze at some high value, and we have to sit back and give it some (undefined) time to complete...
Here is my unrefined script-workaround to amend the situation a bit. Feel free to improve it in all ways you find necessary (it's completely Open Source ):
Code: Select all
#! /bin/bash
while [ $(awk "{ print \$9 }" /sys/block/sdb/stat) -gt 0 ]
do
let DataWrittenUSB=$(awk "{ print \$7 }" /sys/block/sdb/stat)*512/1000000
notify-send -t 5 $DataWrittenUSB'MB written to USB...'
sleep 5
done
notify-send "Copy to USB has finished/not started."
/sys/log
as it may not be sdb
as is on my machine. One other thing, you need to know the sector size of your USB stick and if it's not 512 bytes, change that accordingly here:Code: Select all
/sys/block/sdb/stat)*<type sector size here>/1024/1024
notify-send
to take it on (and it doesn't steel the focus). Creates a bundle of notifications, in the process, but what's perfect these days?.. Cheers!