Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VFS: cannot open root device "2103" or [solved]
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
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Tue May 24, 2005 8:57 pm    Post subject: VFS: cannot open root device "2103" or [solved] Reply with quote

hiho@ll

i tried to install Gentoo 2005.0 using LiveCD:
System:
1400Mhz Athlon Thunderbird
Mainboard: KG7RAID
2 Harddisks (/dev/hde,/dev/hdg)
1 cdr (/dev/hda)
bootloader: LILO

partitions:
/dev/hdg - one ext3 partition (not really used yet)
/dev/hde - /dev/hde1 boot(ext2) 32M
/dev/hde2 swap 1024M
/dev/hde3 ext3 about 39Gb

during boot i get the following error message:
VFS: cannot open root device "2103" or unkown-block(33,3)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(33,3)
<7>ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011060001169031]

---------------------

i know there are some posts about this problem (discussing SATA, boot loaders ...)
well, i don't have a solution yet

btw: i tried to install grub, but when the grub bootloader should load the screen gets black and my system restarts
so i switched to lilo, cause it works to boot, but i get the above error msg
everything else is default standard (gentoo handbook) configuration

question 1: What can cause the problem?
I mean, what possible facts can there be to force the kernel to show such a message?
question 2: well, anyone has an idea?

thx@ll


Last edited by thinking on Thu May 26, 2005 1:55 pm; edited 3 times in total
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Tue May 24, 2005 9:24 pm    Post subject: Re: VFS: cannot open root device "2103" or unkown- Reply with quote

thinking wrote:
hiho@ll

i tried to install Gentoo 2005.0 using LiveCD:
System:
1400Mhz Athlon Thunderbird
Mainboard: KG7RAID
2 Harddisks (/dev/hde,/dev/hdg)
1 cdr (/dev/hda)
bootloader: LILO

partitions:
/dev/hdg - one ext3 partition (not really used yet)
/dev/hde - /dev/hde1 boot(ext2) 32M
/dev/hde2 swap 1024M
/dev/hde3 ext3 about 39Gb

during boot i get the following error message:
VFS: cannot open root device "2103" or unkown-block(33,3)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(33,3)
<7>ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011060001169031]

---------------------

i know there are some posts about this problem (discussing SATA, boot loaders ...)
well, i don't have a solution yet

btw: i tried to install grub, but when the grub bootloader should load the screen gets black and my system restarts
so i switched to lilo, cause it works to boot, but i get the above error msg
everything else is default standard (gentoo handbook) configuration

question 1: What can cause the problem?
I mean, what possible facts can there be to force the kernel to show such a message?
question 2: well, anyone has an idea?

thx@ll


The only time I've seen this error is when I forget to edit /etc/fstab and change the default / "vfs" partition to reiserfs (for me) looks like ext3 for you.

Please post your /etc/fstab file.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
kommissar
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2005
Posts: 78

PostPosted: Tue May 24, 2005 9:47 pm    Post subject: Re: VFS: cannot open root device "2103" or unkown- Reply with quote

thinking wrote:
during boot i get the following error message:
VFS: cannot open root device "2103" or unkown-block(33,3)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(33,3)
<7>ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011060001169031]

btw: i tried to install grub, but when the grub bootloader should load the screen gets black and my system restarts
so i switched to lilo, cause it works to boot, but i get the above error msg
everything else is default standard (gentoo handbook) configuration
thx@ll

To remedy the black screen / restart error with grub try adding this to your grub.conf: timeout 30. This should tell grub to wait 30 seconds before booting the kernel so you can see what is going on.

The "cannot open root device" error almost looks like you did install grub and you have simply forgotten the root= option in the grub.conf file. For example, my grub.conf file reads as follows:
Code:
title=Gentoo Linux 2.6.11-r9-05232005
root(hd0,0)
kernel /kernel-2.6.22-gentoo-r9-05232005 root=/dev/hda3 video=vesafb:mtrr,ywrap,1024x768-32@85

Saying "root" can be deceptive. The first root(hd0,0) refers to where the bootloader is installed, in my case my /boot partition is on /dev/hda1. This is harddrive zero, partition zero, and therefore (hd0,0) in GRUB language. The parameters specify the kernel to boot (relative to the root mentioned above), and the "root" parameter refers to your root partition or the partition mounted at /. For you this would be /dev/hde3 I think.

Your system has to have some form of bootloader installed in order to boot, so I'm guessing that you didn't unemerge grub before you tried other options and it is still there. If you can't get your system to boot with grub, you probably won't get it to boot with anything else.

Post more questions after referring to the Gentoo Installation Handbook on Configuring the Bootloader
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Tue May 24, 2005 9:59 pm    Post subject: Re: VFS: cannot open root device "2103" or unkown- Reply with quote

kommissar wrote:

kernel /kernel-2.6.22-gentoo-r9-05232005 root=/dev/hda3 video=vesafb:mtrr,ywrap,1024x768-32@85[/code]
Saying "root" can be deceptive. The first root(hd0,0) refers to where the bootloader is installed, in my case my /boot partition is on /dev/hda1. This is harddrive zero, partition zero, and therefore (hd0,0) in GRUB language. The parameters specify the kernel to boot (relative to the root mentioned above), and the "root" parameter refers to your root partition or the partition mounted at /. For you this would be /dev/hde3 I think.


GOOD CATCH!

I missed that, man you get so used to seeing /dev/hda3 its practically burned into your retinas.

Raydude.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Wed May 25, 2005 6:51 am    Post subject: Reply with quote

@RayDude

i'm at work now, so i can't surely tell you my fstab, but as i said, i installed it like described in the handbook

so i think ext3 is set in fstab for /

but i'll have a look ;-)
thx

@kommisar
1:
well as already said, i used the handbook
this means my grub.conf looks like that from the handbook
WITH the timeout set
but with grub i get a black screen and the system restarts (not really waiting 30 seconds!)

that's why i don't want to use grub
lilo can boot, but i get an error
grub can't boot and i get nothing ;-)

2:
i don't know what you mean with "Your system has to have some form of bootloader"
because i posted that i'm using lilo
and i'm not sure, but i can only get the kernel panic, if the kernel boots
which means, lilo can load and boot the kernel, but the kernel fails

i'm not an expert, but doesn't this mean, it's a kernel problem, not a bootloader problem
well, i can use the root option using the bootloader, but it's the kernel who causes the problem
because the bootloader can load and start the kernel

or i'm thinking in the wrong direction?
*confused* *g*

hmm
another question:
why the error message looks like "kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(33,3)"?
i mean, why 33,3?
i think 3 = /dev/hde3
33 = /dev/hde?

why it's 33?

thx
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed May 25, 2005 4:57 pm    Post subject: Reply with quote

Code:
i mean, why 33,3?
i think 3 = /dev/hde3
33 = /dev/hde?

why it's 33?
It is how devices are numbered in the kernel. major number 33 means hde, minor number 3 means 3rd partition on disk 33, so hde3.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Wed May 25, 2005 5:40 pm    Post subject: Reply with quote

thinking wrote:
@RayDude

i'm at work now, so i can't surely tell you my fstab, but as i said, i installed it like described in the handbook

so i think ext3 is set in fstab for /

but i'll have a look ;-)
thx


I think we need to see your lilo.conf (or your grub.conf).

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Thu May 26, 2005 10:31 am    Post subject: Reply with quote

lilo.conf

lba32
boot=/dev(hde
map=/boot/.map

install=/boot/boot-menu.b
menu-scheme=Wb
prompt
delay=50
vga=normal
image=/boot/kernel-2.6.11
root=/dev/hde3
label=Gentoo

grub.conf

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.11-r3
root (hd0,3)
kernel /kernel-2.6.11 root=/dev/hde3
savedefault
boot

-------------------

i already tried everything posted in this thread
http://kerneltrap.org/node/970

summary:
using mkinitrd to generate an img
changed in lilo.conf
initrd=/boot/initrd-2.6.11.img

(i also changed it in the grub.conf but grub don't want to boot (i think grub-install can't install grub into my MBR, that's why i get a black screen and immediately reboot the system))

using the initrd in lilo.conf
i get the following error:
VFS: cannot open root device "2103" or unkown-block(33,3)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(33,3)

and not
VFS: cannot open root device "2103" or unkown-block(33,3)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(33,3)
<7>ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011060001169031]

which i got before

i tried also to set ADVANCED PARTITION SELECTION = n
and checked that CONFIG_BLK_DEV_IDEDISK=y

nothing helped
i get the kernel panic error

next i tried to switch the harddisk from IDE3 to IDE2 of my 4 IDE channels
during kernel boot i recognized, that the kernel checked the harddisk as hdc right after he checked the cd drive (hda)
if i switch back to IDE3 it only recognizes hda = cdrom!!

i also searched on bugzilla.kernel.org
and now i think it's a kernel bug because there are a few threads when you search for "unable to mount root fs"
link (Added url tags. --pjp)
and this thread
http://bugzilla.kernel.org/show_bug.cgi?id=1823
says there are about 3000 links if you search google for "unable to mount root fs"
well i got 13800 links, but the thread is from year 2004 *g*

i'm asking myself if i should try to compile with kernel 2.4?
many problems occured while upgrading to kernel 2.6

*thinking* ;-)
Back to top
View user's profile Send private message
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Thu May 26, 2005 12:15 pm    Post subject: Reply with quote

hiho@ll

i tried it with 2.4.29 kernel
the same problem again

well, seems it's not a kernel bug *g*

any suggestions?
Back to top
View user's profile Send private message
thinking
n00b
n00b


Joined: 22 May 2005
Posts: 46

PostPosted: Thu May 26, 2005 1:53 pm    Post subject: Reply with quote

hiho@ll

here again
and my system works now!!!!
first thx@ll

what i did:
1. i compiled everything into the kernel which has something to do with filesystems (ext3,raiserfs, ide drivers, sata drivers, scsi,....)
2. i got an error message:
Kernel panic - not syncing: No init found. Try passing init = option to kernel
3. i changed fstab and lilo until it runs
i don't really know what it was that i changed to make it work
but if i get the init kernel panic and i use an kernel parameter "root=/dev/hde3" it could boot
maybe i changed lilo.conf before and then i changed it back to root=/dev/hde3
i don't know
but now it works

thx@ll

May the TUX be with you
linux rulez ;-)
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Thu May 26, 2005 9:35 pm    Post subject: Reply with quote

thinking wrote:
hiho@ll

here again
and my system works now!!!!
first thx@ll

what i did:
1. i compiled everything into the kernel which has something to do with filesystems (ext3,raiserfs, ide drivers, sata drivers, scsi,....)
2. i got an error message:
Kernel panic - not syncing: No init found. Try passing init = option to kernel
3. i changed fstab and lilo until it runs
i don't really know what it was that i changed to make it work
but if i get the init kernel panic and i use an kernel parameter "root=/dev/hde3" it could boot
maybe i changed lilo.conf before and then i changed it back to root=/dev/hde3
i don't know
but now it works

thx@ll

May the TUX be with you
linux rulez ;-)


Do you mean you didn't have the drivers for the root and home partitions compiled into the kernel? I can't see how it would work at all that way, even booting from floppy...

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
lordkur
Tux's lil' helper
Tux's lil' helper


Joined: 13 Feb 2004
Posts: 105
Location: Venezuela

PostPosted: Mon Nov 07, 2005 1:20 am    Post subject: VFS: cannot open root device "2103" Reply with quote

Quote:
RayDude wrote:
thinking wrote:
hiho@ll

here again
and my system works now!!!!
first thx@ll

what i did:
1. i compiled everything into the kernel which has something to do with filesystems (ext3,raiserfs, ide drivers, sata drivers, scsi,....)
2. i got an error message:
Kernel panic - not syncing: No init found. Try passing init = option to kernel
3. i changed fstab and lilo until it runs
i don't really know what it was that i changed to make it work
but if i get the init kernel panic and i use an kernel parameter "root=/dev/hde3" it could boot
maybe i changed lilo.conf before and then i changed it back to root=/dev/hde3
i don't know
but now it works

thx@ll

May the TUX be with you
linux rulez ;-)


Do you mean you didn't have the drivers for the root and home partitions compiled into the kernel? I can't see how it would work at all that way, even booting from floppy...

Raydude


Hello Pal , I have the exact same error!!!!!!!!!! I have tried A LOT of configuration with fsta and lilo and nothing happened .Could You Please post ur actual fstab and lilo configuration?? I will apreciatte that so much!!!!!!!

THANK U!


I just installed grub and change the root for root=/dev/hda and also the fstab and voila!!!!!!!IT worked!!!!!!!![/quote]
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