Did you know?

Check process when using dd

Like most of you know the dd command is lacking output. When you are burning a image or similar to a USB stick is in general a long wait without knowing the progress.


the command dd has know output when running for example:

sudo dd if=~/linuxmint-17.3-cinnamon-64bit.iso of=/dev/sdb1 oflag=direct  bs=1048576

shows no output, is just finished when done. for a slow USB disk or a large image that can be some time. But how to check the progress?


Actually is simple, you just need the right command. In fact its a kill command.

ps -ef | grep cinnamon | awk '{ print $2 }'

gives the PID for your dd command, next run:

sudo kill -USR1 ${pid}

Once execute it will show the progress on the terminal like this:

138+0 records in
138+0 records out
144703488 bytes (145 MB) copied, 32,8308 s, 4,4 MB/s

Thats all.