LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2004, 05:05 AM   #1
Mamour
LQ Newbie
 
Registered: Aug 2003
Location: Brussels, Belgium
Distribution: Debian Sid
Posts: 9

Rep: Reputation: 0
VFS: Cannot open root device (kernel panic)


Okay, here's the deal.

I'm trying to get Debian Woody to work on my comp. Unfortunately, the native 2.4.18 kernel shipped with it doesn't support my network card.

On the other hand, compiling a newer 2.4 kernel resolves the problem. BUT, I'm trying to compile a 2.6 kernel (which I've heard many good things about). In fact I've been trying to compile 2.6.4 and 2.6.4-ck2.
The compilation itself doesn't encounter any problems, so that's clear.

The problem comes at boot time, where I can the following message:
Code:
VFS: Cannot open root device "341" or hdb1
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on hdb1
Any ideas how to fix this? I've read around a bit, some people claim that it's due to missing IDE drivers, so I activated them all just in case and... nothing happens.

Last edited by Mamour; 04-08-2004 at 05:17 AM.
 
Old 04-08-2004, 05:18 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
well, is your root dir (/) on hdb1? it could be the bootloader setup is corrupted somehow when you added the 2.6 kernel to it...

greetz
-= iluvatar =-
 
Old 04-08-2004, 05:21 AM   #3
Mamour
LQ Newbie
 
Registered: Aug 2003
Location: Brussels, Belgium
Distribution: Debian Sid
Posts: 9

Original Poster
Rep: Reputation: 0
I wish it were that easy.

No, my lilo.conf is configured correctly, so I don't believe LILO causes the trouble (the default vmlinuz image has the exact same configuration, and it works without a hinch).
 
Old 04-08-2004, 07:26 AM   #4
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Have you compiled the filesystem of the partition directly into the kernel?
Or maybe the ide driver?
 
Old 04-08-2004, 09:13 AM   #5
Mamour
LQ Newbie
 
Registered: Aug 2003
Location: Brussels, Belgium
Distribution: Debian Sid
Posts: 9

Original Poster
Rep: Reputation: 0
Yes I have, I even tried to compile the kernel without module support at all (i.e. everything got compiled directly into the kernel), and it hasn't fixed the problem either.
 
Old 04-15-2004, 06:43 PM   #6
tha3rdman
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
I have a belife here,

It seems that it has to do with the linking to the system.map, the original kernel has a monoply on the link. If this is what is causing it how do you either make a multi link or tell grub to use a specific System.map?

Paul
 
Old 04-20-2004, 01:30 AM   #7
jamaas
Member
 
Registered: Mar 2004
Location: Melton Mowbray England
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 15
same problem here, did you get a fix?

I'm having exactly the same problem... as it appears are many other people.

I'm a relative newbie as well, have played around with it for years and honestly have spent more time wrestling with Lilo than any other part of Linux....!

I'm running Mandrake 10, which is originally 2.6.3 kernel, compiled the new 2.6.5 kernel and now neither will boot. When I try to login using Knoppix and change lilo.conf, then run lilo I get an error from Lilo "Fatal: creat /boot/map :read only file system", whic I suspect is perhaps due to the fact that it is attempting to write the new bootstrap file back to the Knoppix CD? Can anyone tell me how to get around this and get it put on my hda mbr?

In the past I've tried GRUB but not had any luck so stick with Lilo.

I've included my lilo.conf, although have not been able to rerun lilo yet because of above. /dev/hda and /dev/hda3 have worked fine until this compile/install. If anyone can give me a set of steps to diagnose the cause of the problem I would be most greatful. I might even put the results together in a howto file because many of us are having the same problem. We never know if it is something we did incorrrectly in our ambitious kernel configure/compile or a bug!!

Thanks a bunch, all suggestions most helpful.

Jim
 
Old 04-20-2004, 04:02 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Do you use a S-ATA controller? In that case, your HDD is maybe recognized as scsi-device by the 2.6 kernel (eg. sdb1 instead of hdb1). This was the case (and the solution) when I upgraded from 2.4 to 2.6.
 
Old 04-20-2004, 01:21 PM   #9
tha3rdman
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
No SATA drives here just IDE
 
  


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: Cannot open root device error pandorazbox Slackware 9 03-31-2008 07:00 PM
Kernel Trouble: VFS: Cannot open root device Optimistic Debian 2 09-19-2005 02:41 PM
VFS: Cannot open root device antony.booth Linux - General 2 05-25-2005 04:20 AM
VFS: Cannot open root device muerte42200 Linux - Newbie 6 01-21-2005 03:43 AM
VFS: Cannot open root device 08:01 rddreamz Red Hat 0 05-09-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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