LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-23-2003, 05:24 PM   #1
jchutcheson
LQ Newbie
 
Registered: Sep 2003
Location: U.S.A. - New England
Distribution: Red Hat 9.0
Posts: 3

Rep: Reputation: 0
Unhappy Kernel Problem -- Cannot open root device


I'm a newbie on my first Kernal adventure. I've made many attempts to do a custom complie of Red Hat 2.4.20-20.9 (without backing up the original -- shame on me). I keep getting the following message (despite many variations in Grub config):

"VFS: Cannot open root device "root=" boot option
Kernal panic: VSF: Unable to mount root fs on 00:00"

The last thing displayed above this from the failed boot attempt is:

"Net4: Unix domain sockets 1.0/SMP for Linux Net4.0"

I still am able to boot Kernal 2.4.20-6 (at least I had enough presence of mind not to nuke that when I started to play around). When 2.4.20-6 boots, the text re. Net4 reads as follows:

"Net4: TCP/IP 1.0 for Net4.0"

I assume this difference is critical, but can't find "Net4" in either versions config. file. Grub configuration is identical for both kernals, except for version no. (of course), so doesn't appear to be there.

Any suggestions on where I went wrong. Please bear in mind that if there is someplace I need to configure beyond the .config file, it's probably all news to me.

Thanks.

Last edited by jchutcheson; 09-24-2003 at 12:27 PM.
 
Old 09-23-2003, 09:31 PM   #2
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
umm, i'm not 100% sure what net 4 is, but frankly i don't think that's your problem: the kernel panic is being caused by the fact the kernel can't find a root filesystem, which makes me think that your grub entry is somehow wrong. i'm a lilo man myself, so i dunno what your grub entry should look like, but in lilo you have to tell each kernel that you want to boot where the root fs is, e.g. "root=/dev/hda3" or something. i see you said you tried different grub configs-- could you post some of them? (i know you said the configs are the same for those that work and those that don't, but humor me).

also, regarding that net4 thing. it mentions something about SMP. does your system have more than one processor? if not, and you compiled the kernel for symetric multiprocessors, it might cause it to panic.
 
Old 09-24-2003, 02:17 AM   #3
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
Make sure that the kernel u compile is confgured to load the root fs system ..in my case/most cases its ext2 which u canot load it as a module ...
It will fail to boot the kernel...

Never mind the unix domain sockets it doenst have anythng to do wth ur kernel failures...
 
Old 09-24-2003, 09:36 AM   #4
jchutcheson
LQ Newbie
 
Registered: Sep 2003
Location: U.S.A. - New England
Distribution: Red Hat 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Cool Problem Solved (sort of)

Not sure how to configure the Kernal to load the root file system, but I had another idea that seems to have solved the problem. Since I still had an earlier working version (v. 2.4.20-6), I decided to select the xconfig option that lets you work from an existing version's config file. I got a lot more "stuff" in my kernal than I really want, but with a quick test, I found that it now boots and I can work it back by de-selecting kernal configuration options from there. All in all, looks like a case of just needing to be more aware of what different choices mean during the config process (sorry -- not sure where I made the mistake, but I'll post again if I recreate it while paring the kernal back).

By the way, before finding this dummy solution, I did reconfigure and made sure to deselect multiprocessor. That did not eliminate the problem (although I had not intended to select SMP in the first place). I'm all the more convinced that grub was not the problem, but here's my grub.conf file for anyone that's interested:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-20.9-JH030924)
root (hd0,1)
kernel /vmlinuz-2.4.20-20.9-JH030924 ro root=LABEL=/
initrd /initrd-2.4.20-20.9-JH030924.img
title Red Hat Linux (2.4.20-6)
root (hd0,1)
kernel /vmlinuz-2.4.20-6 ro root=LABEL=/
initrd /initrd-2.4.20-6.img
title DOS (Windows 2000)
rootnoverify (hd0,0)
chainloader +1

Thanks, all, for the helpful replies.

Last edited by jchutcheson; 09-24-2003 at 04:14 PM.
 
  


Reply



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
Kernel Trouble: VFS: Cannot open root device Optimistic Debian 2 09-19-2005 02:41 PM
New kernel - VFS: Cannot open root device "301" or unknown block(3,1) j0y Debian 2 04-30-2005 09:14 PM
Kernel Panic - VFS unable to open root device JcB Slackware 17 10-30-2004 11:27 AM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 03:08 AM
Cannot open root device r2bit Linux - Software 1 01-08-2004 06:14 PM

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

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