LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I back up the boot up drive image? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-back-up-the-boot-up-drive-image-704513/)

nodopro 02-13-2009 04:31 PM

How do I back up the boot up drive image?
 
Can anyone show me the command in linux how to back up the drive image? It's like clone in windows? I just want to back up so in case the drive is crash so I can replace or build a new system with the same exactly configuration so I don't have to start from the scratch again?

Thanks,
nodopro

frieza 02-13-2009 05:01 PM

if you have a secondary drive or external try dd if=/dev/hda (or sda if sata) of=backup.img (where backup.img is a raw disk image of your drive, make sure to write the image somewhere on the secondary drive or external drive, not sure what happenes if you put the file on the same volume as you are copying from but my guess is that would be bad)
you may have to be root to do this
to restore
boot from the rescue disc and dd if=backup.img > /dev/hda (sda?) then fdisk /dev/hda and hit w to force write the partition table just to make sure


All times are GMT -5. The time now is 07:54 PM.