LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-26-2002, 03:18 PM   #1
chupacabra
Member
 
Registered: Oct 2002
Posts: 30

Rep: Reputation: 15
Thumbs up final stage: problem booting up


local host: redhat 8.0
boot loader: grub
file system: ext3
kernel: 2.4.18-14


hi guys...


well, I decided that my lfs should go Lilo instead of GRUB. I made that decision about a chapter ago.

ok...after I boot up the system on to a lfs, before I even get the chance to select LFS the grub loader takes over and doesn't let me boot to LFS.

How do I tell GRUB "nevermind, I'll boot up from LiLo using LFS"?

This is moment I've waiting for weeks and now I'm stuck at the very last stage.

Thanks,
El Chupacabra
 
Old 11-26-2002, 03:27 PM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
What does the /boot/grub/menu.lst look like on your main system?
 
Old 11-26-2002, 03:53 PM   #3
chupacabra
Member
 
Registered: Oct 2002
Posts: 30

Original Poster
Rep: Reputation: 15
Unhappy /boot/grub/menu.lst

this is my /boot/grub/menu.lst file content

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /initrd-2.4.18-14.img
 
Old 11-26-2002, 05:27 PM   #4
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Why ... you have no entry for your LFS system ...
How about the output of

fdisk -l /dev/hda

?
 
Old 11-27-2002, 10:49 AM   #5
chupacabra
Member
 
Registered: Oct 2002
Posts: 30

Original Poster
Rep: Reputation: 15
Unhappy out of 2 commands: fdisk and df

Why does it say Win95 down there? I don't have Win95 on my system at all.

this is my fdisk file content...
Disk /dev/hda: 255 heads, 63 sectors, 2498 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 650 5116702+ 83 Linux
/dev/hda3 651 2401 14064907+ 83 Linux
/dev/hda4 2402 2498 779152+ f Win95 Ext'd (LBA)
/dev/hda5 2402 2498 779121 82 Linux swap


and by doing a du -h command, this is what I get...

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 13G 1.5G 11G 12% /
/dev/hda2 4.8G 2.9G 1.6G 63% /LFS
/dev/hda1 99M 11M 83M 11% /boot
none 188M 0 187M 0% /dev/shm
 
Old 11-27-2002, 05:08 PM   #6
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
Thats your extended partition that houses your logical partition hda5 (swap)
as there is only 1 logical partition you could blow hda4/5 away and just create swap as hda4

interesting place to put swap btw, best putting it as close to the start of the disk as possible for speed (usually hda2).
 
Old 11-28-2002, 07:36 PM   #7
chupacabra
Member
 
Registered: Oct 2002
Posts: 30

Original Poster
Rep: Reputation: 15
Question well...

So ...what do I do to tell GRUB "no thanks, don't use RedHat 8.0, use LFS"?

Is there a line or something I put on the GRUB menu list?


Can anyone tell me the perfect host and scenario where LFS would boot up just fine? upgrade LFS to GRUB? or a host with LiLo maybe?


any idea is welcome.
Thanks.
 
Old 12-02-2002, 08:19 AM   #8
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Chupacabra,

I have almost the exact same setup as you:

dev/hda1 /boot
dev/hda2 / (RH7.3)
dev/hda3 / (LFS)
dev/hda4 /swap

I'm at work right now, so I'm doing this from memory.

You need to add the following lines to your grub.conf:

title LinuxFromScratch (2.4.19)
root (hd1,0)
kernel /LfsKernelName ro

On second thought, don't add anything yet. Let me get home this afternoon, and I'll send another post with everything exactly correct.

You CAN go ahead and make sure that your LFS kernel is on /dev/hda1.

Talk again later.

Denny
 
Old 12-02-2002, 09:40 AM   #9
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
If you can tell us where your bootable bzImage ( the bzImage you created during LFS) we can tell you exactly how to lay out your grub/menu.lst.

Bert
 
Old 12-02-2002, 05:12 PM   #10
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Okay,

Put your bzImage in the /boot directory (I'll call it LFSkernel ). Then your grub.conf should have the following added to it:

title LinuxFromScratch 4.0
root (hd0,0)
kernel /LFSkernel ro root=/dev/hda2

Then, when you reboot, you should have a new listing for your shiny new home-made Linux.

Enjoy!!
 
  


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
problem near final stage of wireless installation joshknape Linux - Wireless Networking 2 07-24-2005 07:50 PM
chroot'ing problem in Gentoo Stage 1 Install logosys Linux - Distributions 6 07-18-2005 12:10 PM
Half of my applications are broken. I am using Gentoo stage 1 on 3 nptl (stage 1.5) dragonslay Linux - Games 3 04-01-2005 05:23 PM
Gentoo: Stage 1, Stage 2, or Stage 3 skorpi0wn Linux - Distributions 3 03-01-2005 07:47 PM
Dual booting with Mandrake 10 final? sford232 Mandriva 4 06-18-2004 08:14 AM

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

All times are GMT -5. The time now is 03:25 AM.

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