2

My system is running the command sudo dd if=/home/vico/file.iso of=/dev/sdb1, it returns control inmediately, but the transfer takes a while. How to know that the whole process has ended?

5

Method 1

Rewrite your command like this

sudo dd if=/home/vico/file.iso of=/dev/sdb1 status=progress

Sample output:

462858752 bytes (463 MB, 441 MiB) copied, 38 s, 12,2 MB/s

dd in GNU Coreutils 8.24 (Ubuntu 16.04 and newer) have this status option to display progress.

Method 2

Install pv

sudo apt-get install pv

Some examples

pv -n /dev/urandom | dd of=/dev/null
pv -tpreb source.iso | dd of=/dev/BLABLA bs=4096 conv=notrunc,noerror

More info can be found here

  • 1
    It works nicely, Thx, Luka! – nightcod3r Mar 4 '17 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.