LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo.conf changes (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-conf-changes-234938/)

adrenaline_NZ 09-24-2004 08:22 PM

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

wapcaplet 09-24-2004 08:41 PM

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?

d0odman 09-24-2004 08:42 PM

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.

adrenaline_NZ 09-24-2004 10:39 PM

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


All times are GMT -5. The time now is 12:55 PM.