Linux.com

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.
 

Comments

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. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFD411 Embedded Linux Development
    25 Aug » 29 Aug - Santa Clara, CA
    Details
  3. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details

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