Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Aug 22 '10 at 22:00

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

3 Answers 3

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
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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