• 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.

GRUB my menu.lst

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 🙂
 
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.
 
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
 
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.
 
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. 😉
 
Back
Top