LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Boot manager backup (https://www.linuxquestions.org/questions/ubuntu-63/boot-manager-backup-574972/)

elekt 08-05-2007 10:43 PM

Boot manager backup
 
Hello:

i have to reinstall my other OS, but i do not wish to lose the boot manager, is there a way to back it up or install it, with out the need to reinstall ubuntu?

thanks in advance

stress_junkie 08-05-2007 10:51 PM

This will put the contents of the Master Boot Record of /dev/hda in a file /hda-mbr.dd.
Code:

dd if=/dev/hda of=/hda-mbr.dd bs=512 count=1 conv=notrunc,noerror
This will restore it.
Code:

dd if=/hda-mbr.dd of=/dev/hda bs=512 count=1 conv=notrunc,noerror
I always perform this MBR backup before I use tar to back up the root partition.

syg00 08-05-2007 11:09 PM

Not worth the trouble IMHO - just as easy to re-install. Given that the partitions may change during an install, "bs=1 count=446" could be better in both commands.


All times are GMT -5. The time now is 01:31 AM.