[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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
title CentOS (2.6.18-194.el5)
kernel /boot/vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
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
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..?