LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-30-2003, 11:36 AM   #1
Nizze
LQ Newbie
 
Registered: Aug 2003
Location: Stockholm/Sweden
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Thumbs down booting problem with lilo


I have a problem with my lilo configuration. (But it might be a XP, or hardware problem so I won't blame lilo for the moment)

I want to be able to boot both slackware and xp.
hda - slackware 9
hde - xp

My hde (ata-100) disk will appear as the first disk if I choose to boot from it in the bios.

So if I install lilo in the MBR on my firs disk (hde, it's an ata100 device) I get the error message: 99 99 99 ... (invalid second stage index sector)

If I install lilo in the MBR on my hda disk (and tell bios to boot from hda) I manage to boot slackware, but not XP. Just a black screen when I choose xp. I think xp only works on the first disk...

What to do? - Help me please!

I have searched booth google and the forums at least 100 times.

I have the A7V133 MB, latest bios, kernel 2.4.20

My lilo.conf (with hde as the first disk):

boot = /dev/hde
map = /boot/map
#compact
prompt
timeout = 50
lba32
vga = 773
# vga = normal
default=linux

image = /boot/vmlinuz
label = linux
read-only
root = /dev/hda1

other = /dev/hde1
label = xp

My lilo.conf (with hda as the first disk):

boot = /dev/hda
map = /boot/map
#compact
prompt
timeout = 50
lba32
vga = 773
# vga = normal
default=linux

image = /boot/vmlinuz
label = linux
read-only
root = /dev/hda1

other = /dev/hde1
label = xp
 
Old 08-30-2003, 11:48 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
LILO fails: Error messages and their interpretation
 
Old 08-30-2003, 05:21 PM   #3
Nizze
LQ Newbie
 
Registered: Aug 2003
Location: Stockholm/Sweden
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
Did't find any new information how to solve my problem...

Please help me!
 
Old 08-30-2003, 07:09 PM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Re: booting problem with lilo

Quote:
Originally posted by Nizze
I think xp only works on the first disk...
One way to get around that is to use lilo's drive-mapping capabilities. A "map-drive" directive in the Windows XP stanza of lilo.conf will basically "fool" XP into thinking that it is on the first drive.

This Google search should give you enough to go on.
 
Old 08-31-2003, 01:45 AM   #5
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Try modifying your XP section like this:

other = /dev/hde1
label = xp
loader=/boot/chain.b
table=/dev/hde

Good luck!
 
Old 08-31-2003, 06:23 AM   #6
Nizze
LQ Newbie
 
Registered: Aug 2003
Location: Stockholm/Sweden
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
where can I find chain.b?

My /boot directory does't contain any .b files ...
 
Old 08-31-2003, 06:43 AM   #7
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Question

That is strange...

As far as I know the chain loader chain.b should come with lilo... www.rpmseek.com also finds the lilo rpms when I search for chain.b.
I'd suggest you do a
find / -name chain.b
to see if you have it installed somewhere other than /boot.
If there is no such file, try to download and install the latest version of lilo.

Whenever I wanted to boot win98 or 2k, I issued those two extra lines to the win section and it worked perfectly fine for me. Sorry, that's all the advice I can give you.


Good luck!
 
Old 08-31-2003, 07:25 AM   #8
Nizze
LQ Newbie
 
Registered: Aug 2003
Location: Stockholm/Sweden
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
I reinstalled lilo 22.5.2.7 so now I know were my files are...

but, chain.b does not switch drives automatically. ( http://sdb.suse.de/en/sdb/html/kgw_lilo_20_chainb.html )
What to add about that?

map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80 ???
 
Old 08-31-2003, 07:51 AM   #9
Nizze
LQ Newbie
 
Registered: Aug 2003
Location: Stockholm/Sweden
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
IT WORKED!
Thank you gundelgauk and DMR!

Here is my finally lilo.conf:

boot = /dev/hda
map = /boot/map
#compact
prompt
timeout = 50
lba32
vga = 773
# vga = normal
default=linux

image = /boot/vmlinuz
label = linux
read-only
root = /dev/hda1


other = /dev/hde1
label = xp
loader=/boot/chain.b
table=/dev/hde

map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80
 
  


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
2.6.14 Not Booting (LILO Problem) lydgate Slackware 4 11-10-2005 03:21 AM
lilo problem ...i just get L on booting johny joseph Linux - Newbie 2 09-19-2005 09:36 AM
LILO problem with booting bigoli Slackware 5 01-10-2005 03:36 PM
LILO Booting Problem...please help! WarMachine Mandriva 3 08-30-2003 06:50 PM
Lilo booting problem infernus Linux - Newbie 8 07-04-2003 04:57 AM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
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