May 28, 2017 | 2:12 pm
You are here:  / HOWTO / [HOWTO] Show the progress or status of dd

[HOWTO] Show the progress or status of dd

Needed to dd a 40Gb hard drive today to another box and wanted to know how far along it has gotten so I can estimate how long I have to wait.

First off, launch dd as a background process (or run it in it’s own terminal):

root@test # dd if=/dev/hda of=/dev/hdb &
[1] 23769
root@test #

dd will just sit there and show nothing at all until it is finished.  Note that 23769 is the process identifier (pid)

So, to see how things are going, type the following:

root@test # kill -SIGUSR1 23769
91215+0 records in
91214+0 records out
46701568 bytes (47 MB) copied, 18.4737 s, 2.5 MB/s
root@test #

So there you go.  I have copied 47 megs and dd is copying at 2.5MB/s

If you run dd normally (not as a background process) you will need to run the following command to find out it’s pid:

root@test# ps -aux | grep dd
root     23769  0.0  0.9  33784  9420 ?        R+   Jan29   0:04 dd if=/dev/hda of=/dev/hdb
root@test #

The first number is the pid.  Now you can run the kill command stated above to get the progress.  The progress will show up in the terminal that you started the DD process in.