LinuxQuestions.org
Register a domain and help support LQ
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 10-06-2005, 10:52 AM   #1
pappsynz
LQ Newbie
 
Registered: Apr 2005
Location: Oxford, UK
Distribution: Red Hat
Posts: 19

Rep: Reputation: 0
Question VFS: Unable to mount root fs


Hi,

So I've been building a few kernels lately, both 2.6 and 2.4 kernels, and I find that if I build using the vanilla .config file and reboot I get a kernel panic with the message

VFS: CAnnot open root device "LABLE=?" or 00:00
Please append a correct "root=" boot option.
Kernel panic: VFS: Unable to mount root fs on ???.

Now I originally thought that this was a problem with the grub.conf entry, but the entry is the same as the other working kernels?

I am now thinking that there is something missing from my build, but after taking a thorough look through make menuconfig I am none the wiser.

Can anyone shed a little light on a newbie? ;-)

Thanks,
pappsynz
 
Old 10-06-2005, 11:27 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Re: VFS: Unable to mount root fs

Quote:
Originally posted by pappsynz
Hi,

So I've been building a few kernels lately, both 2.6 and 2.4 kernels, and I find that if I build using the vanilla .config file and reboot I get a kernel panic with the message

VFS: CAnnot open root device "LABLE=?" or 00:00
Please append a correct "root=" boot option.
Kernel panic: VFS: Unable to mount root fs on ???.

Now I originally thought that this was a problem with the grub.conf entry, but the entry is the same as the other working kernels?

I am now thinking that there is something missing from my build, but after taking a thorough look through make menuconfig I am none the wiser.

Can anyone shed a little light on a newbie? ;-)

Thanks,
pappsynz
Hello,
the problem is in the line
Code:
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
you must be giving space to new kernel like.........root=/boot/........

so change the older one from LABEL=/ to complete path
like
LABEL=/boot/etc.....

if won't be able to make it then post your /etc/grub.conf

regards
 
Old 10-06-2005, 11:42 AM   #3
pappsynz
LQ Newbie
 
Registered: Apr 2005
Location: Oxford, UK
Distribution: Red Hat
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, I'm not too sure that I've caught the jist of your mail but I changed the line

kernel /boot/vmlinuz-2.4.22 ro root=LABEL=/

to

kernel /boot/vmlinuz-2.4.22 ro root=LABEL=/boot/

and tried to boot, but got the same kernel panic.

My grub.conf looks a bit like this...

#boot=/dev/hda
default = 2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.22)
root (hd0,0)
kernel /vmlinuz-2.4.22 ro root=LABEL=/
initrd /initrd-2.4.22.img
...

Anything suspect in there?

Pappsynz
 
Old 10-06-2005, 01:05 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally posted by pappsynz

My grub.conf looks a bit like this...

#boot=/dev/hda
default = 2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.22)
root (hd0,0)
kernel /vmlinuz-2.4.22 ro root=LABEL=/
initrd /initrd-2.4.22.img
...

Anything suspect in there?

Pappsynz
make it
Code:
kernel /vmlinuz-2.4.22 ro root=LABEL=/dev/hda8/boot/
hda8 ::: the root directory on my system
/boot :: in this directory System.map, vmlinuz etc are there.

so change according to your system and your kernel should start working.

regards
 
Old 10-06-2005, 01:13 PM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
haven't u made the new entries i.e of new kernel in grub.conf?
or u have over written the older one ?

regards
 
Old 10-07-2005, 03:27 AM   #6
pappsynz
LQ Newbie
 
Registered: Apr 2005
Location: Oxford, UK
Distribution: Red Hat
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,

No, this is the new entry for the new kernel. It was entered into the grub.conf during the build and install of the new kernel.

I have just tried changing the entry to
...LABEL=/dev/hda2/boot/
and I am still getting the same kernel panic.

I have also just noticed a message just before the kernel panice saying

ds: no socket drivers loaded!

I'm not sure what this means?
 
Old 10-07-2005, 04:21 AM   #7
pappsynz
LQ Newbie
 
Registered: Apr 2005
Location: Oxford, UK
Distribution: Red Hat
Posts: 19

Original Poster
Rep: Reputation: 0
Is there anything in the build of the kernel that would stop it being able to mount the root fs?
 
Old 10-07-2005, 05:10 AM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hello,
you should not overwrite the old kernel.
i.e don't delete or overwrite the older files. Let the old kernel be there, make new entries and files for the new one. Reason being, if somehow new kernel doesn't load well ( panic's ) then at least you have the older one to boot into.

here is an article by DrOzz ( guru on LQ ) on kernel compilation......cross check the way you compiled the kernel.
Newbie guide to compiling kernel --DrOzz

and what i would suggest at this stage is.....start from scratch, compile it again.

regards
 
Old 10-07-2005, 05:38 AM   #9
pappsynz
LQ Newbie
 
Registered: Apr 2005
Location: Oxford, UK
Distribution: Red Hat
Posts: 19

Original Poster
Rep: Reputation: 0
Hi Ruudra

Sorry, I mustn't have been very clear, I still have to old kernel info in grub.conf, and am still booting it on a regular basis ;-)

I have just been able to boot the new 2.4.22 kernel by changing the grub.conf line to...
...ro root=/dev/hda2

However now X won't start, but I guess that is a different problem altogether.
 
Old 10-07-2005, 08:00 AM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Glad to know that i know something now and could try to help out others.

regards
 
Old 10-07-2005, 08:02 AM   #11
pappsynz
LQ Newbie
 
Registered: Apr 2005
Location: Oxford, UK
Distribution: Red Hat
Posts: 19

Original Poster
Rep: Reputation: 0
Cool, thanks for your help!
 
  


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
VFS: Unable to mount root fs mmatis Slackware 22 12-03-2005 11:02 PM
VFS : Unable to mount root fs on 16:03 new.thing Slackware 5 07-05-2005 10:55 AM
VFS Unable to mount root fs on 00:00 thelandrew Linux - Newbie 9 03-30-2004 02:25 AM
VFS: unable to mount root fs -Dice Linux - Newbie 20 11-04-2003 02:05 PM
VFS: unable to mount root fs wgast77 Linux - General 5 07-30-2003 02:13 PM


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