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.
This may be a stupid question but say I already have grub installed from say my other distros, should i still install it during the LFS installs? Also, should I mount my /boot partition during the installation of LFS since this is what I always boot from? It is a dedicated 200 MB partion on sda. Sda also houses Fedora1. LFS is sdd1 My data is sde1. sdb and sdc are other distro's.
I would add my LFS kernel to your existing /boot partition and add an entry to your existing grub.conf to boot it. There is no need to reinstall grub. You can also set up your LFS fstab to mount your shared /boot partition when booting LFS but it is not necessary.
Ok.... I skip the installation of Grub in CH6 on LFS 5.1.1. I was going to use my /boot partition that already existed from my FC1 installation. In my chroot environment I mounted /boot. The only other deviation was the below.
During kernel installation
cp arch/i386/boot/bzImage /boot/lfskernel
Changed to :
cp arch/i386/boot/bzImage /boot/lfskernel-2.4.26
cp System.map /boot
cp System.map-2.4.26 /boot
I also copied the .config file in the same manner. I saw some documentation on the net that said this was the best way to keep all your kernel versions straight.
Now, when I boot to LFS I get ,"ERROR 15 File not found", This seems to be a stage 2 error, but I don't know what file it can't find. I checked all my syntax and it all is seems to be correct. no typos as far as I can tell. Also I can boot fine to whatever FC kernel version I want. So I googled!!!!
Can't seem to find the answer. It will be good to note:
/dev/sda3=/ for FC1
/dev/sdb1=/ for LFS
Also, I created /dev/sdb1 after my FC1 install using cfdisk. I am using ext3 which is compiled into the kernel.
Here is my Grub.conf which is also the same as menu.lst.
title Fedora Core (2.4.22-1.2197.nptl)
kernel /vmlinuz-2.4.22-1.2197.nptl ro root=LABEL=/ rhgb
title Fedora Core (2.4.22-1.2197.nptlsmp)
kernel /vmlinuz-2.4.22-1.2197.nptlsmp ro root=LABEL=/ rhgb
title Linux From Scratch 5.1.1 (2.4.26)
kernel --no-mem-option /boot/lfskernel-2.4.26 root=/dev/sdb1
title Fedora Core (2.4.22-1.2194.nptlsmp)
kernel /vmlinuz-2.4.22-1.2194.nptlsmp ro root=LABEL=/ rhgb
Can anyone help? Let me know if you need more info!