dd — Convert and Copy Files

dd copies data at a low level. It is powerful, but it can overwrite disks if the input and output paths are wrong.

Create an image of a disk or partition

dd if=/dev/sdb of=disk-image.img bs=4M status=progress

Write an image to a USB drive

dd if=linux.iso of=/dev/sdb bs=4M status=progress conv=fsync

Always double-check the target device before running dd. A wrong of= value can destroy data.

lsblk

Leave a Comment