How to use dd command ?
How to use dd command ? DD - Disk Dump 1. Create an empty file of 650MB size. #dd if=/dev/zero of="empty_file" bs=1024k count=650 2. To Create ISO from CD OR DVD #dd if=/dev/cdrom of=file.iso 3. Create an exact image of this floppy-disk by issuing the command #dd if=/dev/fd0 of=floppy.img 4. Create backup of HDD or partition #dd if=/dev/sdb of=backup.dd You can check the backup image consistency to check for any problem with backup image #fsck -y backup.dd 5. Creating backup of one hardisk in to second HDD. #dd if=/dev/sda of=/dev/sdb conv=noerror,sync bs=4k Note : dd with conv=noerror writes nothing in the image in case of a bad block. You can check the backup image consistency to check for any problem with backup image #fsck -y /dev/sdb 6. How to take backup of only MBR and MBR + Partition Table; #dd if=/dev/sda of=mbr.bak bs=1 count=446 (Backup only MBR) #dd if=/dev/sda of=mbr_part.bak bs=1 count=512 (Backup MBR + P