Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322
Rep:
Adding LFS to GRUB
Hello, everyone!
I have made an LFS system on hda4 which I have booted and used one or two times. But later I intalled Fedora Core 4 on hda2 and now I can't get GRUB to boot the LFS system. Do anyone know how to add an entry in grub.conf which will work???
My grub.conf:
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,1)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title LFS
root (hd0,3)
kernel /media/lfs/boot/lfskernel-2.6.8.1
Do you need more information? Just ask!
Thanks a lot!
The kernel line for LFS needs to contain the full path of kernel as it is seen on the root filesystem of the LFS install, not the root filesystem of your Fedora install.
The correct entry should be:
title LFS
root (hd0,3)
kernel /boot/lfskernel-2.6.8.1
initrd /boot/initrd-2.6.8.1
Change the initrd file name if it is not correct. I haven't ever used LFS but I think that this should be correct.
The trick is the path. When you mount the lfs partition under /media/lfs , what you see in there is in fact the / tree in lfs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.