How to backup Hard Disk/ Partition/ CD-ROM on Linux using dd command



Case 1: Taking Backup Of The Entire Hard Disk
Connect a hard disk to your machine (say it is /dev/sdb). Now use the dd command to copy your hard disk data to new hard disk.
# Dd If=/Dev/Sda Of=/Dev/Sdb
If there occur any error then the above code will fail. To ignore errors you may use the command given below.
# Dd If=/Dev/Sda Of=/Dev/Sdb Conv=Noerror,Sync
sync option is used for synchronized Input/Output.
Case 2: Create Image Of The Hard Disk
# Dd If=/Dev/Sda Of=~/Sdadisk.Img
Check out this article on How To View .Img File.
Case 3: Restore Using Hard Disk Image File
# Dd If=Sdadisk.Img Of=/Dev/Sdb
Case 4: Taking Backup Of A Partition
# Dd If=/Dev/Sda1 Of=~/Partition.Img
Case 5: Backing Up CDROM
# Dd If=/Dev/Cdrom Of=Backup.Iso Bs=2048


Category Article

What's on Your Mind...

Powered by Blogger.