LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2002, 09:00 PM   #1
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Rep: Reputation: 15
lilo.conf syntax error


I have Mandrake 8.2 on my primary drive and windows 98 on my second one.

The error I get when I run lilo to set things up is:

Value expected for 'to' at or above line 29 in file /etc/lilo.conf

Line 29 is the first "map-drive" statement. I obviously have the syntax wrong somehow, but I copied this directly from the lilo.conf man page.

What do I need to change to fix this error?

OR

If you are currently dual booting win95/98 with with linux on hda and windows on hdb please post your lilo.conf so I can compare it with mine.

Thanks!

-------------------------------------
Here is my /ect/lilo.conf

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=normal
default=linux
keytable=/boot/us.klt
lba32
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label=linux
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda1
initrd=/boot/initrd.img
append="failsafe devfs=nomount"
read-only
other=/dev/fd0
label=floppy
unsafe
other=/dev/hdb1
map-drive=0x80 to 0x81
map-drive=0x81 to 0x80
table=/dev/hdb
label=Win95
 
Old 07-22-2002, 09:24 PM   #2
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
why don't you try taking that out? I don't have it in mine, I"m booting win2k (extremly rarely) & slack 8.1. What happens when you take it out? (remember to run /sbin/lilo again!)
 
Old 07-22-2002, 09:29 PM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
http://www.tldp.org/HOWTO/MultiOS-HOWTO-6.html
 
Old 07-22-2002, 10:01 PM   #4
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
it's easy
grub
 
Old 07-23-2002, 12:30 AM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Make that section look like this:

other=/dev/hdb1
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
table=/dev/hdb
label=Win95

Then run lilo again.
 
Old 07-23-2002, 07:06 PM   #6
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
LinuxCool, thanks for correcting my syntax, I took another look at and the lilo.conf man page, and found that I dodn't copy it as exactly as I though.

5amYam, what advantages does grub have over lilo? If you're suggesting I switch, please give me a reason or two.

jetblackz, thank you for the link, the next time I need to configure a dual boot system, I'll check that first. It's got just what I needed.

lackluster, that's in there to tell my second HD that it is the first HD when I boot windows. Otherwise windows hangs during the boot process. I dunno why your system is working, but I sure can't argue with success.

Thank you all for the responses.
 
Old 07-23-2002, 07:19 PM   #7
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
I didn't know you were using two hdd's. I have only one. That's probably why it works.
 
Old 07-23-2002, 08:30 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
Old 07-26-2002, 09:53 AM   #9
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Grub because...

Well reasons to switch. My configuration to boot 4 OSen is not as long as your original dual boot .conf. And it's much more human readable. Oh yes once you save the .conf file no need to restart grub. It'll pick it up next boot.

Check out this link
 
Old 07-28-2002, 04:15 PM   #10
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
Cool. I think I will give grub a try on my second box.

Thanks again!
 
  


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.conf error dave`2005 Linux - Newbie 12 09-14-2005 04:36 PM
Annoying syntax error with named.conf d0ugb Linux - Networking 7 08-07-2005 12:20 PM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM
httpd.conf Syntax error tommytomato Linux - Newbie 2 05-25-2004 05:10 AM
error on append line in lilo.conf CTR Linux - General 6 06-01-2001 10:46 AM


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