c-aries:制作LFS过程中遇到的最大困难

来源:Linuxeden 作者:c-aries
  
以下是笔者在制作LFS过程中,遇到的最大困难的解决示例

使用LFS版本为6.3,内核版本为2.6.22.5

--- 开机错误提示
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press ENTER

VFS: Cannot open root device "sda9" or unknow-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

c-aries:制作LFS过程中遇到的最大困难



--- 在宿主机查看硬件配置
$ lspci | grep -i "sata"
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 01)
$ lspci | grep -i "ide"
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)

--- 内核选项配置
$ make menuconfig

Device Drivers
|---> SCSI device support
      |---> <*> SCSI device support
      |---> <*> SCSI disk support
|---> <*> Serial ATA (prod) and Parallel ATA (experimental) drivers
      |---> <*> AHCI SATA support
      |---> <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support (NEW)
      |---> <*> Intel PATA old PIIX support (NEW)
File systems
|---> <*> Ext3 journalling file system support
|---> [*]   Ext3 extended attributes
|---> [*]     Ext3 POSIX Access Control Lists

--- 验证配置选项
$ grep -i sata .config | grep "^[^#]"
CONFIG_SATA_AHCI=y
$ grep -i scsi .config | grep "^[^#]"
CONFIG_SCSI=y
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_WAIT_SCAN=m
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_AIC7XXX=y
CONFIG_SCSI_AIC79XX=y
$ grep -i ahci .config | grep "^[^#]"
CONFIG_SATA_AHCI=y
$

Q.E.D. 重新编译内核,重启,引导成功

时间:2010-02-20 21:09 来源:Linuxeden 作者:c-aries 原文链接

好文,顶一下
(9)
100%
文章真差,踩一下
(0)
0%
------分隔线----------------------------


把开源带在你的身边-精美linux小纪念品
无觅相关文章插件,快速提升流量