Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a huge disk image backed up using dd. I need to restore the disk image but dd is very silent.

How can I monitor its progress?

share|improve this question

migrated from Aug 22 '10 at 22:00

This question came from our site for professional and enthusiast programmers.

Execute the following command in the second terminal:

kill -USR1 nnn

where nnn is the PID of the running dd process.

dd will print its I/O statistics to the standard error.

share|improve this answer
Check the man page for dd -- in at least some versions, you need to send it SIGINFO, not SIGUSR1. – Gordon Davisson Aug 23 '10 at 0:19

PV should work:

dd if=huge_disk | pv -rb >/dev/sd_restore
share|improve this answer
Great idea. Unfortunately, I already started restoring :( – Omar Aug 22 '10 at 19:55

You can make the transfer happen faster by increasing the default block size for the transfer:

dd if=/sda bs=1M | pv -rb >/dev/sdb

Remember to only use this with both drives unmounted, or you could end up with a broken filesystem on the destination drive if either drive is written to during the transfer.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .