Jump to content

2.6.0 not booting-vfs: cannot open root device....


iphitus
 Share

Recommended Posts

I compiled my own 2.6.0 and went to boot it and I got the following error

vfs: cannot open root device "306" or unknown-block(3,6)

Please append a correct "root=" boot option

Kernel panic: VFS unable to boot rootfs on unknown-block(3,6)

 

Lilo is passing the correct options.

 

Here is my /etc/lilo.conf

The test9 kernel is working fine, it is a debian compiled one that im using right now.

I *know* I compiled Ext2 and 3 into the kernel along with the appropriate drivers for my IDE.

 

I have also many times successfully compiled a 2.4 kernel

 

boot=/dev/hda
root=/dev/hda6
install=/boot/boot.b
map=/boot/map
default="2.6.0-test9"
prompt
nowarn
timeout=100
image=/boot/vmlinuz-2.4.22-1-686
       label="2.4.22"
       initrd=/boot/initrd.img-2.4.22-1-686
       root=/dev/hda6
       append="acpi=off"
image=/boot/vmlinuz-2.6.0-test9-1-386
       label="2.6.0-test9"
       root=/dev/hda6
       append="acpi=off"
       initrd=/boot/initrd.img-2.6.0-test9-1-386
       read-only
image=/boot/bzImage-2.6.0
       label="2.6.0"
       root=/dev/hda6
       initrd=/boot/initrd.img-2.6.0
       append="acpi=off root=/dev/hda6"
       read-only
other=/dev/hda1
       label="windex"
other=/dev/fd0
       label="floppy"
       unsafe

 

And lspci

 

00:00.0 Host bridge: Intel Corp. 440LX/EX - 82443LX/EX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440LX/EX - 82443LX/EX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:0a.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI]
00:0b.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)

 

My kernel .config is here: http://aslan.no-ip.com/~iphitus/kernelconfig

 

Thanks, i've googled found lots of other people with the same or similar problem but no working fixes.

 

iphitus

Edited by iphitus
Link to comment
Share on other sites

and you have an initrd and initrd in the kernel?

no errors during compile concerning initrd?

I knew someone would ask about initrd.

 

I tried booting with and without an initrd, no difference.

 

I compiled in all neccesary compnents for initrd.

 

It has nothing to do with initrd.

Link to comment
Share on other sites

Upon request, my fstab

 

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

/dev/hda6 / ext3 defaults,errors=remount-ro 0 1

/dev/hda7 /home ext3 defaults 0 2

/dev/hda8 none swap sw 0 0

/dev/fd0 /floppy auto rw,user,noauto 0 0

/dev/hdc /cdrom iso9660 ro,user,noauto 0 0

proc /proc proc defaults 0 0

 

/dev/sda /mnt/sd auto noauto,user 0 0

 

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

/dev/hda1 /mnt/windex vfat defaults,user,noauto 1 0

#/dev/hda5 /home/james/share vfat defaults,user,noauto 1 0

/dev/hda5 /home/james/share vfat defaults,user,noauto 1 0

/dev/sda1 /mnt/sd auto noauto,user 0 0

Link to comment
Share on other sites

It's the one I have -- My mobo is an Intel 440BX chipset. I know it uses this below because it's what my current kernel says when booting.

 

I also mounted the initrd that mkinitrd made, it is perfectly fine.

 

I might also add that i tried recompiling, i changes these options:

 

CONFIG_BLK_DEV_PIIX=y

From module to inbuilt.

 

CONFIG_BLK_DEV_GENERIC=y

From undefined to inbuilt

 

And it still doesnt work!!

 

But test9 works..... dammit!!!

Link to comment
Share on other sites

this normally doesn't work with vanilla's but did you try to

cp /usr/src/linux/arch/i386/defconfig /usr/src/linux/.config

 

Also, you have a working 2.6 so while running it uncompress

/proc/config<something-don't remember>.gz

save it, and use it for your .config

 

if it still doesn't work then something is wrong with the new 2.6, eh?

 

[EDIT] don't know why I didn't think of this last night :juggle:

Edited by bvc
Link to comment
Share on other sites

this normally doesn't work with vanilla's but did you try to

cp /usr/src/linux/arch/i386/defconfig /usr/src/linux/.config

 

Also, you have a working 2.6 so while running it uncompress

/proc/config<something-don't remember>.gz

save it, and use it for your .config

 

if it still doesn't work then something is wrong with the new 2.6, eh?

 

[EDIT] don't know why I didn't think of this last night :juggle:

Yeah, but that's kinda pointless, i may as well wait for the Debian package to come out if im going to make a default config kernel. THe whole idea of this one was to be a lighter version without all the drivers and other things i dont need and things for hardware I dont have and all that. I'm going to go onto the kernel mailing list and see what they can do.

 

The one I made is 875kb and the modules are less than 5mb. The debian one is 2mb and the modules are 36mb.

Edited by iphitus
Link to comment
Share on other sites

:unsure:

read again :furious3:

Also, you have a working 2.6 so while running it uncompress

/proc/config<something-don't remember>.gz

save it, and use it for your .config

 

it's

/proc/config.gz

 

That and the one in /boot is your .config. So you'll be using your stripped .config :rolleyes:

this is assuming that as one is supposed to after compiling you do

cp .config /boot/config<version>

Edited by bvc
Link to comment
Share on other sites

im compiling again, took out initrd, make more stuff into the kernel. Hopefully it will work.

 

I read on the kernel mailing list that the above problem occurs ..... randomly! There was a looooong thread of messages and in the end they didnt find any solutions except randomly changing the configuration. Damn I hope this works!!

 

iphitus

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...