kernel panic VFS: Unable to mount root fs 总结

转载 2007年09月12日 09:09:00
内核找不到根文件系统,不是/etc/fstab配置的问题,根本原因在于你的内核配置参数的,问题,有些选项必须编译进内核(使用*),不能用模块(使用M)

Fix your kernel boot parameters.


Make sure your kernel has a "root=" parameter passed to it in your bootloader and that the parameter points to your root file system. For example, my root file system is on /dev/hde2. My grub.conf contains:
Code:
kernel (hd0,0)/boot/bzImage-2.6.1-rc2-gentoo-1 root=/dev/hde2

If you use LILO, then your lilo.conf should contain something analogous to:
Code:
image=/boot/bzImage-2.6.1-rc2-gentoo-1
root=/dev/hde2

Remember to rerun lilo after editing lilo.conf!

If you don't know which partition is your root, then check /etc/fstab and look for the entry for / :
Code:
/dev/hde2 / reiserfs noatime 1 2


Ensure the proper options and drivers are built into the kernel.

Don't forget to mount /boot when installing a new kernel!

devfs support
You need devfs support built in and mounted at boot time. In the 2.6 kernel, these are listed as:
Code:
File systems
-> Pseudo file systems
-> /dev file system support (OBSOLETE) DEVFS_FS
-> Automatically mount at boot DEVFS_MOUNT

In the 2.4 kernel, they are:
Code:
File systems
-> /dev file system support (EXPERIMENTAL)
Automatically mount at boot


File system support
You need support for your root file system built in (not built as a module). My root file system is Reiser. So I have reiserfs built into my kernel. If you are unsure what your root file system is, check /etc/fstab.


Drive controller support
You need supoort for your drive controller built into the kernel. If you are unsure what to build, check with `lspci', part of the sys-apps/pciutils package. If all else fails, build them all and use the process of elimination.

IDE
Make sure you have support for your IDE chipset compiled in. In the 2.6 kernel, these can be found in
Code:
Device Drivers
-> ATA/ATAPI/MFM/RLL support
-> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
-> PCI IDE chipset support
-> Generic PCI bus-master DMA support

For the 2.4 kernel, they are in
Code:
ATA/IDE/MFM/RLL support
-> IDE, ATA and ATAPI Block devices
-> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
-> Generic PCI IDE chipset support

You also need "Include IDE/ATA-2 DISK support" built in. This can be found in the "Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support" branch of the kernel configuration menu.

SCSI
Make sure you have support for your SCSI device compiled in. In the 2.6 kernel,
Code:
Device drivers
-> SCSI device support
-> SCSI low-level drivers

In the 2.4 kernel,
Code:
SCSI support
-> SCSI low-level drivers

You also need "SCSI disk support" built in. This can be found in the "SCSI [device] support" branch of the kernel configuration menu.


Partition selection support
If you partitioned your drive under a different operating system, you may need to enable partition selection support in the kernel. In both the 2.4 and 2.6 kernels,
Code:
File systems
-> Partition types
-> Advanced partition selection
 

Win7 下装 Ubuntu 双系统遇到的一些问题及解决

最近闲来无事,就想在 Win7 下装个 Ubuntu 双系统,结果搞了两天才搞好(中间重装了一次系统),身为  程序猿出身,实在是汗颜吖~   Win7 下装Ubuntu的方法,总结网上无非有以...
  • Admin_
  • Admin_
  • 2013年05月18日 22:37
  • 16034

挂载文件系统出现"kernel panic..." 史上最全解决方案

问:挂载自己制作的文件系统卡在这里:NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted ...
  • thisway_diy
  • thisway_diy
  • 2017年08月01日 16:39
  • 2743

【Linux】【文件系统】squashfs文件系统挂载失败问题

最近负责将A公司一个比较稳定的代码分支移植到新平台上,新平台中包含了M公司和B公司的代码,这样的一个代码架构方便以后不同公司芯片方案的添加和开发。 在移植的过程中,编译成功后DUT上电,但是出现解压文...
  • vickytong1018
  • vickytong1018
  • 2016年03月18日 10:49
  • 1929

linux加载rootfs 根文件系统 kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

环境:linux内核加载自己的制作的文件系统。 错误信息有以下几种: 错误信息1: Root-NFS: Server returned error -5 while mounting /mini...
  • suiyuan19840208
  • suiyuan19840208
  • 2012年02月06日 19:26
  • 31354

zynq平台移植linaro遇到“Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)”的问题

参考网上某博文上的方法(http://blog.csdn.net/yake827/article/details/52036703)在zynq平台移植了单用户模式的linaro系统(无桌面输出),但系...
  • hhhlizhao
  • hhhlizhao
  • 2017年04月08日 20:37
  • 1055

移植linux内核到s3c6410(根文件系统加载失败问题解决:Kernel panic - not syncing: VFS: Unable to mount root fs)

异常打印:  List of all partitions: No filesystem could mount root, tried:  ext2 Kernel panic - not synci...
  • roadtoforest
  • roadtoforest
  • 2011年08月05日 20:27
  • 14260

解决 VFS:Unable to mount root fs on Unknown-block(0,0)

解决LFS kernel panic -not syncing :VFS:Unable to mount root fs on Unknown-block(0,0) 2011年04月16日 星期六 ...
  • djinglan
  • djinglan
  • 2012年02月26日 14:13
  • 39130

对Kernel panic-not syncing:No init found...init=option to kernel错误总结!

在移植Linux中很容易出现这样那样的问题,我也遇到过,现在就共享下人家的一些经验和自己的一些新的吧: 一:mount_devfs_fs(): unable to mount devfs, err:...
  • wavemcu
  • wavemcu
  • 2011年11月08日 21:13
  • 3140

Kernel panic - not syncing: Attempted to kill init 解决办法

  • 2015年11月18日 11:14
  • 99KB
  • 下载

Kernel panic(Attempted to kill init!).zip

  • 2015年01月27日 18:47
  • 461KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:kernel panic VFS: Unable to mount root fs 总结
举报原因:
原因补充:

(最多只允许输入30个字)