歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

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: 重啟確認問題解決

Copyright © Linux教程網 All Rights Reserved