GRUB loader and making XP boot first

  sean-278262 19:48 25 Oct 2006

Hi all. Took the plunge and installed linux to experiment on and eventually try getting it to be my main way to access the web. However currently in the training phase I am using Windows more as I get accustomed to all the ins and outs as I still have to get the wireless in my computer to work so require windows to access the web. How do you make windows so it boots first and not ubuntu linux with the Grub loader 0.97?

  Mikè 21:01 25 Oct 2006

You need to edit a text file called menu.lst

So in a terminal enter sudo gedit /boot/grub/menu.lst

Enter your root password.

This will open your text editor with full admin (root) permissions.

The relevant section of my menu.lst is shown below. You need to move the section in between the (( )) up to just beneath # # End default options # #

The (( )) are just added for clarity.

Then save and exit.

## ## End Default Options ##

title Ubuntu, 6.06 LTS kernel 2.6.15-27-686 (on /dev/hda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.15-27-686 root=/dev/hda6 ro quiet
initrd /boot/initrd.img-2.6.15-27-686

title Ubuntu, 6.06 LTS kernel 2.6.15-27-686 (recovery mode) (on /dev/hda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.15-27-686 root=/dev/hda6 ro single
initrd /boot/initrd.img-2.6.15-27-686

title Kubuntu, kernel 2.6.15-27-386
root (hd2,4)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdf5 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386

title Kubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd2,4)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hdf5 ro single
initrd /boot/initrd.img-2.6.15-27-386



# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdj7
title Xandros 3.02 OC
root (hd6,6)
chainloader +1

(( # This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP / Vista
root (hd0,0)
chainloader +1 ))

  woodchip 21:12 25 Oct 2006

If it boots how are you going to get into linux? You will need to create a Rescue boot floppy so you can boot into Linux when you want to use it if you are making XP auto load

  sean-278262 21:15 25 Oct 2006

Ok pardon my noobness in regards linux. The grub loader defaults to Linux and I have to go down to find XP. However I wish to make XP the default for now so I do not have to select it from the list.

  woodchip 21:19 25 Oct 2006

You should be able to change the order of the boot so Linux you have to select if you want to use it. I have to say that as above post it like going back to DOS. You have to work at it if you want to customise etc

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Dell XPS 13 9370 (2018) review

No need to scan sketches into your computer with Moleskine's new smart pen

WWDC history: Apple's product launches since 2005

Comment importer des contacts d’un iPhone à un autre iPhone ?