LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-10-2004, 08:12 PM   #1
baue8673
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
Multiple distros on same hard drive problem


All,

Not sure where this should go on the forum, but tried here.

Due to a recent upgrade to a larger hard drive I now have room to try multiple distributions. I split the hard drive into 5 partitions.

hdb1 = boot
hdb2 = fedora core
hdb3 = debian woody (well, hope to, having problem here)
hdb4 = not sure yet
hdb5 = swap

I got the fedora installation up no problem. I switched to install the debian one and now I have a problem. I inserted the debian cd and booted from it. I get it set up how I want, get to it to put / on hdb3 and things are going good. Then I get to the point where I need to reboot my system. Here is where the problem starts. I figured I would need to make a boot disk until I get the debian up and running. However, during this process, I find out my floppy drive is dead. I am using grub as the bootloader for fedora and am not sure how to configure it to point to a partially complete debian install.

Can I configure grub to boot from hdb3 before the debian installation is complete? I figured I would look at the grub config from fedora, but when I booted into fedora, it complained until I removed the hdb3 mount command from fstab. I'm not very familiar with the grub config anyway and I am not sure if should mount hdb3 from fedora in case it causes problems.

Any help to finish the debian install and get grub set up right? Thanks.

Nate
 
Old 02-11-2004, 01:42 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
First, try posting you fstab. If there's a prob there, we'll be in a better position to help.
Second, try booting Fedora. Then edit /boot/grub/menu.lst (or grub.conf, if that's what
Fedora uses, wherever it's found). Copy/paste the Fedora entry after the Fedora, then
edit the kernel, root, and initrd devices to point to Debian. Then reboot to see if that
works.
 
Old 02-11-2004, 01:45 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
I'm not familiar with Debian, but I believe that the problem you're seeing is the result of trying to share a single /boot directory between 2 different distros. You can do that with swap, but I don't think you can do it with boot.

My suggestion would be to adopt a partitioning scheme such as the following:

hdb1 = /boot (for fedora)
hdb2 = / (for fedora)
hdb3 = /boot (for debian)
hdb4 = / (for debian)
hdb5 = swap

Note that the partition size for an explicit /boot directory should be pretty small (ie, no need to make it bigger than 100Mg). Note also that you don't necessarily need an explicit /boot partition to install Linux (although I think there are compelling advantages to having them, and I applaud your basic decision) and that if you don't have one, /boot will be a directory within / Thus, you could also set up a partition scheme such as:

hdb1 = / (fedora)
hdb2 = / (debian)
hdb3 = swap

Obviously anytime you are modifying partitions and/or reinstalling the OS, you should backup any important data first. Good luck with things. -- J.W.
 
Old 02-11-2004, 12:01 PM   #4
baue8673
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the response

bigrigdriver:

Not sitting in front of the computer right now, but I'll get those files posted as quick as I can. I tried to do something similar to what you said, but couple of things. The Debian install didn't have an initrd that I could find. I'll get the files.

J.W. :

Well, I have only had the current configuration up for a couple of days. I can start over pretty easy. Some questions though. If you have multiple /boot locations, where does the grub bootloader reside? I would have figured you would have one boot section (where grub lives), that then pointed to the correct distro. Does this mean you have two grub bootloaders in different areas of the hard drive? How does it pick which one, and do I have to maintain two seperate grubs? Thanks again for the help.
 
Old 02-11-2004, 01:20 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
baue8673 - great question. I am not as familiar with GRUB as I am with lilo, but with lilo, you have the option to install it to the master boot record (MBR) which eliminates the "how would the boot process know where to look" type of questions. I don't know whether GRUB offers a similar option to install into the MBR, but if it does, you may want to explore it. (From my limited experience with GRUB, it's always been on a floppy, which also eliminates the "where to look" type of question)

Personally, I've used lilo and installed to the MBR every time, and really like it. The one caveat is that any time you edit lilo.conf, you also need to run the lilo program: /sbin/lilo (as root) in order to make those changes take effect.

Sorry I can't offer any better answers your GRUB question. If it does support being installed into the MBR however, I would expect that ought to take care of it and you'll be dual booting like a champ. Good luck with the project -- J.W.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have multiple Linux distros on a hard drive? Micro420 Linux - General 9 10-03-2005 09:18 PM
Problem booting udev-based distros on external hard drive mcphail Linux - General 1 09-02-2005 10:58 PM
multiple booting two hard drives with linux distros slim case Linux - Newbie 3 07-04-2005 10:02 PM
Multiple Hard Drive Problem with Red Hat 9.0 swap01 Linux - Hardware 1 08-11-2004 06:13 PM
Multiple Linux distros on 2nd hard drive? frija Linux - Newbie 2 04-23-2004 12:32 AM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration