Quote:
Originally Posted by pwellkidz18F4
Here's output from fdisk-l:
Device Boot Start End Blocks Id System
/dev/hda1 * 535 5908 43166655 7 HPFS/NTFS
/dev/hda2 1 527 4233096 b W95 FAT32
/dev/hda3 5909 9566 29382885 83 Linux
/dev/hda4 9567 9729 1309297+ 5 Extended
/dev/hda5 9567 9729 1309266 82 Linux swap / Solaris
Here's menu.lst:
## ## End Default Options ##
Default=7
title Debian GNU/Linux, kernel 2.6.18-5-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-5-686 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.18-5-686
savedefault
title Debian GNU/Linux, kernel 2.6.18-5-686 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-5-686 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.18-5-686
savedefault
title Debian GNU/Linux, kernel 2.6.18-4-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.18-4-686
savedefault
title Debian GNU/Linux, kernel 2.6.18-4-686 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.18-4-686
savedefault
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda2
title Windows NT/2000/XP
root (hd0,1)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
Am presuming the half page or so of commented text is unnecessary; also I added the beginning line Default=7
J
|
I count six entries in your menu.lst so the Default=7 should be Default=5 assuming the
root (hd0,0) is the entry you want as default as grub starts counting with 0 and reading this section here of my file.
Code:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0
Suggests that it should be.
Code:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 5
Instead of having a Default=5 as well if you were to remove the savedefault from every other entry in the file except the one you want as the default boot option and have this.
Code:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default saved
Then it should have no choice but to boot the option you want once you have booted into the Windows install after having changed the file so it will be the saved entry from now on.