LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 06-25-2004, 12:15 PM   #1
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225

Rep: Reputation: 31
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,
 
Old 06-25-2004, 03:36 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Blog Entries: 4

Rep: Reputation: 78
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.
 
Old 06-25-2004, 03:40 PM   #3
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225

Original Poster
Rep: Reputation: 31
Thanks!

That is what I will do!
 
Old 07-02-2004, 01:35 PM   #4
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225

Original Poster
Rep: Reputation: 31
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!
 
Old 07-02-2004, 02:45 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Blog Entries: 4

Rep: Reputation: 78
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)
 
Old 07-02-2004, 04:29 PM   #6
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225

Original Poster
Rep: Reputation: 31
That fixed it along with removing /boot in the kernel line!

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Adding LFS to GRUB dinolinux Linux - Software 5 06-30-2005 11:06 AM
Install LFS? guygriffiths Linux From Scratch 16 10-16-2003 08:25 AM
Boot LFS with Grub darkmage Linux From Scratch 2 08-20-2002 12:53 PM
lfs on an install cd? sonikntails Linux From Scratch 1 04-24-2002 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:45 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