LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-30-2005, 06:13 AM   #1
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
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!
 
Old 06-30-2005, 08:19 AM   #2
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
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.

Try

kernel /boot/lfskernel-2.6.8.1

for LFS instead.
 
Old 06-30-2005, 08:23 AM   #3
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
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
 
Old 06-30-2005, 08:55 AM   #4
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Original Poster
Rep: Reputation: 31
Hi!

There is no initrd in the LFS system. Should I create one with makeinitrd?
 
Old 06-30-2005, 09:14 AM   #5
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
No, there is no need.
 
Old 06-30-2005, 11:06 AM   #6
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Original Poster
Rep: Reputation: 31
Hello!

Thanks a lot!!! I rebooted into LFS without a single problem! It worked!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in 6.34 grub lfs-6 sharmashikha Linux From Scratch 1 07-05-2005 08:22 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
adding the lfs user problem safrout Linux From Scratch 9 10-15-2002 04:45 PM
Boot LFS with Grub darkmage Linux From Scratch 2 08-20-2002 12:53 PM
Adding the LFS user? jbhoo Linux From Scratch 2 04-23-2002 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration