If you are using grub as the master boot to boot a dual system (Windows & Linux), you can set Windows as the default operating system by doing the following. Adjusts the order in which two operating systems are displayed on the screen (typically, GRUB sets Linux as the default startup, and Windows displays as Dos):
1. Log on to Linux with the root account
2. The contents of vi/etc/grub.conf,grub.conf are as follows
# grub.conf generated by Anaconda
#
# so you don't have to rerun grub after making changes to this file
# notice:you do not have a/boot partition. This is means that
# all kernel and INITRD paths are relative to/, eg.
# root (hd0,4)
# kernel/boot/vmlinuz-version RO root=/dev/hdc5
# initrd/boot/initrd-version.img
#boot =/DEV/HDC
Default=0
timeout=10
Splashimage= (hd0,4)/boot/grub/splash.xpm.gz
Password--md5 $1$sefuvf4t$uet8liex0otii1lsnzglj/
Title Red Hat Linux (2.4.20-8)
Root (hd0,4)
Kernel/boot/vmlinuz-2.4.20-8 ro root=label=/
Initrd/boot/initrd-2.4.20-8.img
Title DOS
Rootnoverify (hd0,0)
Chainloader +1
3. Modify the grub.conf file to solve the startup sequence problem, the modified file is as follows
# grub.conf generated by Anaconda
#
# so you don't have to rerun grub after making changes to this file
# notice:you do not have a/boot partition. This is means that
# all kernel and INITRD paths are relative to/, eg.
# root (hd0,4)
# kernel/boot/vmlinuz-version RO root=/dev/hdc5
# initrd/boot/initrd-version.img
#boot =/DEV/HDC
Default=0
timeout=10
Splashimage= (hd0,4)/boot/grub/splash.xpm.gz
Password--md5 $1$sefuvf4t$uet8liex0otii1lsnzglj/
Title DOS
Rootnoverify (hd0,0)
Chainloader +1
Title Red Hat Linux (2.4.20-8)
Root (hd0,4)
Kernel/boot/vmlinuz-2.4.20-8 ro root=label=/
Initrd/boot/initrd-2.4.20-8.img