DD Progress

Sometimes you’ll want to know how far along ‘dd’ is in a copy. It’s not hard to do but it’s hard to remember. If you send a USR1 signal to the ‘dd’ process it will print the current progress. Here’s an example:

# dd if=image.dd of=/dev/sdb bs=$((1024*1024))&
# pgrep -l dd
2 kthreadd
4478 dd
# kill -USER1 4478
5122433+0 records in
5122433+0 records out
2622685696 bytes (2.6 GB) copied, 8161.5 s, 321 kB/s
Advertisements
This entry was posted in Geek, Tips. Bookmark the permalink.

One Response to DD Progress

  1. Al says:

    Thanks for that tip – I’ve wanted that for years!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s