Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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.
  1. #1
    Just 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)

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    64
    i tried to select every option in the file system section.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,691
    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!

  6. #5
    Just 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/sda3
    Last edited by muhammedda; 11-13-2010 at 10:05 PM.

  7. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,691
    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!

  8. #7
    Just Joined!
    Join Date
    Nov 2008
    Posts
    64
    according to gentoo handbook no need.


    Gentoo Linux Documentation -- Configuring the Bootloader

  9. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,691
    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!

  10. #9
    Just 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. #10
    Just 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.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •