Posts Tagged With: dd

Backup and Restore Boot sector

Tagged with: , , , , , , ,

Use these commands to backup/restore your boot sector


dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup
dd if=bootsector.img of=/dev/hda #restore

Original Article

No Comments »

Backup MBR to Image File

Tagged with: , , , , , , ,

Make a copy of MBR (Master Boot Record) to a file.


dd if=/dev/hda of=mbr.img bs=512 count=1

dd if=mbr.img of=/dev/hda bs=512 count=1 #restore the MBR
No Comments »

Backup HDD To Remote Host

Tagged with: , , , , , , , , , , ,

Make a backup of a local hard disk on remote host via ssh


dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz'
No Comments »

Use DD to Create File of any Size

Tagged with: , , , , ,

Use the DD command to create a 10 MB (10*1024*1024=10485760 bytes) size file named testfile_10MB


dd if=/dev/zero of=testfile_10MB bs=10485760 count=1

Original Article

4 Comments »

Backup Entire Harddrive to an Image

Tagged with: , , , , , , , ,

Backup content of the harddrive to a file. Creates an image of the drive


dd if=/dev/sda of=/tmp/sda.iso
4 Comments »

Do Md5 check on CD/DVD/HDD

Tagged with: , , , , , , , ,

Perform an md5sum on a device, like a CD


dd if=/dev/hdc | md5sum 
2 Comments »

Create CD Image

Tagged with: , , , , , , ,

These commands can be used to create an image of a CD/DVD/HDD. You can also use some GUI tool like K3B to do this. Use one any of the three commands…


dd if=/dev/cdrom of=cd_image.iso
cat /dev/cdrom >image.iso
readcd dev=device f=image.raw

[tags]cd, command, dd, dvd, image, iso,linux,raw[/tags]

No Comments »

Command to make a CD/DVD ISO Image in Linux with dd

Tagged with: , , , , , ,

This command can be used to create an image of a CD/DVD/HDD. You can also use some GUI tool like K3B to do this.

Make sure that the CD is unmounted before running this command


dd if=/dev/cdrom of=cd_image.iso

[tags]cd,dvd,image,iso,dd,linux,command[/tags]

3 Comments »