GRUB my menu.lst

Nov 29, 2005
160
0
0
GRUB my menu.lst

Hi guys. I need a quickie help on changing boot order (dual boot Kanotix and win XP). Currently it boots to Kanotix as the default ; I want it to boot to WinXP as the default.

My laptop :
sda1 = winXP
sda3 = Kanotix

Heres what it is currently:

  • ## ## End Default Options ##
    title Debian GNU/Linux, kernel 2.6.18-kanotix-1
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.18-kanotix-1 root=/dev/sda3 ro quiet vga=791
    initrd /boot/initrd.img-2.6.18-kanotix-1

    title Debian GNU/Linux, kernel memtest86+
    root (hd0,2)
    kernel /boot/memtest86+.bin

    ### END DEBIAN AUTOMAGIC KERNELS LIST
    title Windows 2K/XP/2003 (sda1)
    chainloader (hd0,0)+1
    title Windows 2K/XP/2003 (sda2)
    chainloader (hd0,1)+1


Please tell me which line to edit. THANKS :)
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
in the menu.lst file there should be a line that says:

default 0

Change that to:
default 2

0 is the first menu entry, 1 is the second, 2 is the third, etc.

If there isn't a default line then go ahead and add it towards the top of the file.
 

Alone

Diamond Member
Nov 19, 2006
7,490
0
0
The above would work, but out of habit I like putting things in order.

title Windows 2K/XP/2003 (sda1)
chainloader (hd0,0)+1

title Debian GNU/Linux, kernel 2.6.18-kanotix-1
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-kanotix-1 root=/dev/sda3 ro quiet vga=791
initrd /boot/initrd.img-2.6.18-kanotix-1

title Debian GNU/Linux, kernel memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
 
Nov 29, 2005
160
0
0
woooooooooooooooooow ! Thanks so much guys sir Drag and sir Alone. We learn something everyday :)
Sir Alone.. thank you very much for re-arranging it for me :) IT WORKS !

Of all the technical brotherly helps, this site is the BEST and the most helpful ! Keep the spirit up :)

Thanks again.
 

Alone

Diamond Member
Nov 19, 2006
7,490
0
0
You'll find a lot of help in this forum. Read posts by drag, Nothingman and N0cmonkey about linux and you'll learn a lot. ;)