Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Duncan <1i5t5.duncan@...>
Subject: Re: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(2,0)
Date: Sun, 11 Dec 2005 11:57:04 -0700
Felipe Ribeiro posted <439C7034.5040500@...>, excerpted below,  on
Sun, 11 Dec 2005 15:30:12 -0300:

> Hi all,
> 
> I've just installed Gentoo 2005.1-r1 on my amd64 box and i've got this 
> problem while rebooting:
> 
> Root-NFS: No NFS server available giving up.
> VFS: Unable to mount root fs via NFS, trying floppy.
> VFS: Insert root floppy and press ENTER
> end-request: I/O error, dev fd0, sector 0
> VFS: Cannot open root device hda2 or unknown-block(2,0)
> Please append a correct "root=" boot option.
> Kerenel panic - not syncing: VFS: Unable to mount root fs on 
> unknown-block(2,0)
> 
> 
> What should i do? is it a grub configuration problem? or kernel compilation?
> 
> Here is my grub.conf
> 
> #
> # Sample boot menu configuration file
> #
> 
> # Boot automatically after 30 secs.
> timeout 10
> 
> # By default, boot the first entry.
> default 1 #SECOND
> 
> # Fallback to the second entry.
> fallback 1
> 
> #splashimage=(hd0,1)/grub/splash.xpm.gz
> #GENTOO
> title  Gentoo Linux
> root (hd0,1)
> kernel /boot/bzImage-2.6.14 root=/dev/hda2
> #initrd /initrd.img
> 
> # For booting Windows NT or Windows95
> title Windows XP
> rootnoverify (hd0,0)
> makeactive
> chainloader  +1
> # For loading DOS if Windows NT is installed
> # chainload /bootsect.dos
> 
> root (hd0,1)
> setup (hd0)

Do you have a separate /boot partition, or is it on your root partition?
As you have it setup, it tries to use (hd0,1), which means /dev/hda2 (grub
is zero-based, remember), then you tell the kernel to use the same
partition as it's root partition.  If you have your /boot on root, that's
what you want, and it IS apparently finding the  kernel, or you wouldn't
get that error -- the kernel loads but can't find it's root.  If you have
a separate partition for root and /boot, then that's wrong.  You
apparently have grub's root configured correctly (the root (hd0,1) line),
or it wouldn't find the kernel -- it's the kernel's root= parameter that
needs corrected.

The other possibility, if  /boot is on your root file system so it's not
the above, is that you didn't properly configure the necessary stuff to
load root, into the kernel, or your initrd/initramfs isn't working
properly.  I don't know much about initrd/initramfs, but under ordinary
circumstances, you won't need that, as long as you've properly configured
the file system type and the chipset drivers for your hard drive into the
kernel itself, NOT as modules.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
gentoo-amd64@g.o mailing list


References:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(2,0)
-- Felipe Ribeiro
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(2,0)
Next by thread:
Re: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(2,0)
Previous by date:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(2,0)
Next by date:
Re: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(2,0)


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.