Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to install FC3 on a second hard disk. I understand that this is possible with almost all distributions. The question I have is - If I want to do this without causing problems with my current installation of RedHat 9 and Windows XP on the first (original) drive what do I need to do with grub and grub.conf to make sure that after installation of FC3 I can still boot into RedHat or Windows XP whenever I need to. I would still want grub installed on the original first drive, but have it point to FC3 on the second disk so that I can optionally boot FC3 or my original RedHat/XP. Booting from floppy or other such work around would be messy so I would prefer not to go down this route.
I understand that it would be best to create a separate swap and boot partition on the second drive, which is fine by me. I have not tried it yet so I am guessing that if I start the FC3 install process, somewhere down the line when it installs grub, it would simply overwrite my current grub configuration. Is this right? If so what will I need to do to protect my current grub config? Will simply copying it to a safe place, then restoring it after installing FC3 and then manually editing it to add the FC3 parameters be the correct thing to do?
And by the way, what will be the correct grub.conf settings to boot from the second hard disk?
Try to avoid installing GRUB when installing FC3. I think it can be done. Or if it's not, just install it and worry about it later. Once installed, run RH9 CD1 and run into rescue mode. Once inside, run /sbin/grub-install /dev/hda
This will install GRUB back to the primary harddrive. Then edit the config file in /boot/grub/grub.conf and add some more lines. Copy the entry from RH9 (all lines title, kernel and initrd). Then just change according to your FC settings (which is good to see first, or you can see them in FC3 before doing this. You will find the file in /boot/grub/grub.conf for information.
This is pretty much it. If you run in any new problems, let us know, and we'll help you out.
I'm always worried (perhaps needlessly) about screwing up the data on my existing drive, so I tend to be extra cautious and unplug it before installing an OS on a second drive.
Then, just install FC3 as normal on the new drive.
Plug the old drive back in as master (check your jumper settings to make sure they're correct, if your system requires them) and the new drive as slave.
Boot to the new drive and edit /boot/grub/grub.conf, adding the following (changing the kernel version number to match the OS on your second drive:
Install FC3 on hdb when you get to the part for grub chose configure then don't install boot loader. You can use hda swap for FC3. When done reboot into RH9 go to hda /boot/grub/menu.lst and add FC3, basically copy RH9 entry and change hd1,0 and vmlinuz entry's from hdb /boot
I tried installing FC3 by first removing my orginal drive and using the new drive as primary. For my first try I partitioned the disk with a /boot, / and swap partitions. After installation, I reconnected the original drive as primary. During boot, the boot process discovered multiple /boot partitions and refused to mount /boot!
For my second try, I decided not to create a separate /boot partition. This meant that the installer would simply create a boot directory under /. Again after reinstalling the original harddisk and making all te relevant changes to grub.conf, when I selected FC3 during boot the system kept producing errors in hardware config such as missing mouse etc and finally would not start X.
Has anyone really tried this or am I wasting my time because it was never meant to work?
I have done this several times with FC and other distro's with no problem, just follow instructions above, install normal using hdb (second harddrive) and don't install boot loader. By swapping drives all config files are referring to hda for info when it has been moved to hdb.
I've done it as well - with RedHat/Fedora on one and Windows on the other. On the first try, did you make sure that the second drive was jumpedd as a slave drive? I've never run into the multiple boot sector problem.
Also, check your bios and if necessary remove the second hard drive as a boot option.
I will be travelling over the next few days and will not have time to try your suggestions. Will let you know as soon as I have a chance to do so.
Just to recap -
I can install Fedora as normal with both my disk drives connected. I should select the second drive for installation. When I am asked if I want to use grub, I should ignore it. (I forget if there is such an option!!) Anyway, after the installation is complete, I should boot to my original RH9 and edit grub.conf manually to include the Fedora related strings. On reboot, I should be able to start Fedora as well as my existing OSs.
Question - Can I create a separate /boot partition on my second disk?
I'm back. I tried exactly as outlined - booted from FC3 CD, installed on hdb, did not install, grub. I then edited the grub.conf file to include following -
I think it is something like changing to:
root (hd1,0)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=dev/hdb?
initrd /boot/initrd-2.6.9-1.667.img
change ? to partition #
The hard part's over, once you have it installed it's there it's just a matter of getting grub right.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.