Originally Posted by tonypm
1. I installed FC5 to my new drive, whilst hda was attached. Afterwards FC5 would not boot. Presumably the boot loader was set up incorrectly because the FC4 was seen as the primary boot?
Depends on how you installed the bootloader (GRUB). You could (and probably should) have installed GRUB to the MBR. The FC5 installer should have automatically found your FC4 install and added it to the boot menu. If you didn't install GRUB to the MBR, and GRUB was
installed to the MBR when FC4 was installed, you will still load GRUB with the FC4 original configuration (as in not being aware of FC5).
Originally Posted by tonypm
2. I took power off the master drive and re-installed FC5 onto the slave. This now booted ok. But when I put the master drive back on, the FC5 installaation started to boot, but actually ended up loading the FC4 filesystem, (with errors).
This is probably because of the way GRUB "sees" drives. It works like this:
1st partition on 1st HD on 1st IDE channel : (hd0,0)
2nd partition on 1st HD on 1st IDE channel : (hd0,1)
1st partition on 2nd HD on 1st IDE channel : (hd1,0)
2nd partition on 2nd HD on 1st IDE channel : (hd1,1)
1st partition on 1st HD on 2nd IDE channel : (hd2,0)
and so on and so forth.
This can be messed up by removing/adding drives without modifying GRUB's config. Here's what you can do:
You could reinstall FC5 to /dev/hdb, making sure that the partitioning is correct and that you install bootloader to MBR during install process, OR:
Leave both Master and Slave on 1st IDE channel plugged in. (/dev/hda and /dev/hdb, or (hd0,0) and (hd1,0))
If you can boot your FC4 install, great. If not, you'll need a livecd/rescuecd for this step:
Mount FC5 partition and open /mountpoint/boot/grub/grub.conf on your FC5 parition with a text editor (as root). (assuming /dev/hdb1, or (hd1,0) in this case). (Where 'mountpoint' is wherever you choose to mount FC5).
look in /boot/ on FC5 partition. Should be a initrd-<vers> and vmlinuz-<vers>, where <vers> is the version and should match for vmlinuz and initrd.
In /boot/grub/grub.conf, all the (hdX,X) should match (hd1,0) assuming FC5 /boot/ is on /dev/hdb1. Same for the 'splashimage' line. Also, make sure is the same for the 'root', 'kernel', and 'initrd' lines. Is is possible that 'kernel' and 'initrd' won't have a (hdX,X), that should be fine, don't need to add it.
The 'kernel' line should near the end have something like "root=LABEL=/1" or "root=/dev/hdb1". Either is fine. The important thing is that if it does have a /dev/ value that it points to your FC5 filesystem /dev/ node.
Once you're positive
that everything is correct, save grub.conf. If you're not sure, don't continue with the next steps.
Now its time to make sure that GRUB is installed correctly. To do so we want to be within the FC5 environment via chroot. So, if you mounted the FC5 filesystem to /mnt/FC5 for example:
chroot /mnt/FC5 /bin/bash
as root, substituting /mnt/FC5 for wherever FC5 partition is mounted.
If everything has gone correctly, you're now in FC5 environment. You can verify with 'cat /etc/fedora-release' It should tell you which version of Fedora you are chrooted (or not chrooted if it didn't work) into.
Again, if you're positive that grub.conf is correct (and if you're chrooted it is now in /boot/grub/grub.conf, since you're inside the mountpoint via chroot)... Run 'grub
Step 1 is to tell grub which partition /boot/ (and grub.conf) are on, so if its /dev/hdb1, enter: root (hd1,0)
. Before you enter that command you can try 'find /boot/grub/stage1
' which should find locations of /boot/grub.
Now is the big final step
' will install GRUB to the MBR of the first device, which is what you're BIOS boots first, which is where we want it.
Type 'exit' to exit chroot, unmount FC5 partition. Reboot and all should be well. You can additionally add your FC4 lines to FC5's /boot/grub/grub.conf by simply copying the layout of the entries in FC4's /boot/grub/grub.conf for the FC4 kernels (the 'title','root','kernel','initrd' lines for the top-most entry should be enough)
If something goes wrong you can use a livecd/rescuecd to fix grub.conf on FC5 partition. Additionally, from the GRUB bootup menu, you can press 'e' to do a one-time edit of a boot entry or 'c' to enter a new boot entry.
I know it seems like a lot of steps, but it really isn't too difficult, good luck.