dd if=/dev/sda of=disk.img bs=4M

Category: Administration

dd if=/dev/sda of=disk.img bs=4M

Create a disk image file from a device

Creates an image file (exact copy) of an entire disk. Useful for backups or cloning.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.