LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2005, 08:23 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
doubt in editing "grub.conf" in multi distro machine


hi there,
i had windows XP and redhat 9
just now i installed slackware 10.1 on my machine, but haven't installed the lilo.conf.
now i'm inside the red hat and have mounted the slackware on "/mnt/slack"
....
now the entries of grub.conf of redhat 9 are
Code:
cat grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,8)
#          kernel /boot/vmlinuz-version ro root=/dev/hda9
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
title Red Hat Linux 9 (2.4.20-8)
        root (hd0,8)
        kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8.img
title Windows XP
        rootnoverify (hd0,0)
        chainloader +1
now when i'm looking inside the /boot of slack i'm getting
Code:
config             diag1.img      System.map             vmlinuz
config-ide-2.4.29  README.initrd  System.map-ide-2.4.29  vmlinuz-ide-2.4.29
its for the first time i'm trying to have multi distros.......so from this onwards i'm not pretty sure of doing what.?
but what i doubt is that there is no initrd.....img file in the slackware !!!
....
plz. tell me which file from /boot of slack should i copy into "gurb.conf" of redhat.

regards
 
Old 08-06-2005, 08:54 AM   #2
tumbelo
Member
 
Registered: Mar 2005
Distribution: Suse 9.3, Kubuntu Hoary, Slackware 10.1
Posts: 66

Rep: Reputation: 15
I'd like to know how you're going to get it to work since I've planned about installing another distro, or two more, to be precise.

But you don't have to worry about the initrd img file missing, apparently Slackware has everything it needs to boot built into the kernel. You could try adding the following to your Red Hat grub.conf, although I'm certainly not sure about this. It really depends if you have Slackware on a single partition or more, I'm assuming it's on one.

title Slackware 10.1
root (hd[insert the correct one here])
kernel /boot/vmlinuz ro root=/dev/hdaX

Of course, replace X with the correct number. Maybe someone else who knows better should check that out before you try it, although I doubt it's going to fry your hard drive.
 
Old 08-06-2005, 09:21 AM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
it all worked man!!!

Quote:
It really depends if you have Slackware on a single partition or more, I'm assuming it's on one.

title Slackware 10.1
root (hd[insert the correct one here])
kernel /boot/vmlinuz ro root=/dev/hdaX

Of course, replace X with the correct numbe
i had slackware on a single partition only.

thanks buddy
 
Old 08-06-2005, 09:23 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Here are the new entries of "grub.conf" of redhat 9

Code:
title Red Hat Linux 9 (2.4.20-8)
        root (hd0,8)
        kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8.img
title Slackware 10.1
        root (hd0,6)
        kernel /boot/vmlinuz-ide-2.4.29 ro root=/dev/hda7
title Windows XP
        rootnoverify (hd0,0)
        chainloader +1
 
Old 08-06-2005, 09:28 AM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Can someone tell me what does "root=LABEL=/" signifies here.....???

Quote:
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
regards
 
Old 08-06-2005, 09:36 AM   #6
tumbelo
Member
 
Registered: Mar 2005
Distribution: Suse 9.3, Kubuntu Hoary, Slackware 10.1
Posts: 66

Rep: Reputation: 15
Glad to hear it worked. I don't know about root=LABEL=/ though.
 
Old 08-06-2005, 09:46 AM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
root=LABEL=/ is just the name for your root partition. If you look at /etc/fstab it will tell you that LABEL=/ is mounted on /

Tux,

Last edited by tuxrules; 08-06-2005 at 09:47 AM.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
the "default" ( as we have in grub.conf ) option of lilo.conf ??? b0nd Linux - Newbie 4 09-14-2005 05:51 AM
editing lilo.conf for multi distro machine b0nd Slackware 4 09-12-2005 12:44 AM
question about "sound support" and editing /etc/modules.conf 1sciroccofahrer Linux - Newbie 1 04-20-2005 03:31 PM
What is "initrd" in grub.conf? captainstorm Linux - Newbie 2 07-30-2003 04:12 AM

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

All times are GMT -5. The time now is 04:30 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
Open Source Consulting | Domain Registration