Part of the installation process was using the 'dd' command to get an image of the boot sector. It was something like this:
dd if=/dev/hda3 of=/mnt/backup/bootimage.bin bs=512 count=1That means that the input file is simply the partition /dev/hda3, the output file is the Windows backup sector that I mounted into the /mnt directory, the number of bytes per sector is 512 and the number of sectors is 1.
Why not use 'dd' to do a backup. With the Ubuntu live CD, all you would need to do is:
- create a directory where you want to mount the drive to store the backup
- mount that drive
- dd the whole partition to save into the backup drive
- create a directory where you want to mount the drive where you stored the backup
- mount that drive
- dd the image back from the backup drive onto the partition to restore
The dd command is very useful and very powerful. It is also very dangerous. One best type very carefully and double-check everything before pressing 'enter'.
No comments:
Post a Comment