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.
|
 |
11-26-2002, 03:18 PM
|
#1
|
Member
Registered: Oct 2002
Posts: 30
Rep:
|
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
|
|
|
11-26-2002, 03:27 PM
|
#2
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
What does the /boot/grub/menu.lst look like on your main system?
|
|
|
11-26-2002, 03:53 PM
|
#3
|
Member
Registered: Oct 2002
Posts: 30
Original Poster
Rep:
|
/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
|
|
|
11-26-2002, 05:27 PM
|
#4
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
Why ... you have no entry for your LFS system ...
How about the output of
fdisk -l /dev/hda
?
|
|
|
11-27-2002, 10:49 AM
|
#5
|
Member
Registered: Oct 2002
Posts: 30
Original Poster
Rep:
|
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
|
|
|
11-27-2002, 05:08 PM
|
#6
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
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).
|
|
|
11-28-2002, 07:36 PM
|
#7
|
Member
Registered: Oct 2002
Posts: 30
Original Poster
Rep:
|
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.
|
|
|
12-02-2002, 08:19 AM
|
#8
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
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
|
|
|
12-02-2002, 09:40 AM
|
#9
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
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
|
|
|
12-02-2002, 05:12 PM
|
#10
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
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!!
|
|
|
All times are GMT -5. The time now is 08:33 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
|
|