error: Unable to mount root fs on unknown-block(0,0)

Submitted by Anonymous
on February 12, 2004 - 9:09pm

I am trying a second time to update my slackware 9.1 kernel from 2.4.22 to 2.6.2:

At bootup using the new bzImage262 file I receive the error message:
"VFS: Cannot open root device "loop7" on unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)"

Anybody recognise this type of error?
Thanks for you help.

Unable to mount root fs on /dev/hda2

Anonymous
on
February 16, 2004 - 7:18am

i'm getting a similar thing with 2.6.2 it was telling me no UFS filesystem was found?!? and i just tried again with 2.6.3. and now it says UDF FS no partition found. which is wack because it's an ext3 filesystem. it works fine under 2.4.x but 2.6 can't seem to figure anything out.

i might go back to using 2.5.70, when that came out it worked fine with my filesystems.

this is with the following:

VIA KT266/A/333
Slackware current

I solve this problem on

Anonymous (not verified)
on
May 25, 2007 - 4:57pm

I solve this problem on Debian with 2.6.21 kernel. If you compile kernel with "Initial RAM filesystem and RAM disk (initramfs/initrd) support" (General│setup) option enable, you must run "make-kpkg kernel_image" comand with --initrd option. Or just disable this initial RAM support in menu.

Also unable to mount FS with Slackware 9.1 and 2.6.2 kernel

Anonymous
on
February 16, 2004 - 12:25pm

I upgraded to 2.6.0 and 2.6.1 without any problem by using "make oldconfig" with my existing .config file from 2.4.24 (using Slackware 9.1). But then using "make oldconfig" with 2.6.2 resulted in the same inability to mount the filesystem that you describe. I then tried using a the default .config file with 2.6.2 but with the same result. I also find I cannot use make xconfig or make gconfig with 2.6.2, even though the necessary libraries are there.

I upgraded my computer at work to 2.6.2 using the old .config files without any problem. That computer is a Dell Pentium (2.2 gHz, I think) also using Slackware 9.1. The home computer (the problematic one) is a 850 MHz Duron in a Abit KT133A motherboard.

Can anyone shed any light on this? Any help would be greatly appreciated.

mounting

Anonymous
on
February 25, 2004 - 4:33am

it seems like you need to include devfs in the kernel. seems strange if devfs is now 'old'. this got rid of the unable to mount on (18,0) or whatever number, and instead gives me now the unable to mount on hdc6 error.

unable to mount FS with Slackware 9.1 and 2.6.2 kernel

Anonymous
on
March 11, 2004 - 7:57am

Check your .config and look for CONFIG_BLK_DEV_IDE and CONFIG_BLK_DEV_IDEDISK entries.

kernel panic

Anonymous
on
October 27, 2004 - 4:29am

I get the same message! In my .config file :
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

compiled the Kernel 2.6.8 from debian source sarge

still unable to mount root fs on unknow block (0,0)

satya (not verified)
on
November 6, 2006 - 10:22am

i had enabled the entries
CONFIG_BLK_DEV_IDE=y and CONFIG_BLK_DEV_IDEDISK=y, but still iam getting the error message at the boot time : unable to mount root fs on unknown block(0,0)....

can any one plz help me...

regards
satya

not all fs options

on
March 4, 2004 - 12:20am

it seems like you dont add all needed modules in your kernel's config

fyi

Anonymous
on
March 7, 2004 - 4:09pm

I used the Debian 3.0-CD successfully on the same server that now refuses to boot after a new installation:
"Kernel panic: VFS: Unable to mount root fs on ..."

It's not possible to remove ext2 from the kernel with the installation program, and since it can install the whole system onto the disk, it has no problems using ext2.

I dunno.. maybe it's the partition sizing. That's the only thing I change manually.

vfs: unable to mount blah blah

Anonymous
on
April 14, 2004 - 10:36pm

I had this error after compiling a 2.6.5 kernel (going from 2.4.22)
I am using grub and the fix was luckily easy for me. I had to change my grub config from this:
----------------------
title Fedora Core (2.6.5)
root (hd1, 0)
kernel /2.6.5/bzImage ro root=LABEL=/ hdb=ide-scsi
---------------------------------------------------------
to this:
-----------------------
"""""""""""""""""""""""
root (hd1,0)
kernel /2.6.5/bzImage

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

Hope this helps someone like me, who didn't know what to do :)

it worked for me. Thanks.

Anonymous
on
September 16, 2004 - 11:45am

it worked for me. Thanks.

vfs: unable to mount blah blah

Anonymous
on
October 1, 2004 - 12:20pm

It worked for me, too. Just update the GRUB config file like above.

it's work for me too

Anonymous
on
October 2, 2004 - 1:57am

thanks
but who can tell me why?

error:unable to mount root fs on unknown block(8,3)

Anonymous (not verified)
on
November 30, 2005 - 7:04am

i am using fedora core2 and i want to update it to fedora core4.
so i tried with new installation that time io getting this error.
error:unable to mount root fs on unknown block(8,3)
couldn't found image on RAM '0'
append correct option in "root="
what i have to do if anyn one know plz reply

Yay! But WHY?? WHHHHY?

Anonymous
on
October 9, 2004 - 7:50pm

Strange... This worked very well, thank you so much, but I wonder... is having the kernel not set to ro (read only) a bad thing?

I liked this forum so much...

on
October 9, 2004 - 7:54pm

I decided to go non-anonymous! It takes a lot to push my laziness out of the way and fill in some fields!

I found the solution!

on
October 14, 2004 - 2:48pm

I decided to get my name on the board too. I had the original FC2 .config file. Comparing them shows that the Ramdisk size is too small.
Default it's 4096 but in FC2 it's 16384. So the Ramdisk section should look like this:

CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_BLK_DEV_INITRD=y

I found out because I got a ramdisk error just above the VFS kernel panic.

Regards, Enok

ramdisk

Anonymous (not verified)
on
April 18, 2006 - 3:01am

I worked perfekt for me

thanks

respect++; this same error h

Anonymous (not verified)
on
October 8, 2006 - 5:42am

respect++;
this same error has pissed me off for the past week.
the fix was effective in 30 seconds.

I could answer you

fivenoom_linux (not verified)
on
December 17, 2007 - 12:17am

I had this problem, but i used the software called SUPERGRUB, find it in google, i guess that this fail is because certain software that we installed they make changes in the grub list, e.g, i used another type of boot in ubuntu grub, i set an image and colors in the grub list, and i think that it made that error.
Please, give us a north in this case..... but SUPER GRUG could be a solution for u too =)
cheers.... excuse my english.

pls help me

Anonymous
on
December 7, 2004 - 12:29pm

i am new to Linux and really don't know doing stuffs with Linux. I have the same trouble u just solved. pls help me, how do i change the config file?

i'll b grateful, thx in advance.

SKJoy2001@Yahoo.Com

One year later, your message

Alana (not verified)
on
June 30, 2005 - 6:43am

One year later, your message save my life :)
Thanks, thanks, thanks again... I was trying to make this box boot since 2 weeks... Just removing the "ro root=..." correct the problem.

buy alphabet blocks

Max (not verified)
on
November 9, 2006 - 5:30pm

Get info for you! buy alphabet blocks

higley eye care

Ann (not verified)
on
November 10, 2006 - 4:59am

These information is very important - higley eye care

Re: "Kernel panic: VFS: Unable to mount root fs on ..."

tony jean (not verified)
on
August 1, 2005 - 8:07am

I meet the same error. I use slackware 10.0. After compile 2.6.13 and reboot. the error is show:
"Kernel panic: VFS: Unable to mount root fs on ..."

lucky, grub can solve this problem.
I use lilo . Is anyone know how to solve when using lilo.
thank you so much

it didn't work!!!

on
July 21, 2006 - 10:16pm

but the error message changed./....

now, it is

VFS: cannot open root device "" or unknown-block(253,0)
Please append a correct "root=" boot option
...............
...........

weired! from where comes the (253,0)?? it was unknown-block(0,0) before i made the change...

Ontrack DDO

Anonymous (not verified)
on
December 23, 2006 - 9:39pm

I guess i'm the only one with this partcular case:
I have a 80 GB disk in a Pentium 2 and therefore i have the Ontrack DDO bios-extension on this disk. This is not autodetected anymore in 2.6.
Since i also have ReiserFS on this root partition you might imagine how long it took to figure this out.
Adding the boot argument hda=remap63 worked for me.
Well, for now at least with the default Deian sarge kernel.

Forgot: ReiserFS complaining

Anonymous (not verified)
on
December 23, 2006 - 9:49pm

Forgot:
ReiserFS complaining: ReiserFS_fill_super: No reiserfs found on hda1
Next:
Kernel panic: trying to kill init.

On my own compiled kernel it says:
VFS:Unable to mount root fs on unknown-block[3,1]
Haven't solved that one, but now i know where to find it.

And with default Debian i meant de 2.6.8 kernel wich is installed if you choose it.
Default of Debian Sarge is 2.4

Fix for this

Tim (not verified)
on
August 4, 2005 - 2:09am

Just came across this problem, and the fix.
Since I'm running on Ubuntu I added --initrd to my make-kpkg and that's all it took.
Basically I think it means that your set up needs an initrd - use mkinitrd.
Hope this helps,
Tim

I was seeing the same kernel

brian (not verified)
on
August 10, 2005 - 2:12am

I was seeing the same kernel panic and I wasn't sure how to use mkinitrd to fix this problem. I'm installing a new 2.6.12.3 kernel on ubuntu so I used

mkinitrd -o /boot/initrd.img.2.6.12.3 2.6.12.3

It's important to put the 2.6.12.3 at the end of the line, or the image created is just for the currently running kernel.

Then I changed the initrd line in my menu.lst to point to the new initrd.img and my system booted ok.

mkinitrd wereked for me...

stevenrh (not verified)
on
September 7, 2005 - 9:34am

dude this totallly worked. it didn't work on my dual boot laptop, but on a POS p3 in the office, this is the solution to upgrade from 2.4 to 2.6!!!

thnk you
(i'm startin g to enjoy a transition from freeBSD to linux {:gulp:})

kernel panic:

Anonymous (not verified)
on
February 10, 2009 - 10:44am

Please, in reference to your thread posted. could you explain how you modifed your menu.lst to include the mkinitrd -o ... and then pointing to your new initrd.img. thanks

"root=LABEL=XYZ" explanation

on
August 13, 2006 - 9:45pm

Removal of this is what makes things work. You may also need to point it to the real root device ("root=/dev/hda4" for example).

This "thing" is, AFAIK, one of RedHat's worst ideas. Maybe it was thought of a way of simplifying fstab editing for newbies, but it sure messes up things. I really have no idea how they have done this, but, as long as using the old initrd doesn't fix the problem when updating kernel, I suppose the patched the kernel. Even if it worked without kernel patching, it would have meant that using an initrd was absolutely necessary. Maybe someone can provide more info on this.

The "ro" thing doesn't change the situation. It merely means that the kernel will mount the root as read-only, leaving read/write remounting to the distro's specific boot scripts. This is a good idea since a very very early fs-specific bug/crash/mumbo-jumbo won't damage the filesystem. The scripts can fsck the filesystem prior to remounting R/W.

RedHat makes work of newbies

on
August 14, 2006 - 12:54pm

RedHat makes work of newbies more simple. Not for advanced users :)

Posible solution

Jasky (not verified)
on
January 27, 2007 - 1:18pm

if the grub is well and you have selected with * your file sistem suport (ext2, ext3, reiserfs..) probably you may to select whith * the:

ATA/ATAPI/MFM/RLL support --->
<*>generic/default IDE chipset support

its in my case that i have IDE and not SCSI or SATA

Moving from Fedora Core 3 to Fedora Core 2 - Kernel Panic: VFS:

Anonymous (not verified)
on
May 31, 2007 - 2:51pm

Hello! I reviewed most of the comments on trying to resolve the kernel panic issue. However, in my case it didn't work. I am wondering if I need to rebuild the MBR to move from Fedora Core 3 to Fedora Core 2.

SUPER GRUB software could be a solution!!!

fivenoom_linux (not verified)
on
December 17, 2007 - 12:19am

I had this problem, but i used the software called SUPERGRUB, find it in google, i guess that this error is because certain software that we installed they make changes in the grub list, e.g, i used another type of boot in ubuntu grub, i set an image and colors in the grub list, and i think that it made that error.
Please, give a north in this case..... but SUPER GRUG could be a solution for u =)
cheers.... excuse my english.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.