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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure GRUB to boot WinXP automatically 1

Status
Not open for further replies.

Dryvlyne

IS-IT--Management
Oct 15, 2004
25
US
I have two internal IDE hard drives in my PC. The first HD has WinXP installed on it and the second HD has Fedora Core 3. I have GRUB installed on the MBR of the primary HD, but it always automatically boots to Fedora unless I hit a key real quick and choose WinXP. I would simply like to know what I need to do (in fairly good detail cause I am still a Linux newbie) so that GRUB attempts to boot my WinXP installation by default.

Thanks in advance :)
 
edit /boot/grub/menu.lst

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
Can someone please be more specific than the previous poster. I am posting my current /boot/grub/menu.lst file so if someone could tell me very specifically what I need to modify so that GRUB will boot WinXP by default I would greatly appreciate it.

Thanks

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda

default=0
timeout=15
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu

title Fedora Core (2.6.10-1.760_FC3)
root (hd1,0)
kernel /vmlinuz-2.6.10-1.760_FC3 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.10-1.760_FC3.img

title WindowsXP
rootnoverify (hd0,0)
chainloader +1
 
Thanks for the reply, but simply changing default=0 to default=1 does not do anything, it still automatically to Linux (Fedora Core 3).

Anyone else want to take a stab at it?
 
I didn't read closely enough....make that change in grub.conf
 
Thanks smah that did the job. What's the difference between the menu.lst and grub.conf files? They look to me like they contain the same information.
 
menu.lst appears to be a default configuration file. I just did a little googling and it appears that some distros use it. I checked my Red Hat ES server & it also has that file, but I know it isn't used because it's still as it was when the server was first built. I've always used grub.conf for any modifications & never really noticed menu.lst. Notice the first line of menu.lst.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top