LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2003, 02:01 PM   #1
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
GRUB using /boot partition for multiple Linux/Windows boot?


Hi, I need a little help configuring GRUB for a second Linux distro (Slackware) on my system that already has WindowsME and Red Hat 8.0.

When I installed RH8, it recommended to create a /boot partition, so I did.

When I look in my grub.conf file I see
Code:
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg...
Does this mean that for subsequent Linux entries in the grub.conf file, (in particular the Slackware that I'm about to install) GRUB is going to look for the kernel and initrd files in the /boot partition, which up to now contains only Red Hat stuff?

I've read a lot of posts saying, go ahead and just drop your new kernels into the /boot partition and you're done. I've also seen a lot of posts saying don't mix your kernels.

So, what if I don't want to mix my Slackware files in with the Red Hat files that are currently in the /boot partition? How does GRUB find them in Slackware's own partition? Do I even have a choice?

Last edited by cpv204; 04-01-2003 at 02:06 PM.
 
Old 04-01-2003, 02:14 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can specify the root explicitly - eg

Code:
        kernel (hd0,5)/path/to/vmlinuz-2.4.18-14 ro root=/dev/hda2
        initrd (hd0,5)/path/to/initrd-2.4.18-14.img
Obviously you can change "(hd0,5)" to the disk and partition where the files reside.

EDIT: Version numbers etc too

Last edited by david_ross; 04-01-2003 at 02:15 PM.
 
Old 04-01-2003, 02:31 PM   #3
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
Yes, I'm with you. If it's that easy, great! Thanks.

It was just that comment (that Red Hat's installer puts in your grub.conf) that made me think GRUB would only look to the /boot partition for kernels.
 
Old 04-01-2003, 02:34 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
One thing to be careful with when installing a new system is LABEL vaules in grub.conf and /etc/fstab. Some OS's setups overwrite them making the old OS unusable until you change them - to save time I do this before the install.
 
Old 04-01-2003, 02:46 PM   #5
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
You manually set up your grub.conf and /etc/fstab? Wouldn't the new OS setup still overwrite them, regardless of whether you changed them ahead of time or not?

Or are they smart enough to read that the entries have already been added correctly and therefore don't need to touch those files?
 
Old 04-01-2003, 02:52 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I don't mean in the way they change the files - I mean the way that the new partitions are being formatted with LABELS that already exist. If you look in /etc/fstab the first column may contain labels like LABEL=/ you should change this to the device name eg /dev/hda2. It is OK if you want to share a home partition but you can't really have two root partitions with the same label.
 
Old 04-01-2003, 03:49 PM   #7
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
Yes, understood now. Thanks!
 
Old 04-01-2003, 03:54 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I was working late when that one first hit me and it took a while to click. Maybe someone will correct me but I haven't seen a valid reason for using LABEL values. So until I here differently I'm going to access the devices directly
 
  


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
remove GRUB from windows partition boot record Krun Linux - Newbie 3 09-13-2007 04:51 PM
Booting more than one linux - GRUB and \boot partition questions rozoweskarpetki Linux - Newbie 8 05-25-2005 05:58 AM
partition sharing pour Linux dual/multiple boot eeried Linux - Newbie 5 04-03-2005 11:05 AM
Linux Red Hat9 with Grub, Problems with Multiple boot. Momboking Linux - Newbie 3 03-12-2004 03:40 PM
using grub to boot multiple linux os's Smerk Linux - Software 9 03-21-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 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