dd / Disk Destroyer🔗
How to see progress of dd?🔗
See below if you've already started the dd command.
In newer versions of dd, you can simply add status=progress:
dd if=/path/to/input/file of=/path/to/output/file bs=4M status=progress
How to see progress of dd after having started the dd process🔗
This might be the kill command, but this simply tells dd to show the progress.
kill -USR1 $(pgrep ^dd)
dd and gzip🔗
Convert logical volume into an archive🔗
Here we take an example from a xen disk that is in a logical volume, and pipe it to gzip.
sudo bash -c "dd if=/dev/vg_xen/disk" | gzip > /home/user/disk.gz
Extract disk archive back into logical volume🔗
gunzip < /home/user/disk.gz | sudo bash -c "dd of=/dev/vg_xen/disk"
