Progress Indicator while using dd
While using dd to duplicate large amounts of data, it is often nice to get some kind of progress information. If you're dd'ing to a file, then it's easy to open another terminal window and check the size of the target file on a regular basis, but if you're dd'ing to a device, then it gets a little trickier.
What I've resorted to doing is starting the dd process in one terminal window, and then open up another one. In this second one, I type:
Terminal #1
dd if=/dev/disk3 of=/dev/disk0 bs=1m conv=noerror,sync
Terminal #2
while true; do killall -INFO dd; sleep 10; done
Nice and easy, and it will cause the dd process to spit out it's status every 10 seconds (change the value in sleep as required
The output from dd will be the normal output it writes, when it finishes, like:
43957+0 records in
43957+0 records out
46092255232 bytes transferred in 9797.445767 secs (4704518 bytes/sec)

0 Comments:
Post a Comment
<< Home