LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 03-31-2010, 12:18 PM   #1
pssmba
LQ Newbie
 
Registered: Mar 2010
Location: Hyderabad, India
Distribution: RedHat, Mandrake
Posts: 3

Rep: Reputation: 0
Smile Editing grub.conf to make Windows default in dual boot


Hi,

I installed Windows XP Pro and RedHat Linux Enterprise 5 on my PC for my purpose. The PC is used by other family members too and they need only Windows OS for browsing. It is becoming problem for them to reboot after the PC enters into Linux by default.

I am still learning Linux and I want to edit the /boot/grub.conf file to make Windows as default OS to boot.

Please help me..

Thanks,
Siva Sankar.

The following is the content of my grub.conf file (FYI):

#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-164.15.1.el5)
root (hd0,5)
kernel /vmlinuz-2.6.18-164.15.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-164.15.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-92.el5)
root (hd0,5)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.el5.img
title Windows
rootnoverify (hd0,0)
chainloader +1
 
Old 03-31-2010, 12:23 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
All you have to do is change this line:
default=0
Right now, it says to boot the first entry by default (grub counts from zero)

default=2, to boot Windows by default.
 
Old 03-31-2010, 12:30 PM   #3
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Change:
Code:
default=0
to:
Code:
default=2
I would also consider decreasing your timeout entry to 5 secs so your family members have less time to hit a key which would alter the boot process.

Cheers, Lou

Last edited by LouRobytes; 03-31-2010 at 01:22 PM.
 
Old 03-31-2010, 12:32 PM   #4
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Man, some people are quick.
 
Old 04-04-2010, 05:54 AM   #5
pssmba
LQ Newbie
 
Registered: Mar 2010
Location: Hyderabad, India
Distribution: RedHat, Mandrake
Posts: 3

Original Poster
Rep: Reputation: 0
Smile Thank you all

Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make XP boot as default OS in WinXP-Ubuntu dual boot system svin Ubuntu 14 11-04-2009 04:49 PM
Grub.conf / Dual boot ?!! haiders Linux - Newbie 14 12-12-2006 03:18 PM
Is there a command to boot a different OS on reboot without editing grub.conf? wpg9210 Linux - General 2 03-23-2006 08:24 AM
how to configur grub.conf file for dual boot? den-den Linux - General 2 08-23-2005 02:49 PM
grub.conf - Trying to dual boot XP and FC2 LogicNZ Linux - Newbie 4 07-01-2004 03:01 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration