13 Aug
2004
13 Aug
'04
13:48
Jerry Feldman wrote:
Let's say that you copied your root file system to another removable drive using cp (with -pR) or rsync, and your primary drive fails. All you would need to do is to pop in the copy with one caveat, and that is the boot loader. The boot loader installs in the MBR and points to the stage2. With LILO, the second stage is the kernel, with GRUB it is the stage2 boot. However, you should be able to boot from floppy or CD. Or, better still, you can always write the MBR by using the rescue disk.
So, I guess what you'd want to do, is write the boot sector to a file, somewhere under / and then backup. Then after restore, use that file to restore the mbr.