LFS 6.3 mount and dmesg command not found problems

Source: Internet
Author: User
Tags dmesg

Recently engaged in LFS, follow the http://www.linuxsir.org/bbs/thread322894.html
. Everything goes well!

However, when you start the instance, you may encounter the following problems:

 

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.

 

Key errors such as the above green logo, refer to this post, http://www.linuxsir.org/bbs/thread346672.html


I know that util-Linux contains these two commands, but after I enter chroot, Mount is displayed normally, but dmesg does not.

I re-installed Perl and util-Linux according to the post, but the problem is still the same, so I took a closer look.

Http://www.linuxsir.org/bbs/thread322894.html
, You can see the two installations related to util-Linux,

Util-linux-2.12r

Code:
tar xvf /lfs-sources/util-linux-2.12r.tar.bz2cd util-linux-2.12rsed -i 's@/usr/include@/tools/include@g' configure./configuremake -C libmake -C mount mount umountmake -C text-utils morecp -v mount/{,u}mount text-utils/more /tools/bincd ..
 rm -rf util-linux-2.12r

 

And

 

Util-linux-2.12r

Code:
tar xvf $LFS/util-linux-2.12r.tar.bz2cd util-linux-2.12rsed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' /-i $(grep -rl '/etc/adjtime' .)mkdir -pv /var/lib/hwclockpatch -Np1 -i $LFS/util-linux-2.12r-cramfs-1.patchpatch -Np1 -i $LFS/util-linux-2.12r-lseek-1.patch./configuremake HAVE_KILL=yes HAVE_SLN=yesmake HAVE_KILL=yes HAVE_SLN=yes installcd ..rm -rf util-linux-2.12r

Therefore, the requirements for installing these two instances are retained.

Restart, OK, normal!
Haha !!

If LFS 6.4 is installed, it is util-Linux-ng.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.