- 论坛徽章:
- 0
|
编译内核,启动,产生如下错误:
VFS:Cannot open root device "sda1" or 08:01
.......
Kernel panic: VFS: Unable to mount root fs on 08:01
解决(by jakee304):
主要在于两个方面:
[color="Red"]一、vmware的特殊性
vmware虚拟出来的硬盘是scsi的。在vmware下重新编译内核,有些选项是一定要选上的,具体如下:
Device Drivers --->SCSI device support ---> SCSI disk support
Device Drivers --->SCSI device support --->SCSI low-level drivers ---> BusLogic SCSI support
Device Drivers ---> Networking support --->Ethernet (10 or 100Mbit) ---> AMD PCnet32 PCI support
最好把ext3文件系统支持也编译进内核
Ext3 journalling file system support
Ext3 extended attributes
Ext3 POSIX Access Control Lists
Ext3 Security Labels
JBB (ext3) debugging support
具体大家可以用google搜一下“vmware下编译内核必选选项”
[color="Red"]二、grub的配置文件
应该把grub中的root改成具体的设备文件,不要使用LABEL标签。而且grub中的根和linux下root是不一样的。
我的现在的grub配置文件内容如下:
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.32)
root (hd0,0)
kernel /vmlinuz ro root=/dev/sda3
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
上面root=/dev/sda3如果改成root=LABEL=/则会出错
[color="Maroon"]但是我有一个疑问:为什么是root=/dev/sda3呢?我的/boot目录在/dev/sda1啊?
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19729/showart_118029.html |
|