Changing default boot OS in LILO

surd615

Member
Feb 29, 2000
161
0
0
Is it possible to change the default boot OS (Linux) in LILO? I want to set it up so that the system boots by default into windows.
Thanks
 

asim

Member
Jan 4, 2001
48
0
0
It's quite easy.
First, su to root.
Then edit /etc/lilo.conf so that instead of

default = linux

it reads:

default = dos
Put whatever you call your windows image in lilo there for dos (I use dos becaues it's default with most distros).

Then, after that's done, type in lilo at the prompt. Then lilo should display the partition information and a * should be displayed next to the windows image. On reboot, it should work.
 

surd615

Member
Feb 29, 2000
161
0
0
Thanks for your suggestion, but my lilo.conf does not contain the

default =

line. I'm using Mandrake 6.0 and the lilo.conf reads:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.13-4mdk
label=linux
root=/dev/hda6
read-only
other=/dev/hda1
label=dos
table=/dev/hda

I read somewhere that moving the "other=...." part over the "image=.." would work, but that didn't do it either.
 

pai

Junior Member
Jan 6, 2001
6
0
0
hi

simply add the

default = dos

line...

it will work, as asim said. try.
 

MGMorden

Diamond Member
Jul 4, 2000
3,348
0
76
You can also move the dos partition data before the linux data. If no default is specified LILO will boot the first partition/kernel listed in the file.