|

楼主 |
发表于 2006-5-23 16:50:39
|
显示全部楼层
感谢大家
我已经搞定了
主要在于两个方面:
一、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下编译内核必选选项”
二、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=/则会出错 |
|