Dual Booting CentOS and Redhat
I'm a Linux noob, but have been tasked with installing CentOS on a machine that has an existing Redhat installation. The Redhat installation is install on the master drive, and I'm wanting to install CentOS on the slave drive (two seperate drives).
I loaded up CentOS and went through the installation. Now the GRUB loader thingy only displays CentOS as a boot option. Where'd Redhat go? I'm guessing that CentOS didn't know that Redhat was on there, so it just put it's own entry into the GRUB loader. Any easy way to get that back? I'm not really sure where the other one was loaded, but I'm guessing dev/hda2. Thanks in advance, WTilton |
I am guessing RH is still there and that GRUB just doesn't have it in its configuration file.
I would boot into CentOS and use one of its partitioning tools to see what partitions are on the two disks. If you have fdisk, running Code:
fdisk -l Code:
man -k partition If this is true, create a temporary mount point (say /mnt/temp) if you do not already have one, and see if you can mount any of the partitions from your master drive on it with commands like: Code:
mount -t auto /dev/hda1 /mnt/temp Code:
ls /mnt/temp |
Thanks Blackhole. I'll give this stuff a try now. I did try adding an entry to the GRUB loader, but when I tried to boot from it it didn't work. Let me try the stuff you've outlined and I'll get back to you.
|
My primary drive looks like the following: ("fdisk -l" worked like a charm)
Device Boot ... System /dev/hda1 ... Linux /dev/hda2 ... Linux /dev/hda3 ... Linux swap and slave drive: /dev/hdb1 ... Linux /dev/hdb2 ... Linux LVM I did the mount command on 1 and 2 on the primary. Both of them had what I think is the Redhat OS. hda1 has folders grub, and lost+found, and then files like boot.b, chain.b ... initrd.2.4.20-6.img, kernel.h etc. hda2 has folders like bin, boot, dev, etc, home, initrd, lib... I'm going to totally guess and say I need to get grub to point to the hda1 drive to boot from that. It does look like there is a grub folder in the primary disk. Going to now lookup how to modify the GRUB stuff. Thanks again! |
Woot! Got it working. I went into the mounted directory grub and looked at it's grub.conf and simply copy and pasted the existing entry over. Rebooted, selected RedHat 9, and up she came. Awesome!
for reference my /boot/grub/grub.conf file looks like: title CentOS (2.6.9-34.EL) root (hd1,0) kernel /vmlinuz-2.6.9-34.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.9-34.EL.img title Red Hat Linux (2.4.20-6) root (hd0,0) kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ initrd /initrd-2.4.20-6.img Thanks again for taking the time to help out. Much appreciated! Last question...any reason why it started booting from the slave drive's grub.conf instead of the old one that RedHat 9 already had? Should I be concerned that it's booting from the slave? |
Quote:
|
:) No you were pretty much right on. You pointed me in the right direction and I got it done.
Yeah, probably just going to let it stay as it is. It's working so why bother fooling with RH the MBR. Thanks again. |
All times are GMT -5. The time now is 12:54 PM. |