linux内核升级出现异常:vfs cannot open root device sda2 or unknown-block 0 0
linux内核升级出现异常:vfs cannot open root device sda2 or unknown-block 0 0
日期:2014-05-16 浏览次数:21085 次
linux内核升级出现错误:vfs cannot open root device sda2 or unknown-block 0 0 环境:window xp下虚拟机中redhatlinux 9.0,原始内核2.4.20-8,想升级到2.6.18 内核编译成功,就是在启动的时候总是出现问题: VFS:mounted root (ext2 filesystem) red hat nash version 3.4.42 starting Mounting /proc filesystem Creating block devices Input:AT translated set 2 keyboard as /class/input/input0 vfs cannot open root device sda2 or unknown-block 0 0 Please append a correct "root=" boot option Kernel panic -not syncing: VFS:Unable to mount root fs on unknown-block(0,0)
我的grub.conf 中的内容是:
# all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2 # initrd /initrd-version.img #boot=/dev/sda default=2 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title Red Hat Linux (2.6.18) root (hd0,0) kernel /vmlinuz-2.6.18 ro root=LABEL=/ initrd /initrd-2.6.18.img
我把 kernel /vmlinuz-2.6.18 ro root=LABEL=/中的root=LABEL=/改成root=/dev/sda2就出现了上述错误, 如果不改就会有错误: VFS: Cannot open root device "LABEL" or unknown-block(0,0)