Convert and copy raw data
high risk
lsblk -o NAME,SIZE,MODEL,MOUNTPOINTVerify the target deviceddrescue <src> <dst> mapUse ddrescue for failing diskspv file.iso | dd of=/dev/sdX bs=4MShow progress via pvCopies blocks from input to output — used for disk images, boot media and benchmarking.
| Flag | Meaning |
|---|---|
if= | Input file/device |
of= | Output file/device (DANGEROUS)⚠ A wrong of= overwrites data with no prompt. |
bs= | Block size |
status=progress | Show progress |
conv=fsync | Flush data before exit |
count= | Number of blocks |
dd if=/dev/sda of=disk.img bs=4M status=progressImage a disk · explain & risk-check →dd if=ubuntu.iso of=/dev/sdX bs=4M status=progress conv=fsyncWrite an ISO to a USB stick · explain & risk-check →Reference text is hand-written and may be incomplete — check man dd for your version. Test destructive commands on a non-production system first.