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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-01-2003, 02:01 PM
|
#1
|
|
Member
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111
Rep:
|
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.
|
|
|
|
04-01-2003, 02:14 PM
|
#2
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
|
04-01-2003, 02:31 PM
|
#3
|
|
Member
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111
Original Poster
Rep:
|
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.
|
|
|
|
04-01-2003, 02:34 PM
|
#4
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
|
04-01-2003, 02:46 PM
|
#5
|
|
Member
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111
Original Poster
Rep:
|
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?
|
|
|
|
04-01-2003, 02:52 PM
|
#6
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
|
04-01-2003, 03:49 PM
|
#7
|
|
Member
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111
Original Poster
Rep:
|
Yes, understood now. Thanks!
|
|
|
|
04-01-2003, 03:54 PM
|
#8
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:13 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|