Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic unable to mount root fs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Joe_Bogarde
n00b
n00b


Joined: 01 Jun 2003
Posts: 45
Location: Ellensburg WA

PostPosted: Thu Jan 22, 2004 10:03 am    Post subject: Kernel Panic unable to mount root fs Reply with quote

I installed gentoo 1.4 with gaming sources (custom kernel), grub.
When I reboot I get the following error message:
ds: no socket driver
bad magic number
sb validate failed
Kernel Panic : VFS: Unable to mount root fs on 03:04

/etc/fstab

/dev/hda1 windows
/dev/hda2 /boot
/dev/hda3 /swap
/dev/hda4 /

Any help will be welcome. I will not attempt to reinstall (too much work). I will wait for help from the community here. Thanks in advance.
_________________
"Persons attempting to find a motive in this narrative will be prosecuted; persons attempting to find a moral in it will be banished; persons attempting to find a plot in it will be shot." Mark Twain.
Back to top
View user's profile Send private message
ozukir@
Apprentice
Apprentice


Joined: 14 Oct 2002
Posts: 209
Location: USA

PostPosted: Thu Jan 22, 2004 11:08 am    Post subject: Reply with quote

If that is the content of your fstab, then there is little wonder why the root file system could not be mounted. You should check out the man page for fstab. You'd be better off basing your fstab off the one provided by gentoo, adjusting as necessary.
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Thu Jan 22, 2004 11:37 am    Post subject: Reply with quote

Ozukir@ is right about that one, use the gentoo /etc/fstab from the installation and edit it to your needs, making one like that will definitly not work.

Also, show your grub.conf file, that could provide clues.
Back to top
View user's profile Send private message
FreeFly42
l33t
l33t


Joined: 03 Nov 2003
Posts: 848
Location: Houston, TX

PostPosted: Thu Jan 22, 2004 4:50 pm    Post subject: Reply with quote

Here's a sample for you which may match your config, but you'll have to get the filesystem types correct:
Code:
/dev/hda1   /mnt/winC   vfat        uid=1000,gid=100        0 1
/dev/hda2   /boot       ext2        noauto,noatime          1 2
/dev/hda3   none        swap        sw                      0 0
/dev/hda4   /           reiserfs    noatime                 0 1

Of course you would have to make sure the filesystem type is correct for your partitions! If you use a reiserfs for /boot you'll also need a notail option.

The first line (of course) would be optional--you may not want to have your Windows partition available to Gentoo. If you did, though, you would need to create a directory for mounting your windows partition at /mnt/winC:
Code:
mkdir /mnt/winC


This is just a sample. Don't copy it straight over and assume it will work for you. If you post more information on your filesystem choices we could post a configuration that would probably work for you.
_________________
Kent

Planes are dangerous, get out of 'em quick
Back to top
View user's profile Send private message
Joe_Bogarde
n00b
n00b


Joined: 01 Jun 2003
Posts: 45
Location: Ellensburg WA

PostPosted: Thu Jan 22, 2004 8:53 pm    Post subject: Reply with quote

2 am.
Here's a deprecated version of fstab
/dev/hda2 /boot ext3
/dev/hda4 / reiserfs
/dev/hda3 none swap
/dev/hda1 /windows ntfs

grub
default 0
timeout 30
Splashimage=(hd0,1)/boot/grub/splash.xpm.gz
titlle=Gentoo Linux
root (hd0,1)
kernel (hd0,1)/boot/bzImage root=/dev/hda4
title=Windows xp
root (hd0,0)
chainloader (hd0,0)+1
_________________
"Persons attempting to find a motive in this narrative will be prosecuted; persons attempting to find a moral in it will be banished; persons attempting to find a plot in it will be shot." Mark Twain.
Back to top
View user's profile Send private message
FreeFly42
l33t
l33t


Joined: 03 Nov 2003
Posts: 848
Location: Houston, TX

PostPosted: Fri Jan 23, 2004 5:49 am    Post subject: Reply with quote

Ok, then try:
Code:
/dev/hda1   /mnt/winC   ntfs        uid=1000,gid=100,ro     0 1
/dev/hda2   /boot       ext3        noauto,noatime          1 2
/dev/hda3   none        swap        sw                      0 0
/dev/hda4   /           reiserfs    noatime                 0 1

Unless you're running a 2.6 series kernel you'll only have read-only access to the ntfs partition, and you'll have to make sure the ntfs support is included in the kernel.
_________________
Kent

Planes are dangerous, get out of 'em quick
Back to top
View user's profile Send private message
ozukir@
Apprentice
Apprentice


Joined: 14 Oct 2002
Posts: 209
Location: USA

PostPosted: Fri Jan 23, 2004 7:24 am    Post subject: Reply with quote

I hate to be the one giving more help than necessary, especially when sufficient help has already been delivered. But if you're gonna hand hold all the way to a complete fstab I must point out that you're missing
Code:
none  /proc  proc  defaults  0  0
none  /dev/shm  tmpfs  defaults  0  0
You might as well include the floppy and cdrom (assuming that you have those). While they're not necessary to boot the system, I'm sure you'll eventually find them useful.
Code:
/dev/fd0  /mnt/floppy  auto  noauto,user  0  0
/dev/cdroms/cdrom0  /mnt/cdrom  auto  noauto,user,ro  0  0
Back to top
View user's profile Send private message
kwetz
n00b
n00b


Joined: 04 Jan 2004
Posts: 22
Location: Venice Florida

PostPosted: Fri Jan 23, 2004 4:18 pm    Post subject: Reply with quote

One you might miss and it's a easy to make error if you are tired is assuming the 1 down numbering scheme of grub extends to the root statement.
"kernel (hd0,0)/boot/bzImage root=/dev/hda3"
" /dev/hda3" is really "/dev/hda3" not "/dev/hda2".
You get a kernel panic error message of unable to mount root drive doing that one to. ( ahem I did that when I got up at 3 am to check on progress and decided to go for it , but one huh? at the error message and I stuck the installation disk back in and re-edited grub.conf )
But I will say grubs nice now that I've gotten used to it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum