For the installation of the first OS I specify that the boot partition be mounted on /boot. All the proper files then end up on the partition.
Later, I unmount the partition from /boot, then mount it on /mnt/boot. From there I copy all the content of /mnt/boot to /boot, which at that point is an empty directory. Can I just do:
cp -r /mnt/sdb1/* /mnt/sdb3/boot? Any special way to execute the command so that everything is copied perfectly? or is the command I posted sufficient?
I'm assuming that this is being done from the liveCD
. Is that correct? I'd use cp -a /mnt/sdb1/* /mnt/sdb3/boot
In /etc/fstab I comment out the line specifying the partition being mounted at /boot. I add a stanza to the master menu.lst on the boot partition to allow booting to the kernel now in the /boot directory on the / partition.So I have to change the path and the "root":
Is that right?
Were it my drive, I would have made sdb
the boot drive
doing the installation, so all the boot partition root references would be (hd0,0)
and I would have installed grub to (hd0)
, which under those circumstances would put grub in the MBR
of the drive on which all the Linux OS will reside, sdb
. If by chance you did install grub to the MBR of sdb, it will have to be made
the boot drive
to use that grub, and at that time any reference to (hd1,0)
will have it looking for the kernel
and initrd image
If you installed grub to the MBR
, you now have a situation where the new installation will boot with the menu.lst stanzas as is, but if either drive fails, you will be unable to boot any OS on either drive. Any failure = total failure
. Kind of makes all the redundancy moot, don'tcha think?
This is insurance that if either kernel or initrd image is damaged, I can still boot to the other set.
From that point on, the boot partition is never mounted on /boot in any installed OS. If the OS that originally installed grub to the partition is removed, grub still remains on the boot partition as the master grub.
I think I actually get it now. You are protecting the "original" boot files by copying them, then unmounting the originals. You can always remount them if something happens to the new /boot files.
Actually you can boot from either kernel/initrd
set of files interchangeably
, and either is the backup of the other
. Failsafe through redundancy.