LinuxQuestions.org
Help answer threads with 0 replies.
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 03-09-2010, 10:15 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
LIlo instead of Grub


Hello,

Where can I find how to use Lilo on the 6.5 book instead of using Grub.

Roelof
 
Old 03-09-2010, 11:14 AM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
"man lilo" if it is installed, or Google.
 
1 members found this post helpful.
Old 03-09-2010, 12:36 PM   #3
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
oke,

Now find out where I can download the soutce of lilo.
Every site I found (google) doesn't have it.

Roelof
 
Old 03-09-2010, 02:17 PM   #4
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Well, I didn't have any problem locating it using Google: "lilo source". I found it at: ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/. I'm surprised that the book doesn't have information about it.
 
1 members found this post helpful.
Old 03-09-2010, 03:42 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

@penguiniator: Lilo isn't part of LFS (it was way back, version 3 if I remember correctly).
 
1 members found this post helpful.
Old 03-09-2010, 04:03 PM   #6
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Does it need to be in order to use it on LFS?
 
1 members found this post helpful.
Old 03-09-2010, 04:15 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@penguiniator: I'm not sure I understand the question.

You can use lilo instead of grub if you want, it is just that the LFS team decided to start using grub at a certain point. I had to use lilo on my MacPro (grub wasn't playing nice with EFI at the time). It worked like a charm.

I used the binary package (unpack from the root dir, configure, run and all is good to go). You could keep in the spirit of LFS and compile it yourself, you do need some extra dependencies which are not part of the current LFS versions, check the install documentation that comes with the package to see which.

Hope this clears things up.
 
1 members found this post helpful.
Old 03-09-2010, 04:34 PM   #8
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Well, I'm not the one that needs the information, but at least the op is within earshot, right?
 
1 members found this post helpful.
Old 03-09-2010, 04:38 PM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi.

The OP should have all the info he needs, that is correct!

One more piece of information: I installed lilo after the last package was installed (that would be vim 7.2 in LFS 6.6), and I did not (maybe too obvious) install grub at all.
 
1 members found this post helpful.
Old 03-10-2010, 05:23 AM   #10
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello

I installed Lilo without any problems in a chrooted enviroment.

Then I made a lilo.conf which look like this

boot /dev/hdc1
delay 0

image /boot/lfskernel-2.6.22.5
label=linux
root=/dev/hdc3
read-only.

But when I do sbin/lilo I get a message that lilo is not installed with as reason a raid-device.
But I don't have raid.

Also Grub is complaining that in the chrooted envirioment grub can't reconigze any disk..

Anyone tips ?

Roelof
 
Old 03-10-2010, 11:34 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I'm not familiar with your partition setup, but shouldn't these 2 be the same:

boot /dev/hdc1
root=/dev/hdc3

Or are / and /boot separate partitions? If not both should read either /dev/hdc1 or /dev/hdc3 (the device you created in 2.3 and is mounted as $LFS - /mnt/lfs)

If that doesn't solve the problems:

Where in the book did you install and configure lilo? If you haven't tried already you might want to re-enter the chrooted environment as shown in chapter 6.62 (that is assuming you finished chapter 6!! If not finish it first) and do lilo's configure steps again.

Hope this helps.
 
1 members found this post helpful.
Old 03-10-2010, 12:21 PM   #12
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

Yes, youre right.
I have everything on 1 partition. I was confused with a gentoo-setup I once used.

I configured Lilo on my own because in the 6.5 book I couldn't find anything about lilo only about grub.
I configured this way :
untar the lilo tarball.
Make a lilo.conf
run /sbin/lilo

Roelof
 
Old 03-11-2010, 03:45 AM   #13
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

I changed the boot and root to /dev/hdc2 where I installed my LFS system.
But still this message FATAL: raid_setup: stat ("/dev/hdc2").

And I found out that /dev is almost empty on shm and sysfs.

Roelof
 
Old 03-11-2010, 04:21 AM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You need to give a bit more information:

1) At what stage/chapter in the book are you?
- Did you finish everything or is there still stuff to do.

2) In post #10 you mention this: Also Grub is complaining that in the chrooted envirioment grub can't reconigze any disk..
- I do hope you mean lilo and not grub. Or did you install both (which I told you not to do in post #9)?

3) When are you getting the FATAL message?
- During boot or when you run /sbin/lilo or .....

4) What do your fstab and lilo.conf look like?
- I'm talking about the ones from the LFS setup, not your host.

5) Which steps did you exactly take to get to this error message?
- Did you do these steps before re-configuring/running lilo:
- Remount -> Section 6.2.2, “Mounting and Populating /dev”
- Remount -> Section 6.2.3, “Mounting Virtual Kernel File Systems”
- re-enter the chrooted environment as stated in 6.62

6) Did you configure your kernel correctly?
- This is only of interest if you finished LFS and are trying to boot it.
 
Old 03-11-2010, 07:17 AM   #15
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
1) At what stage/chapter in the book are you?
- Did you finish everything or is there still stuff to do.

Am im at the last chapter of the book where you have to install the bootloader. If that's a succes then everything of the book is done.

2) In post #10 you mention this: Also Grub is complaining that in the chrooted envirioment grub can't reconigze any disk..
- I do hope you mean lilo and not grub. Or did you install both (which I told you not to do in post #9)?

I installed both, Im sorry. I will try to delete grub from the system

3) When are you getting the FATAL message?
- During boot or when you run /sbin/lilo or .....

I get the message when I run /sbin/lilo.

4) What do your fstab and lilo.conf look like?

Fstab :

/dev/hdc2 / ext3 defaults 1 1
/dev/hdc1 swap swap pri=1 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=3, mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0

lilo.conf :

boot=/dev/hdc2
delay=0

image=/boot/lfskernel-2.6.22.3
root=/dev/hdc2
label=linux
read-only

5) Which steps did you exactly take to get to this error message?

1. Restart computer and boot from LiveCD
2. Mount your lfs partition
export LFS=/mnt/lfs
mkdir -pv $LFS
mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap
partitions)
swapon /dev/sda1
4. Mount the virtual kernel filesystems
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
6. Populating /dev
mount -nvt tmpfs none /dev
mkdir -v /dev/pts
mkdir -v /dev/shm
mount -vt devpts -o gid=4,mode=620 none /dev/pts
mount -vt tmpfs none /dev/shm
7. Entering your working directory
cd /sources



6) Did you configure your kernel correctly?
- This is only of interest if you finished LFS and are trying to boot it.

I hope so otherwise have to do these steps again.


Roelof
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
[SOLVED] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 01:50 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM

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

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