"VFS: unable to mount root" after kernel rebuild

"VFS: unable to mount root" after kernel rebuild

Post by nels.. » Wed, 23 Mar 1994 07:30:07



Over the weekend, I decided to add the pc speaker sound driver to
my system.  After quite a bit of fiddling, I successfully
compiled the kernel and added the new image to the lilo map file.
However, when I try to boot this image, the computer says it is
"not able to mount root".  Is there something I may have
forgotten to do while I was compiling the kernel?  I did make
sure I set the right root device using rdev.

My machine is a 486-33 running SLS 1.03 (Linux 0.99.12) [I know,
I know, I need to upgrade, but my linux machine is not connected
to anything so upgrading is a big job.  As soon as I get a _lot_
of time, I'll install Slackware.]  My file system is the ext2fs
which was recommeded when I installed SLS.

Now, here's what I did:  I installed the appropriate patch to
0.99.12 from the pcsndrv 0.5 package, then ran 'make config',
'make depend', and 'make zImage'.  It may be significant which
things I set up during config, so I'll list that here:

---------------------------------------------------------------
#
# Automatically generated make config: don't edit
#
#
# General setup
#
# CONFIG_MATH_EMULATION is not set
CONFIG_BLK_DEV_HD = CONFIG_BLK_DEV_HD
CONFIG_BLK_DEV_XD = CONFIG_BLK_DEV_XD
# CONFIG_MITSUMI is not set
# CONFIG_BLK_DEV_SBPCD is not set
# CONFIG_INET is not set
# CONFIG_MAX_16M is not set
CONFIG_SYSVIPC = CONFIG_SYSVIPC
CONFIG_M486 = CONFIG_M486
#
# Program binary formats
#
CONFIG_BINFMT_UMP0 = CONFIG_BINFMT_UMP0
CONFIG_BINFMT_ELF = CONFIG_BINFMT_ELF
#
# SCSI support
#
# CONFIG_SCSI is not set
#
# Network device support
#
# CONFIG_ETHERCARDS is not set
#
# CONFIG_CDU31A is not set
# CONFIG_MCD is not set
#
# Filesystems
#
CONFIG_MINIX_FS = CONFIG_MINIX_FS
CONFIG_EXT_FS = CONFIG_EXT_FS
CONFIG_EXT2_FS = CONFIG_EXT2_FS
CONFIG_XIA_FS = CONFIG_XIA_FS
CONFIG_MSDOS_FS = CONFIG_MSDOS_FS
CONFIG_PROC_FS = CONFIG_PROC_FS
# CONFIG_NFS_FS is not set
# CONFIG_ISO9660_FS is not set
CONFIG_IFS_FS = CONFIG_IFS_FS
CONFIG_QUOTA = CONFIG_QUOTA
#
# character devices
#
CONFIG_KBD_META = CONFIG_KBD_META
# CONFIG_KBD_NUML is not set
# CONFIG_BUSMOUSE is not set
CONFIG_PSMOUSE = CONFIG_PSMOUSE
# CONFIG_MS_BUSMOUSE is not set
# CONFIG_ATIXL_BUSMOUSE is not set
CONFIG_SELECTION = CONFIG_SELECTION
# CONFIG_TAPE_QIC02 is not set
#
# Sound
#
# CONFIG_SOUND is not set
CONFIG_PCSP = CONFIG_PCSP
#
# Kernel hacking
#
# CONFIG_DEBUG_MALLOC is not set
# CONFIG_PROFILE is not set
---------------------------------------------------

I have to admit, I don't know what all those things are in the
file system section, so I may have made some dumb choices.  At
any rate, when the kernel created using this config is booted,
the usual things happen (it detects the printer, the floppy
drives, the math coprocessor, etc.) until it gets to where my old
kernel says "partition check: /dev/hda /dev/hda1 /dev/hda2".
Instead, it says "Kernel panic: VFS: unable to mount root."  Of
course, it can go no further, so I have to reboot.

My only idea is that the old kernel included a different set of
options which is incompatible with the set I chose.  I don't know
what those are because that's the kernal that came with the
distribution.  If there is anyone who can help me figure out what
to do, you may reply to


As requested in the FAQ, I will be happy to post a summary of
replies if that will be useful to people.

Thank you for your help.
Karl.

 
 
 

"VFS: unable to mount root" after kernel rebuild

Post by Dhaliwal Bikram Sin » Wed, 23 Mar 1994 16:45:24



>Over the weekend, I decided to add the pc speaker sound driver to
>my system.  After quite a bit of fiddling, I successfully

That's nice....

Quote:>compiled the kernel and added the new image to the lilo map file.
>However, when I try to boot this image, the computer says it is
>"not able to mount root".  Is there something I may have
>forgotten to do while I was compiling the kernel?  I did make
>sure I set the right root device using rdev.

I am 100% sure that you did not do this properly. Or that
the lilo config file is not set up properly.  

remember :

rdev zImage /dev/hda2

is probably all you need to do, and then
make sure do a ./install of lilo again.

>My machine is a 486-33 running SLS 1.03 (Linux 0.99.12) [I know,
>I know, I need to upgrade, but my linux machine is not connected
>to anything so upgrading is a big job.  As soon as I get a _lot_
>of time, I'll install Slackware.]  My file system is the ext2fs
>which was recommeded when I installed SLS.

>Now, here's what I did:  I installed the appropriate patch to
>0.99.12 from the pcsndrv 0.5 package, then ran 'make config',
>'make depend', and 'make zImage'.  It may be significant which
>things I set up during config, so I'll list that here:

>---------------------------------------------------------------
>#
># Automatically generated make config: don't edit
>#
>#
># General setup
>#
># CONFIG_MATH_EMULATION is not set
>CONFIG_BLK_DEV_HD = CONFIG_BLK_DEV_HD
>CONFIG_BLK_DEV_XD = CONFIG_BLK_DEV_XD
># CONFIG_MITSUMI is not set
># CONFIG_BLK_DEV_SBPCD is not set
># CONFIG_INET is not set
># CONFIG_MAX_16M is not set
>CONFIG_SYSVIPC = CONFIG_SYSVIPC
>CONFIG_M486 = CONFIG_M486
>#
># Program binary formats
>#
>CONFIG_BINFMT_UMP0 = CONFIG_BINFMT_UMP0
>CONFIG_BINFMT_ELF = CONFIG_BINFMT_ELF
>#
># SCSI support
>#
># CONFIG_SCSI is not set
>#
># Network device support
>#
># CONFIG_ETHERCARDS is not set
>#
># CONFIG_CDU31A is not set
># CONFIG_MCD is not set
>#
># Filesystems
>#
>CONFIG_MINIX_FS = CONFIG_MINIX_FS
>CONFIG_EXT_FS = CONFIG_EXT_FS
>CONFIG_EXT2_FS = CONFIG_EXT2_FS
>CONFIG_XIA_FS = CONFIG_XIA_FS
>CONFIG_MSDOS_FS = CONFIG_MSDOS_FS
>CONFIG_PROC_FS = CONFIG_PROC_FS
># CONFIG_NFS_FS is not set
># CONFIG_ISO9660_FS is not set
>CONFIG_IFS_FS = CONFIG_IFS_FS
>CONFIG_QUOTA = CONFIG_QUOTA
>#
># character devices
>#
>CONFIG_KBD_META = CONFIG_KBD_META
># CONFIG_KBD_NUML is not set
># CONFIG_BUSMOUSE is not set
>CONFIG_PSMOUSE = CONFIG_PSMOUSE
># CONFIG_MS_BUSMOUSE is not set
># CONFIG_ATIXL_BUSMOUSE is not set
>CONFIG_SELECTION = CONFIG_SELECTION
># CONFIG_TAPE_QIC02 is not set
>#
># Sound
>#
># CONFIG_SOUND is not set
>CONFIG_PCSP = CONFIG_PCSP
>#
># Kernel hacking
>#
># CONFIG_DEBUG_MALLOC is not set
># CONFIG_PROFILE is not set
>---------------------------------------------------

>I have to admit, I don't know what all those things are in the
>file system section, so I may have made some dumb choices.  At
>any rate, when the kernel created using this config is booted,
>the usual things happen (it detects the printer, the floppy
>drives, the math coprocessor, etc.) until it gets to where my old
>kernel says "partition check: /dev/hda /dev/hda1 /dev/hda2".
>Instead, it says "Kernel panic: VFS: unable to mount root."  Of
>course, it can go no further, so I have to reboot.

>My only idea is that the old kernel included a different set of
>options which is incompatible with the set I chose.  I don't know
>what those are because that's the kernal that came with the
>distribution.  If there is anyone who can help me figure out what
>to do, you may reply to


>As requested in the FAQ, I will be happy to post a summary of
>replies if that will be useful to people.

>Thank you for your help.
>Karl.

--

-bikram dhaliwal

 
 
 

"VFS: unable to mount root" after kernel rebuild

Post by Lars Hofhan » Sat, 26 Mar 1994 21:10:06


Hi Karl,

the problem may be that the kernels internal default root
isn't set up properly (although this should not happen, when
compiling the kernel on your system...)

You may try to set the root partition with the 'rdev' command.
rdev yourKernelImage /dev/yourRootPartition.

Good luck...

Lars

 
 
 

1. "2842 controller - Kernel panic VFS: unable to mount root fs on 1:02"

I have an adaptec 2842 VL Controller :
I have been trying to install Linux :
I got 1.1.59 from sunsite.unc.edu and then got the aic7xxx.tar.gz from
ucalgary.ca.
Compiled the kernel - the machine froze on me 3 or 4 times during
kernel make.
the zImage file created I wrote tp a empty formatted floppy
and booted: The kernel is 1.1.68 and it gave the above message.

Any suggestions.

Also when I boot off an bootdisk+rootdisk the root filesystem is mounted
on /dev/fd0 with minix.
How can I have my Linux partition on hard drive be mounted on e.g /dev/sd2
be mounted on /

Otherwise I have to copy files from /mnt/usr/include/* to /usr/include.

Thanks for your help,

-Vidur
.

2. Compiling Ksendfax

3. What's mean "Kernel panic: VFS:Unable to mount root fs on 08:02"

4. need good linux athalon (tbird) motherboard..

5. kernel rebuild results in "unable to mount root fs"

6. ghostview-1.5

7. Help: Kernel Panic:VFS: Unable to mount root, after rebuilding kernel

8. wildcard

9. If you see "VFS : Unable to mount root fs...", check this out.

10. "KP:VFS:Unable to mount root fs on nn:n0"

11. System hangs at "VFS: mounted root ..."

12. GETSERVBYNAME()????????????????????"""""""""""""

13. VFS: Cannot open root device """ or 08:41