• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Changing default boot OS in LILO

surd615

Member
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
 
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.
 
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.
 
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.
 
Back
Top