LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2004, 09:22 PM   #1
adrenaline_NZ
Member
 
Registered: Jun 2004
Location: Wellington, New Zealand
Distribution: Suse 9.3
Posts: 36

Rep: Reputation: 15
lilo.conf changes


Hi all, Iīm updating my lilo.conf so that windows boots as the default OS (my fiance as requested this) and I thought while I was at it I get rid of some of the other entries there.

Heres the original lilo:
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/sda
map=/boot/map
default="linux-i686-up-4GB"
keytable=/boot/us-latin1.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/sdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/sdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht"
read-only
image=/boot/vmlinuz-i686-up-4GB
label="linux-i686-up-4GB"
root=/dev/sdb1
initrd=/boot/initrd-i686-up-4GB.img
append="devfs=mount acpi=ht splash=silent"
read-only
image=/boot/vmlinuz-2.6.3-7mdk
label="263-7"
root=/dev/sdb1
initrd=/boot/initrd-2.6.3-7mdk.img
append="devfs=mount acpi=ht splash=silent"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/sdb1
initrd=/boot/initrd.img
append="failsafe acpi=ht devfs=nomount"
read-only
other=/dev/sda1
label="windows"
table=/dev/sda
other=/dev/sdc1
label="windows2"
table=/dev/sdc
map-drive=0x80
to=0x82
map-drive=0x82
to=0x80
other=/dev/sdd1
label="windows3"
table=/dev/sdd
map-drive=0x80
to=0x83
map-drive=0x83
to=0x80
other=/dev/fd0
label="floppy"
unsafe

and hereīs the new one I would like to create:

# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/sda
map=/boot/map
default="windows"
keytable=/boot/us-latin1.klt
prompt
nowarn
timeout=300
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/sdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/sdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht"
read-only
# image=/boot/vmlinuz-i686-up-4GB
# label="linux-i686-up-4GB"
# root=/dev/sdb1
# initrd=/boot/initrd-i686-up-4GB.img
# append="devfs=mount acpi=ht splash=silent"
# read-only
# image=/boot/vmlinuz-2.6.3-7mdk
# label="263-7"
# root=/dev/sdb1
# initrd=/boot/initrd-2.6.3-7mdk.img
# append="devfs=mount acpi=ht splash=silent"
# read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/sdb1
initrd=/boot/initrd.img
append="failsafe acpi=ht devfs=nomount"
read-only
other=/dev/sda1
label="windows"
table=/dev/sda
# other=/dev/sdc1
# label="windows2"
# table=/dev/sdc
# map-drive=0x80
# to=0x82
# map-drive=0x82
# to=0x80
# other=/dev/sdd1
# label="windows3"
# table=/dev/sdd
# map-drive=0x80
# to=0x83
# map-drive=0x83
to=0x80
other=/dev/fd0
label="floppy"
unsafe
as you can see I have commented out the entries I donīt want. The problem starts when I run lilo, I get this error:
[root@holly etc]# lilo
Added linux
Added linux-nonfb
Added failsafe
Added windows *
Syntax error at or above line 60 in file '/etc/lilo.conf'

I not sure what I have done wrong, can any one help?

Thanks in advance
 
Old 09-24-2004, 09:41 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
This is just a guess, since I've not messed much with lilo, but don't you need a "map-drive" entry just above the "to=0x80" entry?
 
Old 09-24-2004, 09:42 PM   #3
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
Re: lilo.conf changes

Quote:
Originally posted by adrenaline_NZ

# other=/dev/sdd1
# label="windows3"
# table=/dev/sdd
# map-drive=0x80
# to=0x83
# map-drive=0x83
to=0x80
other=/dev/fd0
label="floppy"
unsafe
as you can see I have commented out the entries I donīt want. The problem starts when I run lilo, I get this error:
[root@holly etc]# lilo
Added linux
Added linux-nonfb
Added failsafe
Added windows *
Syntax error at or above line 60 in file '/etc/lilo.conf'

I not sure what I have done wrong, can any one help?

Thanks in advance
You missed commenting out another line, see after #map-drive=0x83 you have to=0x80. Comment out to=0x80 and see if that fixes it.
 
Old 09-24-2004, 11:39 PM   #4
adrenaline_NZ
Member
 
Registered: Jun 2004
Location: Wellington, New Zealand
Distribution: Suse 9.3
Posts: 36

Original Poster
Rep: Reputation: 15
Re: Re: lilo.conf changes

Quote:
Originally posted by d0odman
You missed commenting out another line, see after #map-drive=0x83 you have to=0x80. Comment out to=0x80 and see if that fixes it.
Thats fixed the error, thanks heaps!!
 
  


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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 04:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 01:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 09:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 04:53 PM


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