Linux From Scratch This 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. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-25-2004, 12:15 PM
|
#1
|
Member
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225
Rep:
|
Grub install LFS 5.x
Buenos Dias!
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.
Thanks,
|
|
|
06-25-2004, 03:36 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Rep:
|
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.
|
|
|
06-25-2004, 03:40 PM
|
#3
|
Member
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225
Original Poster
Rep:
|
Thanks!
That is what I will do!
|
|
|
07-02-2004, 01:35 PM
|
#4
|
Member
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225
Original Poster
Rep:
|
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
Line read:
cp arch/i386/boot/bzImage /boot/lfskernel
Changed to :
cp arch/i386/boot/bzImage /boot/lfskernel-2.4.26
AND..
Line Read:
cp System.map /boot
Changed to:
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/sda1=/boot
/dev/sda3=/ for FC1
/dev/sdb1=/ for LFS
/dev/sdc1= /data
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.
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2197.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2197.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2197.nptl.img
title Fedora Core (2.4.22-1.2197.nptlsmp)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2197.nptlsmp ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2197.nptlsmp.img
title Linux From Scratch 5.1.1 (2.4.26)
root (hd1,0)
kernel --no-mem-option /boot/lfskernel-2.4.26 root=/dev/sdb1
title Fedora Core (2.4.22-1.2194.nptlsmp)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2194.nptlsmp ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2194.nptlsmp.img
Can anyone help? Let me know if you need more info!
|
|
|
07-02-2004, 02:45 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Rep:
|
Code:
title Linux From Scratch 5.1.1 (2.4.26)
root (hd1,0)
kernel --no-mem-option /boot/lfskernel-2.4.26 root=/dev/sdb1
you want to change root (hd1,0) to (hd0,0)
root tells grub where you keep your kernels, and it is with the rest of them on sda1, or in grub terminology (hd0,0)
|
|
|
07-02-2004, 04:29 PM
|
#6
|
Member
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225
Original Poster
Rep:
|
That fixed it along with removing /boot in the kernel line!
Thanks,
|
|
|
All times are GMT -5. The time now is 02:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|