[SOLVED] Wish to make Windows the default OS instead of Centos 5.5
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Wish to make Windows the default OS instead of Centos 5.5
I have a dual boot PC, installed Win XP first, then Centos 5.5
While installing Centos, I set Centos as default. So at boot up time, it does give a choice of selecting from the two if pressed any key, otherwise boots Centos.
Now I wish to set it in such a way that Windows is the default OS to boot.
My grub.conf file:--
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/sda6
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5)
root (hd0,5)
kernel /boot/vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-194.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
I understand I have to edit grub.conf (change the default value to something else other than 0), but don't know what should I set it to.. How can i know information for my Windows partitions as well.
I run fdisk and get the output as follows but can't decide which value is to be set.. Should it be 1 cos Windows C drive is sda1 --
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 2612 19456 135307462+ f W95 Ext'd (LBA)
/dev/sda5 2612 5222 20972826 7 HPFS/NTFS
/dev/sda6 5223 7833 20972826 83 Linux
/dev/sda7 7834 8355 4192933+ 83 Linux
/dev/sda8 8356 8546 1534176 82 Linux swap / Solaris
/dev/sda9 8547 8677 1052226 83 Linux
Hey Chris, issue solved..but can u please further explain to me the whole output of fdisk above?
And what's that * in front of the first partition and why is it not in front of other partitions?
And if Centos was the default OS then why is default set to 0 and not 6,7, or 9?
Guys please reply..i am curious to know things and sleep won't come to me if I don't get the answers.. LOL! Please don't deprive me of sleep, be humane.. :-P
it's not the partition, it's the number in the grub.conf list, which starts at zero.
hmm... pardon me, but this is sort of confusing.. what do you mean by "number in the grub.conf list which starts at zero"..? If that's not related to the sda numbers then why changing these numbers changes the default OS..? Can you please explain in more simple manner..?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.