LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo.conf syntax error (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-conf-syntax-error-26341/)

BBlalock 07-22-2002 09:00 PM

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

lackluster 07-22-2002 09:24 PM

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!)

jetblackz 07-22-2002 09:29 PM

http://www.tldp.org/HOWTO/MultiOS-HOWTO-6.html

5amYan 07-22-2002 10:01 PM

it's easy
grub

linuxcool 07-23-2002 12:30 AM

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.

BBlalock 07-23-2002 07:06 PM

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.

lackluster 07-23-2002 07:19 PM

I didn't know you were using two hdd's. I have only one. That's probably why it works.

linuxcool 07-23-2002 08:30 PM

You're welcome. :)

5amYan 07-26-2002 09:53 AM

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

BBlalock 07-28-2002 04:15 PM

Cool. I think I will give grub a try on my second box.

Thanks again!


All times are GMT -5. The time now is 03:37 PM.