LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(2,0) (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-3-kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-2-0-a-672017/)

wyylling 09-24-2008 04:44 AM

LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(2,0)
 
VFS:Unable to mount root fs via NFS,trying floppy
VFS:Cannot open root device "sda10" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partions:
0340 78150744 hdb driver:ide-disk


Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(2,0)

The harddisk layout is :

/dev/sda1 * .... HPFS/NTFS
/dev/sda2 .... W95 Ext'd(LBA)
/dev/sda5 .... HPFS/NTFS
/dev/sda6 .... HPFS/NTFS
/dev/sda7 * .... Linux
/dev/sda8 .... Linux swap/Solaris
/dev/sda9 .... Linux
/dev/sda10 .... Linux
My LFS is installed in the /dev/sda10


The grub/menu.lst is:

title Gentoo Linux 2.6
root (hd0,6)
kernel /boot/kernel-genkernel root=/dev/ram0 real_root=/dev/sda9
initrd /boot/initramfs-genkernel

title LFS 6.3
root (hd0,9)
kernel /boot/lfskernel-2.6.22.5 root=/dev/sda10

in the LFS' /boot:System.map-2.6.22.5 lfskernel-2.6.22.5

wyylling 09-24-2008 07:02 AM

nobody can help me.....

jestinjoy 09-24-2008 12:14 PM

same problem for me.............what to do?

Pouer 09-24-2008 03:12 PM

Hi,

The best documentation on this has been written by kernel developper Greg Kroah-Hartman. His book "the linux kernel in a nutshell" deals with all you have to know to build a kernel by yourself. You can finf this book (free documentation) here : http://www.kroah.com/lkn/

The solution of your problem is detailled in "Chapter 7: Customizing a Kernel" but the whole book is worth reading.

Pouer

FLLinux 09-24-2008 03:15 PM

Also looks like you might not have included the File system needed by the kernel to read the disk. I ran into this. Sometimes the config file leave out ext2 FS access. Make sure you have all the filesystems installed you need to read the hard drive.


All times are GMT -5. The time now is 03:58 AM.