Since dd
on Apple does not support progress parameters via [Wayback] macos dd progress – Google Search:
- [Wayback] Quick: dd with progress indication on macOS
A nice way I found to get progress indication whilst still being able to benefit from the huge speed increase in using
/dev/rdiskX
is to install a tool calledpv
, also known as [WayBack] Pipe Viewer.Example:
sudo dd if=/dev/rdiskX bs=1m | pv -s 64G | sudo dd of=/dev/rdiskY bs=1m
Another way to achieve something similar would be to use brew to install
coreutils
, which will come with a newer version of dd that supports the status option.Example:
gdd if=/dev/diskX of=/dev/diskY bs=1m status=progress
- [Wayback] el capitan – How can I track progress of dd – Ask Different
You just need to enter a controlT character from the keyboard while the
dd
command is executing.By pressing the controlT character, you are sending the same
SIGINFO
signal to thedd
command that the commandpkill -INFO -x dd
sends.dd
itself doesn’t provide a progress bar. You may estimate the progress of the dd copy process by adding a pkill -INFO command though.Example:
dd if=/dev/zero of=/dev/null bs=64m count=1000 & while pkill -INFO -x dd; do sleep 1; done
- [Wayback] dd progress indicator on OSX
signal siginfo is coupled to key-combination CTRL-T. No need to use kill, you can just type CTRL-T in the terminal window where dd is running.
–jeroen