VMWare安装Gentoo错误“cannot open root device sda3...”


本文仅仅记录解决问题的过程...供大家参考,问题的原因是由于缺少SCSI驱动引起的.

解决方法如下:

Step 1: 修改SCSI驱动类型

VM->Edit Settings->SCSI controller 0->change type,设为BusLogic

此项设置据说是因为2.6+的内核不再支持LSI Logic

Step 2: 用LiveCD启动,并进入编译环境

参考http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml

  1. livecd / # mount /dev/sda3 /mnt/gentoo  
  2. livecd / # mount /dev/sda1 /mnt/gentoo/boot  
  3. livecd / # mount -t proc proc /mnt/gentoo/proc  
  4. livecd / # mount --rbind /dev /mnt/gentoo/dev  
  5. livecd / # chroot /mnt/gentoo /bin/bash  
  6. livecd / # env-update && source /etc/profile  

Step 3:设置内核参数

参考:http://www.gentoo-wiki.info/HOWTO_Install_Gentoo_on_VMware_ESX_server

Linux Kernel Configuration: VMware SCSI adapter

Device Drivers ---> SCSI device support ---> ** Turn off EVERYTHING under here besides what is shown below ** <*> SCSI disk support SCSI low-level drivers ---> <*> BusLogic SCSI support
 
  1. livecd linux # make menuconfig  
  2. livecd linux # time make -j2  
  3. livecd linux # make modules_install  
  4. livecd linux # cp arch/i386/boot/bzImage /boot/kernel  

Step 4: 重启确认问题解决

相关内容