LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 11-14-2003, 03:53 PM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Dual Boot Redhat & Gentoo


Hey all. I'm a little confused on how I would go about installing Gentoo on my existing Redhat machine. I just aquired a 30Gb hard drive which I have installed as a slave drive. My disks look like this:

/dev/hda1 is the boot partition
/dev/hda2 is the root partition for the redhat system
/dev/hda3 is the swap partition

Now I have a few questions about installing Gentoo on the second disk(/dev/hdb). Gentoo can use /dev/hda3 as its swapspace as long as its setup correctly in /etc/fstab right? What about the boot partition? During the Gentoo install I'll have to mount the boot partition. Will Gentoo blast away my existing boot configuration for RedHat? What is the best way to go about sharing the /boot partition?
 
Old 11-14-2003, 04:06 PM   #2
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Why would you want to share the /boot partition? I would think it easier to have each install have it's own /boot partition, and then you can manually edit lilo (or grub) to point to each of the installs. Yes you can share the same partition for swap space.

slight
 
Old 11-14-2003, 04:11 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Good question. In my current /etc/fstab file I have the /boot partition set to:

LABEL=/boot /boot ext3 defaults 1 2

Now as I understand it, with this setup linux will automatically search for the /boot partition and mount it to /boot. If I have two /boot partition it complains and does not know which one to use. Are you suggesting that I define the location of the boot partition like:

/dev/hda1 /boot ext3 defaults 1 2

and for the gentoo /etc/fstab do:

/dev/hdb1 /boot ext3 defaults 1 2

Would this stop linux from complaining about two /boot partitions?
 
Old 11-14-2003, 04:39 PM   #4
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
That is what I am thinking. I don't believe it would cause any problems proided your lilo.conf is made properly. I had slack 9 and RH on the same machine a while back, both on the same HD, and everything was fine. You don't even have to make the /boot folder a seperate partition if you don't want to, and I don't think that there is anything in /boot that you would want to share between installs anyway.

slight
 
Old 11-14-2003, 04:50 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Well I'm using grub as my bootloader but I'm pretty sure you can just set the boot partition manually in /etc/fstab as apposed to doing the LABEL=/boot thing. Now the current grub.conf file looks like this:

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-20.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-20.9.img

After installing gentoo I would just add something like this:

title Gentoo
root (hd1,0)
kernel /vmlinuz-whatever-kernel ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-whatever

I think I get it now although I'm still a little confused with this whole LABEL=/ thing.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack & Gentoo dual boot aje Linux - General 4 06-15-2005 06:08 AM
Redhat 9 & winxp dual boot -xp won't boot opivy Red Hat 3 01-02-2004 01:08 PM
Dual boot XP Pro & Redhat 9.0 joal1923 Linux - Newbie 4 04-22-2003 10:56 PM
Dual Boot Win2000 & RedHat 7.2 Savedadogs Linux - General 3 03-30-2002 12:30 PM
Dual Boot Win2K & RedHat 7.1 RedHatMN Linux - Newbie 2 10-19-2001 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:02 AM.

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
Open Source Consulting | Domain Registration