LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: dlh_yf

LFS全部工作已经做完了,可是启动不了-终于搞定了,可以启动了!

[复制链接]
 楼主| 发表于 2006-8-28 09:58:02 | 显示全部楼层
问题依然困惑着我,今天自己试着解决一下。
回复 支持 反对

使用道具 举报

发表于 2006-8-28 10:33:40 | 显示全部楼层
Looks like your kernel lacks some hardware support. SATA or SCSI controller is not recognized, I guess.

Hm. Make sure you have your SATA contoller support and root filesystem (XFS) support compiled in (not as module) - then it works. Unless you want to fiddle with initrd, never used it myself.

It looks like the problem was due to the initrd being incomplete. In
particular, I think it was missing the ata_piix module. To fix this, I
ran the following:

  mkinitrd --preload=scsi_mod --preload=sd_mod --with=ata_piix \
             /boot/initrd.img-2.6.5-sata 2.6.5-1.358

and then I modified my grub parameters in two ways:

  - I changed the initrd line to refer to the output of the above
    command

  - I changed the root= option to use /dev/sda3
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-28 10:43:40 | 显示全部楼层
Thanks for your help.
I will try to compile kernel again today, this maybe solve the problem.
If not, I try your's second method.

Thanks again.
回复 支持 反对

使用道具 举报

发表于 2006-8-28 17:03:43 | 显示全部楼层
你的宿主机是则么分区的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-28 17:31:21 | 显示全部楼层
哈哈,经过一个下午的努力,终于搞定了。虽然有点困,还是瞒高兴的。

重新编译了内核,还发现了下面两处手误:
1. /etc/inputrc  set horizontal-scroll-mode Off  错写为:set horizontal -scroll
- mode Off
2. cp -v System.map /boot/System.map-2.6.11.12 错写为: cp -v System.map /boot/System-2.6.11.12

编译完内核之后,配置过程中误删了/boot/grub,重新安装grub,然后重新做了相应的配置。

多谢各位大侠的指导,小弟感激不尽!:thank
回复 支持 反对

使用道具 举报

发表于 2006-8-31 09:55:56 | 显示全部楼层
我的错误显示和楼主的一样:
df -h 显示
df: cannot read table of mounted file systems

学着楼主的试试,看能不能搞定!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-31 10:28:11 | 显示全部楼层
Post by alphagm
我的错误显示和楼主的一样:
df -h 显示
df: cannot read table of mounted file systems

学着楼主的试试,看能不能搞定!



别忘记mount设备和文件:
 5.Chroot到目标系统下
  chroot "$LFS" /usr/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /bin/bash --login
  6.创建/dev下的设备文件
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm

编译内核一定要加上对xfs的支持
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表