LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-13-2003, 12:51 AM   #1
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Rep: Reputation: 15
LILO trouble


This just doesn't seem to be my week... first trouble getting the Slack 9.1 ISOs and now trouble with LILO (I think). Heres the prob: After installing Slack and rebooting I simple get a little blinking command-line underscore in the top left corner of the screen... with nothing else. I can't enter anything or do anything. Using a boot disk I can start my Slack install with X and everything. I don't imagine its a video prob because I can start X (even without proper vid card drivers installed). Heres the info:
partitions: hda1 as / (with boot flag) and hda2 as /swap
during install: initialized swap, formatted root as ext3, full install, chose kernel from CD, chose simple LILO setup (tried advanced too, same result), selected root for the LILO booting option (tried MBR too).

What is odd is in the /boot dir there arent that many files (like ive observed with grub). My lilo.conf resides in /etc and thats the only occurance. Here it is though (with comments excluded):

boot = /dev/hda1
message = /boot/boot_message.txt
prompt
timeout = 1200
change-rules
reset
vga = normal
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only

Why is that last line read-only? When booting with the boot disk i used the "ro" parameter but this should be my lilo.conf file from my 9.1 install. Is there something special I should know about Slackware install/partitioning/lilo? What am I doing wrong?
 
Old 11-13-2003, 01:01 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
lilo has to be in the MBR unless you have another boot loader which will load the lilo bootloader on hda1.

the line
boot=/dev/hda1
needs to be changed to
boot=/dev/hda

I'm not sure why you have a change-rules line. Maye comment that one out (place a # in front of it). The read-only means that the root partition is going to get mounted read only first (it will get remounted rw after the file system check).

Also, you need to run lilo after making the changes:
/sbin/lilo -v
 
Old 11-13-2003, 01:03 AM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I think if you want it on your mbr you need the line to look like this
boot = /dev/hda

you have /dev/hda1
 
Old 11-13-2003, 01:09 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Seems like you don't even have lilo installed.

Try this:
1) Boot with the slack CD (or some other linux rescue CD)
2) Make a dir in /tmp (eg. /tmp/testmount)
3) Mount your / partition to the dir you created in step 2.
4) chroot to that dir.
5) edit your /etc/lilo.conf... remove the change-rules and reset lines.
6) run /sbin/lilo
7) If there's no error messages, reboot and say your prayers.
 
Old 11-13-2003, 01:20 AM   #5
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Original Poster
Rep: Reputation: 15
Well that was unusually painless. I fixed that line and it worked. One more question though, Where did I go wrong in the install that caused it not to boot properly? Should I have chosen to install LILO to the MBR instead of root? I tried that during one of my installs and still got the blinking underscore.
 
Old 11-13-2003, 01:31 AM   #6
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
that was exactly where you went wrong(well thats my guess)

Last edited by shanenin; 11-13-2003 at 02:31 AM.
 
Old 11-13-2003, 01:40 AM   #7
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Original Poster
Rep: Reputation: 15
Well, now thats the wierd part. I tried installing LILO to the MBR at one point and still got the cursed blinking underscore. I'm going to run thru the install process again, cuz chances are I somehow messed that up. I want to take the time to go thru all the packages again anyways. If it does work properly I'll just post an update then crawl back into my little newbie corner again, hehe.
 
Old 11-13-2003, 01:45 AM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
the problem might also be the installer producing a bad lilo.conf file. Did you get rid of the change-rules and reset lines before you got it working?
 
Old 11-13-2003, 05:07 AM   #9
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
Make sure Lilo's on hda, and make sure you boot from your hda disk. (bios setting)
 
Old 11-13-2003, 11:42 AM   #10
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Original Poster
Rep: Reputation: 15
Ok, I just ran thru the installation again... installing LILO to the MBR and it worked this time. I must have had my partitions messed up at the time I tried to install LILO correctly. I am impressed with Slackware so far. It feels natural and powerful, I'm anxious to play with it.
 
  


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
Having trouble configuring Lilo? jacatone Linux - Newbie 6 07-06-2005 09:03 AM
trouble with lilo need help badly encore Slackware 8 03-04-2005 05:38 PM
Trouble Installing LiLo mrgrieves Linux - Software 2 05-11-2004 07:04 PM
Trouble With Booting Lilo drdroid Linux - General 5 11-28-2003 12:47 PM
Trouble getting rid of LILO Motorspin Linux - Newbie 10 08-20-2003 09:44 AM


All times are GMT -5. The time now is 01:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration