how to change default OS with LILO?

Evander

Golden Member
Jun 18, 2001
1,159
0
76
installed mandriva after win2k and winxp, when i did that the lilo boot loader was installed and changed the default boot to Linux if I press nothing in 10 seconds. I'd like it to default to windows, but how to?

I figured out it was to do with the lilo.conf file, here's mine:
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

default="windows"
boot=/dev/hda
map=/boot/map
menu-scheme=wb:bw:wb:bw
compact
prompt
nowarn
timeout=100
message=/boot/message
image=/boot/vmlinuz
label="linux"
root=/dev/hda6
initrd=/boot/initrd.img
append="splash=silent"
vga=788
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda6
initrd=/boot/initrd.img
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda6
initrd=/boot/initrd.img
append="failsafe"
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/hda1
label="windows1"
table=/dev/sda
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Well besides it being odd that Mandriva would use LILO in this day and age, your default=windows line should set it as the default although I'm not sure if the quotes are causing issues. It's been a long time since I've used lilo and all of the lilo.conf stuff I can find via google has no quotes on either the label= or default= lines. Also make sure you run 'lilo' as root to update it after you edit the config file, it's not dynamic like grub.
 

Evander

Golden Member
Jun 18, 2001
1,159
0
76
I thought it would set it to the default also, but no. I never edited that file, this is the default on my system. The quotes seem to be normal, here's an example I saw where linux is default: http://mandrivausers.org/index.php?showtopic=10598

And why do you think it's odd to use LILO? I don't know much 'bout linux nor bootloaders, but I just select an OS at boot up and it does it's work, seems simple enough
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
And why do you think it's odd to use LILO? I don't know much 'bout linux nor bootloaders, but I just select an OS at boot up and it does it's work, seems simple enough

Because LILO records the physical location of the kernels and such, if they move it'll fail to boot. GRUB understands filesytems so it actually mounts /boot and reads the filenames at runtime so if the files get moved, copied, etc it'll still be able to find them as long as the name is the same. And GRUB has an edit mode where you can edit all of the entries right before you boot incase you want to change something just for one boot or fix a typo.