Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic: VFS: ....
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
WarnK
n00b
n00b


Joined: 13 Sep 2004
Posts: 34

PostPosted: Wed Sep 15, 2004 2:46 pm    Post subject: Kernel Panic: VFS: .... Reply with quote

I am trying to install gentoo on a new nice sata hd, on my amd64 system. I already have one sata hd installed with Windows XP on.

First gentoo doesn't want to use the scsi sata controller or whatever, im new to this. So I end up doing "modprobe ide_disk", which deteced my hds, I could then make partitions and install. After installning grub, and configurating it and rebooting I get:

Code:
VFS: Cannot open root device "hdg3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)


Ok, so I check the "root=" setting in grub.conf, search forums, chekc other things etc and I can't get it to work. I'd really like some help. :) Here's some info:

fdisk -l /dev/hdg
Code:

/dev/hdg1 *(boot) blah linux
/dev/hdg2 blah swap
/dev/hdg3 blah linux
/dev/hdg4 blah linux


/etc/fstab
Code:

/dev/hdg1   /boot   reiserfs   noatime 1 2
/dev/hdg3   /   reiserfs   noatime 0 1
/dev/hdg4   /home   reiserfs   noatime 0 2
/dev/hdg2   none   swap   swap 0 0
..cdrom..
..proc..
..shm..


/boot/grub/grub.conf
Code:

blah

# Gentoo
title Gentoo 2.6.8
root (hd1,2)
kernel (hd1,0)/kernel-2.6.8-gentoo root=/dev/hdg3

# WinXP
blah


Note that Windows XP is on (hd0,0) and all linux partitions is on (hd1).

Also, I made sure to compile in scsi sata support in the kernel.
In the kernel .config file I can see that
Code:
CONFIG_SCSI=y
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_VIA=y
CONFIG_SCSI_QLA2XXX=y
Back to top
View user's profile Send private message
reaver
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 88
Location: /Twente/Nijverdal

PostPosted: Wed Sep 15, 2004 4:58 pm    Post subject: Reply with quote

Quote:

Also, I made sure to compile in scsi sata support in the kernel.
In the kernel .config file I can see that
Code:

CONFIG_SCSI=y
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_VIA=y
CONFIG_SCSI_QLA2XXX=y


Doesn't your sata drive, being a scsi_sata type thingie, end up in the /dev/sd* range?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Sep 15, 2004 5:22 pm    Post subject: Reply with quote

How about ... grub.conf ... typing
Code:
hd(0,0)
or whatever fits your system.. And not (hd0,0)
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
WarnK
n00b
n00b


Joined: 13 Sep 2004
Posts: 34

PostPosted: Wed Sep 15, 2004 5:57 pm    Post subject: Reply with quote

reaver wrote:

Doesn't your sata drive, being a scsi_sata type thingie, end up in the /dev/sd* range?


I wish it did, but it doesn't. :\

Typing hd(0,0) instead of (hd0,0) doesn't seem to make any difference either.
Back to top
View user's profile Send private message
kevdoig
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 171

PostPosted: Thu Sep 16, 2004 7:23 am    Post subject: Reply with quote

so windows is on hde? Is grub on the mbr of the linux hard drive, or the windows one? if its on the gentoo one, oyu'll have to make grub the following.


blah

# Gentoo
title Gentoo 2.6.8
root (hd0,0)
kernel (hd0,0)/kernel-2.6.8-gentoo root=/dev/hdg3

# WinXP
blah
Back to top
View user's profile Send private message
gentoogibi
n00b
n00b


Joined: 16 Sep 2004
Posts: 23
Location: $HOME sweet home

PostPosted: Thu Sep 16, 2004 7:54 am    Post subject: I have the same problem !! Reply with quote

The same thing happened to me ! I am sure i entered the correct configuration in grub.conf ! I will try to post my config files later because i am at work right now and can't reproduce all my config files by heart,but i am quite certain i have the same pb!
_________________
If people where left alone to do what they damn well please they would start copying one another !
Back to top
View user's profile Send private message
WarnK
n00b
n00b


Joined: 13 Sep 2004
Posts: 34

PostPosted: Thu Sep 16, 2004 2:32 pm    Post subject: Reply with quote

Solved! :D

By changing root=/dev/hdg3 ro root=/dev/sdb3 it loaded! Obvious, since I compiled in scsi sata support in my kernel and the gentoo installation is on my second hd and the root on the third partition. Funny that grub still see the hds as (hdx,x) though. Shouldn't grub see them as (sdx,x)?

I also had to change the fstab file from the /dev/hdgx to /dev/sdbx

But now it works, thanks!
Back to top
View user's profile Send private message
reaver
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 88
Location: /Twente/Nijverdal

PostPosted: Thu Sep 16, 2004 3:44 pm    Post subject: Hehehehe Reply with quote

See? :D
Back to top
View user's profile Send private message
bcurry
n00b
n00b


Joined: 18 Apr 2003
Posts: 23
Location: Bailey, CO

PostPosted: Mon Sep 20, 2004 5:30 pm    Post subject: Reply with quote

I spent about 7 hours trying to install and then fix this same problem. I tried Grub and Lilo to no avail. I really want to switch to Gentoo from Mandrake. I've been a Mandrake user for about 5 years...which makes me a noob for any distro that takes concious thought.

I have a single SATA drive on an Abit NF7-S.

Everything went well using /dev/sda but I couldn't find a combination of settings in Grub or Lilo that would allow the system to boot.

Can someone please post a working grub.conf and fstab for an SATA system?

As always, explanations that are monkey-proof will be appreciated.

Thanks forward!

bc 8O
_________________
ABIT Fatal1ty AN8SLI
AMD64 3500+
1024 MB DDR CAS 2
GeForceFX 7800 GT OC BFG Twinview
160G SATA HD
DVDRW
uGuru
Back to top
View user's profile Send private message
reaver
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 88
Location: /Twente/Nijverdal

PostPosted: Mon Sep 20, 2004 5:53 pm    Post subject: wheeeee Reply with quote

Hoppa:
Code:

cat /boot/grub/grub.conf
title=gentoo-linux-old
        root (hd0,0)
        kernel=(hd0,0)/kernel-2.6.5-gentoo root=/dev/sda4 init=linuxrc vga=0x317  splash=verbose

title=gentoo-linux
        root (hd0,0)
        kernel=(hd0,0)/kernel-2.6.7-gentoo-r14 root=/dev/sda4 init=linuxrc vga=0x317 splash=verbose
Back to top
View user's profile Send private message
bcurry
n00b
n00b


Joined: 18 Apr 2003
Posts: 23
Location: Bailey, CO

PostPosted: Mon Sep 20, 2004 6:58 pm    Post subject: Reply with quote

Thanks, While I don't see anything different in yours, I'll wipe this broken MDK 10.1 (rivafb killing my nvidia driver) and try again in the next week or so.

Thanks again!

bc
_________________
ABIT Fatal1ty AN8SLI
AMD64 3500+
1024 MB DDR CAS 2
GeForceFX 7800 GT OC BFG Twinview
160G SATA HD
DVDRW
uGuru
Back to top
View user's profile Send private message
Jhurleston
n00b
n00b


Joined: 10 Oct 2003
Posts: 48

PostPosted: Mon Sep 27, 2004 1:34 am    Post subject: same problem with mine. Reply with quote

I'm having the same problem, except that I'm using lilo.

The system was up and working and then, I coundn't get in, etc ...
I've spent a few hours checking that my system hasnt broken.

So I put my cd_live in and started checking.
All seems to be just fine, except that, When I reboot, etc...

I get the same (more or less):

Code:
Kernel panic: VFS: Unable to mount root fs on unknown-block(3,3)
Back to top
View user's profile Send private message
verlane24
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2004
Posts: 75
Location: Springfield, MO

PostPosted: Mon Sep 27, 2004 3:34 pm    Post subject: Reply with quote

I had the same error after doing a stage 1 install. VFS: Unable to to open root filesystem... etc

My problem was I did not compile support for PC/MS-Dos Partition tables in the kernel... I dual boot with w2k, and I guess the kernel can't read the partition tables without that in there.

I can't remember where it is is menuconfig, but it's something you might check.

good luck
tv
Back to top
View user's profile Send private message
lear
n00b
n00b


Joined: 25 Aug 2004
Posts: 4

PostPosted: Mon Sep 27, 2004 6:21 pm    Post subject: Reply with quote

Interesting... I just encountered the same type of problem on my AMD64 box. However, I had a working system, it was only when I tried to update to kernel 2.6.8 (from 2.6.7) that it wouldn't find my SATA HD any more. I'll try specifying dev/sd* as root (guessing if it maps to a or b or whatever).

I guess this means I'll have to update fstab and similar stuff as well... But I can't really do that until I know the partition name, which could mean I'll have to use the LiveCD to complete the upgrade. :?

Are there any good places to find information about these kind of changes? And no, the kernel changelog is way too verbose to be useful... :(
Back to top
View user's profile Send private message
lear
n00b
n00b


Joined: 25 Aug 2004
Posts: 4

PostPosted: Mon Sep 27, 2004 6:48 pm    Post subject: Reply with quote

Yep, root=/dev/sda12 did the trick (and yes, I had to use the LiveCD to fix /etc/fstab). I sure hope future kernel upgrades will be smoother...
Back to top
View user's profile Send private message
blackphiber
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 86
Location: IL

PostPosted: Mon Sep 27, 2004 11:06 pm    Post subject: Reply with quote

http://bugzilla.kernel.org/show_bug.cgi?id=3352
looks like it is a bug in the kernel from the 9th.

try https://forums.gentoo.org/viewtopic.php?p=1578389#1578389 or if that does not work https://forums.gentoo.org/viewtopic.php?t=228015&highlight=

so yeah, I am having problems too, anyone know real quick how to go about using an older kernel like say 2.6.5 until they get this fixed?
Back to top
View user's profile Send private message
reaver
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 88
Location: /Twente/Nijverdal

PostPosted: Tue Sep 28, 2004 5:12 pm    Post subject: Reply with quote

I had these problems. I'm running x86_64 on an Nforce 150 using Silicon Image sata. Kernel 2.6.5-gentoo and 2.6.7-gentoo work for me though.
Back to top
View user's profile Send private message
bcurry
n00b
n00b


Joined: 18 Apr 2003
Posts: 23
Location: Bailey, CO

PostPosted: Sun Oct 10, 2004 6:46 pm    Post subject: Finally got there.... Reply with quote

Well, my SATA problems were in the kernel. I had it set up in both the IDE and SCSI sections and it conflicted. Working in just the SCSI section now and everything seems to be going well. Since I'm new to Gentoo, I'm installing LOTS of stuff to see what I like best.

Now I just need to get my Twinview and audio working after the 20+ hours of emerging I've got running.

Thanks for the great forum support!

Bruce
_________________
ABIT Fatal1ty AN8SLI
AMD64 3500+
1024 MB DDR CAS 2
GeForceFX 7800 GT OC BFG Twinview
160G SATA HD
DVDRW
uGuru
Back to top
View user's profile Send private message
shroomz
n00b
n00b


Joined: 17 Oct 2004
Posts: 1

PostPosted: Sun Oct 17, 2004 9:54 pm    Post subject: Reply with quote

I've got the same problem on my sparcstation 20 with mdk 7.1. after installation the message appears. I don't understand what happens because debian works fine on it. trying aurora now...
Back to top
View user's profile Send private message
bcurry
n00b
n00b


Joined: 18 Apr 2003
Posts: 23
Location: Bailey, CO

PostPosted: Sun Oct 17, 2004 11:02 pm    Post subject: Reply with quote

shroomz wrote:
I've got the same problem on my sparcstation 20 with mdk 7.1. after installation the message appears. I don't understand what happens because debian works fine on it. trying aurora now...


I suspect that the problem is that MDK 7.1 was released (and is no longer supported) before SATA was available. I know MDK 9.1, 10.0 and 10.1 support it because I was running those on this machine before installing Gentoo.

BTW, I have Twinview running like a champ...now to get the audio to be clear instead of distorted.

Luck!

Bruce
_________________
ABIT Fatal1ty AN8SLI
AMD64 3500+
1024 MB DDR CAS 2
GeForceFX 7800 GT OC BFG Twinview
160G SATA HD
DVDRW
uGuru
Back to top
View user's profile Send private message
Rollbar
n00b
n00b


Joined: 16 Sep 2004
Posts: 26
Location: Sweden, STHLM

PostPosted: Sat Oct 23, 2004 1:33 pm    Post subject: Reply with quote

I'm having the same problem WarnK had. Asus K8V SE mobo, and one SATA-disk with Win2k on hde1, boot on hde2, swap on hde3 and root on hde4.

Code:

VFS: Cannot open root device "303" or unkown-block(3.3)
Please append correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(3.3)


Changing "hde4" to "sde4" doesn't work, as "sde" doesn't even exist in /dev/.
When I boot with the Live-CD, the enviroment obviously detects my sata-disk as "hde", even when I chroot into my own enviroment. In my own enviroment, there's lots of sd*-thingies in /dev/, but I've tested them all with hdparm and none of them exists.

This is getting on my nerves :s.

*edit*

Heh, kind of solved it now...
In LILO, I was trying to boot the kernel by manually passing the root-path to sde4 (to replace hde4), ie gentoo root=/dev/sde4. Things is, I accidently typed "sda4" instead of "sde4", and shwoosh, the kernel booted. Of course it whined about sda4 not existing etc etc, but I reconfigured fstab so that my partitions are called "sda*" instead of "hde*". Seems to work perfectly so far.
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