Home Linux Community Community Blogs Distributions Building LFS( Linux From Scratch)

Building LFS( Linux From Scratch)

After struggling for nearly one day, the LFS, linux from scratch, is finally built. I would note something about the building process. 1. about ssh There is some time that I just want to copy the command in LFS book and execute it directly. since copy between host OS and guest OS would be troublesome, SSH would be a convenient way to copy, paste and execute. execute "/etc/rc.d/init.d/sshd start" to start ssh service in LFS, one may also need to configure network interface using ifconfig command. 2. about mount After compiling all packages and changing root directory, I try to execute grub-install, and it tells me that there is no hard disk. And I eventually figured out that "mount -v --bind /dev ${LFS}/dev" is very critical in installing grub boot loader. Without it, grub-install would not find hd0.


Subscribe to Comments Feed
  • atul Said:

    Hi, i am also doing LFS, i just got stuck about running the command grub, i tird running grub command in root , sources and boot directory , but says command not found , please help me. Thanx in advance

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    16 Mar » 20 Mar - Atlanta - GA
  2. LFS220 Linux System Administration
    16 Mar » 19 Mar - Chicago +VIRTUAL
  3. LFS426 Linux Performance Tuning
    16 Mar » 19 Mar - Virtual

View All Upcoming Courses

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board