lfs 6.3 的 mount 和dmesg command not found的问题

          最近在搞LFS,按照  http://www.linuxsir.org/bbs/thread322894.html 的说明来做的。一切顺利!

         但是开机,重启的时候却遇到这样子的问题:

 

    mounting kernel-based file systems:/proc/etc/rc.d/rcsysinit.d/S00mountkernfs: line 24: mount : command not found

/sys/etc/rc.d/rcsysinit.d/S00mountkernfs: line 29 : mount:command not found [FALL]

setting the console log level to 7...
/etc/rc.d/rcsysinit.d/S02conslelog: line 30: demsg: command not found [FAIL]
Populating /dev/ with device nodes...
grep :/proc/mounts :No such file or directory [FAIL]
FAILURE:
Unable to create device without a SysFS filesystem
After you press Enter,this system will be halted and powerd off.

 

关键错误如上面绿色标识的,参照了这个帖子,http://www.linuxsir.org/bbs/thread346672.html

   知道是因为Util-linux包含了这两个命令,但是我进入Chroot之后,mount显示正常,但是dmesg则显示没有该命令。

我就依照那个帖子里的,把perl,和Util-linux都重新安装了一边,但是问题还是一样的,所以我就又仔细看了一下 http://www.linuxsir.org/bbs/thread322894.html ,看到与Util-linux里相关的两次安装,

Util-linux-2.12r

代码:
 
 
tar xvf /lfs-sources/util-linux-2.12r.tar.bz2 cd util-linux-2.12r sed -i 's@/usr/include@/tools/include@g' configure ./configure make -C lib make -C mount mount umount make -C text-utils more cp -v mount/{,u}mount text-utils/more /tools/bin cd ..
  rm -rf util-linux-2.12r

 

 

Util-linux-2.12r

代码:
  
  
tar xvf $LFS/util-linux-2.12r.tar.bz2 cd util-linux-2.12r sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' / -i $(grep -rl '/etc/adjtime' .) mkdir -pv /var/lib/hwclock patch -Np1 -i $LFS/util-linux-2.12r-cramfs-1.patch patch -Np1 -i $LFS/util-linux-2.12r-lseek-1.patch ./configure make HAVE_KILL=yes HAVE_SLN=yes make HAVE_KILL=yes HAVE_SLN=yes install cd .. rm -rf util-linux-2.12r

所以就安装这两个的要求重新做了一边。

重启,OK,正常!
 哈哈!!

如果安装的是LFS 6.4,那就是Util-linux-ng了。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值