Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi, druuna & spiky0011
Thanks you guys help me. Since I cannot boot my system now, I cannot give you some detail information. I compile the LFS on the VirtualBox. The host system is on the sda1 and the lfs is on the sda3. It seems that you can only use the hda, not the sda.
Ah, I boot the system with a liveCD. But I can not find the gurb.cfg file. But I find the menu.lst file, here is the content:
# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
# Allow 30 seconds before booting the default.
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS-6.4 built by ChenLiang
kernel /boot/lfskernel-188.8.131.52 root=/dev/hda3
# The second entry is for Host System -- Ubuntu
title Ubuntu 9.04, kernel 2.6.28-11-generic
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/hda1 ro locale=zh_CN quiet splash
Thanks you guys help me. Since I cannot boot my system now, I cannot give you some detail information.
You don't have to be able to boot into LFS to give us the info we asked for. Chroot into LFS from your host to get access to the /etc/fstab and /boot/grub/grub.cfg files. The output from the fdisk -l command must be done from your host.
Looking at the kernel version that is used I'm guessing this is LFS version 6.4, which is old. Building the current stable 7.0 is a better idea, but that is ultimately up to you. As stated by spiky0011: If, after finishing LFS, you want to continue with BLFS you might be in for a rough ride...
It seems that you can only use the hda, not the sda.
Both can be used, it depends on the disk type that is being used (IDE vs SCSI) and the kernel options that are used/set. At the moment sda is the de facto standard, back in 2008/2009 hda was used by the LFS book (although the kernel was able to use sda at that time).
Hi, druuna & spiky0011
Aha, I have finished it! As you said before, changed hda to sda, and it worked.
The first time I try to build LFS is in 2009 when I was a fresher student of computer science, but I failed at that time. After that, I have change my major. Now I become interested in Linux again, so I want to finish this work. With your help, I did it, thanks very very much.
And, do you have some ideas to build LFS in some mobile device, like cell phones?