3 Dec 18, 2013

Monitoring ’dd’ progress

On Linux, to view the progress of the file/disk copy tool dd, you could send the USR1 signal to get a progress output. This apparently doesn’t work on Apple’s OS.

However, with Activity Monitor, it’s easy to see the progress of dd when, for example, copying an operating system image onto a USB (which can take a while…). Simply compare the size of the image with the “bytes written” column to get a good idea of how much progress it has done:

dd progress with Activity Monitor

If you need to view more detailed progress, or use dd lot, you can try installing pv, a utility which echoes the amount of data piped through it. One would use it with dd like this:

dd if=/file/image | pv | of=/dev/disk8

That would render something like this, letting you know the progress:

1,38MiB 0:00:08 [  144kiB/s]

Also, with pv, you could specify the –size parameter to get an estimation of the time it will take to finish. pv can be installed with, for example, Homebrew.


3 Responses to “Monitoring ’dd’ progress”

  1. sadads Says:

    It’s very effortless to find out any topic on web as compared to
    textbooks, as I found this paragraph at this website.

  2. Justin Says:

    You could also press Ctrl + T

  3. thePsguy Says:

    ^ Justin FTW!

Leave a Reply