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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-22-2002, 09:00 PM
|
#1
|
Member
Registered: Apr 2002
Posts: 47
Rep:
|
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
|
|
|
07-22-2002, 09:24 PM
|
#2
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Rep:
|
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!)
|
|
|
07-22-2002, 09:29 PM
|
#3
|
Member
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711
Rep:
|
|
|
|
07-22-2002, 10:01 PM
|
#4
|
Member
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291
Rep:
|
|
|
|
07-23-2002, 12:30 AM
|
#5
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
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.
|
|
|
07-23-2002, 07:06 PM
|
#6
|
Member
Registered: Apr 2002
Posts: 47
Original Poster
Rep:
|
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.
|
|
|
07-23-2002, 07:19 PM
|
#7
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Rep:
|
I didn't know you were using two hdd's. I have only one. That's probably why it works.
|
|
|
07-23-2002, 08:30 PM
|
#8
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
You're welcome. 
|
|
|
07-26-2002, 09:53 AM
|
#9
|
Member
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291
Rep:
|
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
|
|
|
07-28-2002, 04:15 PM
|
#10
|
Member
Registered: Apr 2002
Posts: 47
Original Poster
Rep:
|
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:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|