LinuxQuestions.org
Visit Jeremy's Blog.
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 04-16-2003, 06:24 AM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
lilo woes


Hi guy's
I'm in chapter 9 of the lfs book. I was able to boot my system , beit no tas I should of have. Here is the deal.
After finishing lfs on a debian knoppix I ran from cd, I wanted to put lilo on a floppy. (on a floppy fist because I wanted to see if all was as it is supposed to be). So I ran "/sbin/lilo -v -b /dev/fd0" . But lilo complaind that some file system was read only and it could there for not execute the command. After much tring and thinking, I did "/sbin/lilo -b /dev/fd0 -r $LFS -v". That worked and I was able to boot from the floppy thus created.
Once in my new lfs system, I did "/sbin/lilo -v" to write lilo to the mbr. But now it complaind that : "/dev/hda4: no such device". What the f**** ? So I did "/sbin/lilo -b /dev/fd0 -v". Again, "/dev/fd0: no such device" And the most wierd part is, I can mound both /dev/hdax and /dev/fd0 fine. I can do any thing I want, (echo "bala" > /dev/fd0 worked fine). But I can't put lilo on either the mbr or a floppy. Any thoughts any one?
 
Old 04-16-2003, 11:40 AM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Send us your lilo.conf file please.

secondly, trying using 'strace' (like strace lilo blah) and look at its output. It'll give you more clues which files it tries to open, in what mode and what went wrong there. Could just be a simple permission problem.
 
Old 04-16-2003, 11:41 AM   #3
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
strace, btw, can be found at freshmeat.net
 
Old 04-17-2003, 04:18 AM   #4
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks for your replie lfslinux. I solved the problem my self.
What I did was rebuild lilo on my booted lfs system. After reinstalling lilo, the problem went away.
But I have a question. Do you know what that boot.b file is that resides in the /boot dirctory? I ask this because the first time I wanted to install lilo, it complained about boot.b not being there. I didn't know what to do so I did "touch /boot/boot.b" and hoped for the best. Maby that was the problem all along?
 
Old 04-17-2003, 11:26 AM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
the *.b files in /boot is the boot loader program itself.

Normally you'll see different .b files there such as boot-menu.b boot-text.b chain.b mbr.b os2_d.b and sometimes boot-bmp.b

boot.b is often a symlink to either boot-menu.b (default) or boot-text.b

boot-menu.b gives you that menu driven LILO boot loader menu. boot-text.b gives you a text based interface only without a menu where you can use the arrow keys to select between kernel images. os2_d.b is used to bootstrap IBM's OS/2 (unless I'm mistaken) chain.b is the chain bootloader, typically used to bootstrap Microsoft DOS/Windows. mbr.b - no idea really.
 
  


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
LILO and USB woes Blackhawkckc Linux - Hardware 2 11-23-2004 07:15 AM
Lilo Stops at L Woes vulgrin Mandriva 14 07-25-2004 03:30 AM
LILO Woes Yakolev Linux - Newbie 2 01-21-2004 08:16 PM
lilo woes Pres Slackware 6 11-10-2002 07:43 PM
LILO woes mxr Linux - General 2 10-31-2001 09:53 PM

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

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