2

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?

0

3 Answers 3

4

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.

1
  • 1
    Check the man page for dd -- in at least some versions, you need to send it SIGINFO, not SIGUSR1. Aug 23, 2010 at 0:19
2

PV should work:

dd if=huge_disk | pv -rb >/dev/sd_restore
1
  • Great idea. Unfortunately, I already started restoring :(
    – Omar
    Aug 22, 2010 at 19:55
0

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.

You must log in to answer this question.

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