Results 1 to 10 of 12
Hi Everybody I am trying to compile my own kernel but i am getting same error at everytime.
VFS:Unable to mount root fs via NFS,trying floppy
VFS:Cannot open root device ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-13-2010 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
[SOLVED] Kernel Compiling Error Help(Kernel Panic)
Hi Everybody I am trying to compile my own kernel but i am getting same error at everytime.
VFS:Unable to mount root fs via NFS,trying floppy
VFS:Cannot open root device "sda3" or unknown-block (2,0)
Please append a correct "root"=boot option ;here are the avaiable
Kernel panic - not syncing :VFS:unable to mount root fs on known-block(2,0)
- 11-13-2010 #2
you probably haven't compiled in the support for the filesystem that is on the disk
what are you compiling kernel for? it is probably easier to start with the config that your distro shipped with and take away from that than start from scratch yourself, especially if you are new to it
- 11-13-2010 #3Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
i tried to select every option in the file system section.
- 11-13-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
What distribution+version did you start with (when it booted), and what kernel are you trying to build? How did you get the sources? What compiler (gcc) version are you running? Is this for an x86 desktop, or an embedded system with some other chip in it (arm, mips, etc)? How are you installing the kernel you have built? Is the chip 64-bit capable, and if so, are you building a 32-bit or 64-bit kernel?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-13-2010 #5Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
-My distribution is Gentoo
-Last Version started with minimal
-the kernel i am trying to compile is 2.6.34-r12
-i got the source by writing "emerge gentoo-sources"
-gcc version is 4.4.4-r2
-it s for x86 desktop
-make && make modules_install after that command i copy the bzimage under the /boot then i change it name as i like.
-yes my cpu is 64 bit capable
-i am building in 32 bit
-i have been using the genkernel so far.
addition my grub conf file is as the following
default 0
timeout 30
title gentoo 2.6.34-r12
root(hd0,0)
kernel /boot/gentoo-2.6.34-r12 root=/dev/sda3Last edited by muhammedda; 11-13-2010 at 09:05 PM.
- 11-13-2010 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
Where is the initrd file entry in grub? It should be the line after "kernel ...".
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-13-2010 #7Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
according to gentoo handbook no need.
Gentoo Linux Documentation -- Configuring the Bootloader
- 11-13-2010 #8Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
I see - you did say you are using genkernel. In any case, the error, on second inspection, is indicating that the "root" entry is incorrect. Please post the contents of your menu.lst/grub.conf file here.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-13-2010 #9Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
default 0
timeout 30
title Gentoo Linux 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.34-gentoo-r12 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r12
title Customkernel
root(hd0,0)
kernel /boot/newkernel root=/dev/sda3
this is also my grub.conf file previously i didnt write genkernel part.
- 11-14-2010 #10Just Joined!
- Join Date
- Nov 2008
- Posts
- 64
I have solved that problem by adding initrd file into the grub.conf file

but now i am getting different problem which is
Loading Modules
Activating mdev
Determining root device...
Block device /dev/sda3 is not a valid root device...
Could not find the root block device in.



