LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-21-2005, 11:03 AM   #1
iaMMai
LQ Newbie
 
Registered: May 2005
Location: Hungary
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
Grub loader question


Hi all,
Look at the /boot/grub/grub.conf or menu.conf file: for example

title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img

What does the =LABEL= mean?
I've just configured my kernel, but I don't know how to declare ro root= . After I wrote ro root=LABEL=/ or ro root=/dev/hda2 my computer went to panic. How can I know in which partition I can find the root??

Last edited by iaMMai; 05-21-2005 at 04:04 PM.
 
Old 05-21-2005, 03:25 PM   #2
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
The LABEL means that GRUB is to look for a partition labeled '/' I have found that this is quite unreliable, never worked properly for me anyway. I did exactly what you did: ro root=/dev/hda3 (or whatever your root device is) and it works fine for me.

When you say panic what do you mean? does it not even start to boot? or does it fail some of the way through? Also if you could explain the layout of your disks/partitions that might help, and a full listing of your grub.conf.

Hope I can be of some help.
 
Old 05-21-2005, 04:23 PM   #3
iaMMai
LQ Newbie
 
Registered: May 2005
Location: Hungary
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Yes. It doesn't start to boot.
Code:
VFS: Cannot open root device "LABEL=/" or 00:00  
Please append a correct "root=" boot option  
Kernal panic: VFS :Unable to mount root fs on 00:00
And this is the layout of my disk's partitions:
Code:
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1        20    160618+  83  Linux
/dev/hda2            21      3937  31463302+  83  Linux
/dev/hda3          3938      4068   1052257+  82  Linux swap
/dev/hda4   *      4069     10010  47729115   83  Linux
and one part of menu.lst:
Code:
title Red Hat 00(2.4.30-00)
        root (hd0,0)
        kernel /bzImage-2.4.30-00 ro root=LABEL=/ hdc=ide-scsi
        initrd /initrd-2.4.30-00.img

Last edited by iaMMai; 05-21-2005 at 04:26 PM.
 
Old 05-21-2005, 05:03 PM   #4
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
Did exactly the same thing happen when you tried 'ro root=/dev/hda2'? how about giving 'ro root=/dev/hda4' a go.. can't hurt too much I don't know what you've got on each partition, but hda4 is set as boot. Other than that I don't know i'm afraid..

Hope that helps.
 
Old 05-21-2005, 06:56 PM   #5
iaMMai
LQ Newbie
 
Registered: May 2005
Location: Hungary
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, the same thing. But I haven't tried with 'ro root=/dev/hda4' yet, because it always worked well with 'ro root=/dev/hda2' or 'ro root=LABEL=/' lately(of course in case of another kernels), so I think maybe there is something wrong. I'll try itt tomorrow, hope it'll be ok. I'm going to tell you what happens. Thanks.
 
Old 05-22-2005, 02:50 AM   #6
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
Sorry, I missed the fact that this was a new kernel! It could be your new kernel. Check this by booting another kernel (Try the last one before this one) with ro root=hda2. If this works then it must be somthing to do with your new kernel. If you configured the new kernel yourself look through the configuration you used and check that the file system type on the boot (hda1 I presume) is compiled in (not a module) - this will probably be ext2. Also make sure that you compiled (either as module or in-kernel) support for the filesystem type on the root drive. Just an idea.

I've done things like this when I get a bit carried away stripping parts out of the kernel

Hope this helps
 
  


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
Grub Loader MacaveliMC Ubuntu 5 09-29-2005 12:07 AM
Grub loader BorderPatrol Linux - General 6 12-12-2004 06:36 PM
GRUB loader glenn69 Linux - Newbie 10 08-31-2003 12:32 PM
GRUB loader tszhim Linux - General 4 02-09-2003 01:00 PM
Help! Grub Loader! djsktbrd Linux - Newbie 5 12-27-2002 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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