Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lilo bootloader - OS list order. 1

Status
Not open for further replies.

KimLeece

Technical User
Nov 12, 2002
420
JP
Hi all - How can you change the boot order in a lilo bootloader. The machine defaults to the first OS if I just switch it on and don't pay attention - so I need to make the first OS the one I need to use the most - i.e. Windows not Linux.
Thanks -

Kim Leece.
 
Greetings,

You should be able to accomplish this by editing the following file...

/boot/grub/grug.conf

Grub defaults to the 1st in the list. If you look at mine I boot into redhat 1st..

Boots into Linux 1st...

title Red Hat Linux (2.4.18-26.8.0)
root (hd0,6)
kernel /boot/vmlinuz-2.4.18-26.8.0 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.18-26.8.0.img
title Windows XP Professional
rootnoverify (hd0,0)
chainloader +1

Boots into XP 1st...

title Windows XP Professional
rootnoverify (hd0,0)
chainloader +1
title Red Hat Linux (2.4.18-26.8.0)
root (hd0,6)
kernel /boot/vmlinuz-2.4.18-26.8.0 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.18-26.8.0.img

Hope this helps...

Kelly
 
If you are using lilo, goto /etc/lilo.conf

open it with an editor program, and change:

default=Linux

to

default=NT (or the name of your windows partition)

save it and run lilo from your command line.
 
redphone - Thank you for that, it worked fine! Have a star!

vespin - Thank you for the reply - but I am using lilo - not grub. Again though, thank you for the time.

Kim Leece.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top