Skip to content

Instantly share code, notes, and snippets.

@xeoncross
Created June 7, 2012 14:56
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeoncross/2889231 to your computer and use it in GitHub Desktop.
Save xeoncross/2889231 to your computer and use it in GitHub Desktop.
Clone hard drive on linux with DD and PV
When using the linux utility dd, there is no visual output of the progress, how long it is going to take, or anything else. Easy to solve with the use of pv:
% sudo fdisk -l
% pv /dev/sda | dd of=/dev/sdb bs=100M
that’ll display the amount of data transferred, the elapsed time, the throughput speed, a nice progress bar, and the ETA. For devices that do not have a fixed size, let’s say, /dev/zero, there’ll be only a throughput display.
- http://www.yournearestbar.com/2011/10/monitoring-dd-with-a-progress-bar/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment