LinuxQuestions.org
Visit Jeremy's Blog.
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 06-10-2008, 11:28 PM   #1
sijoyjos
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Exclamation solution 2 make windows boot automatically


hi..2 days before i installed fedora 8 it works fine and i liked its appearance...but the problem is the os have not detected my internal modem and i am unable to access the net.....nd other problem is that my system now automatically boots to linux unless specified....but all others at my home use windows XP....so i need windows to boot and to be taken as default OS by my system....what should i do to get it done....
 
Old 06-10-2008, 11:43 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Edit your /boot/grub/menu.lst file. You should change the value of default (should be 0 now) by the number of the entry in the menu.lst that points to XP. If it is the second one, use 1, or if it is the third one, use 2 ... You can open menu.lst for editing with sudo gedit /boot/grub/menu.list if you use Gnome.
 
Old 06-11-2008, 06:40 AM   #3
sijoyjos
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

thankz for ur detailed explanation nyway i located the above mentioned file....but i don get that sudo gedit stuff.....plz explain abt it also...waitin for ur reply....THANKZ...SIJO
 
Old 06-11-2008, 08:08 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
/boot/grub/menu.lst is a system file, which means that it cannot be edited by a regular user - you can view it fine but it will refuse to save any changes. That is why you need to open it with the sudo command, which give you administrator powers. As for gedit, that is just and editor so "sudo gedit /boot/grub/menu.list" means "open the menu.lst in gedit with administrator powers" - then changes will be saved. All commands entered in the terminal (Applications > Accesories if you use Gnome).
Gedit, however, is a Gnome application. If you use KDE rather than Gnome, you'll need to use a different editor (probably kedit or kate).
Now the file has an entry called "default". If you look further down the file, you'll see one or more entries for your Linux distro as well as one for XP. Each of those appears in GRUB (although, strictly speaking, it is only the "title" of each item that is shown, the rest is used under the covers by the system). In order to make a different OS boot by default, you need to replace the value of default (0) with the the number of the alternative entry you want to boot by default. As grub counts from 0, the first one is 0, the second would be 1, the third one 2, etc.
Before making any changes, it is stronlgy recommended to make a back-up so that the original menu.lst can easily be restored. You can do that with:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
This copies the original menu.lst to a file called menu.lst.bak
 
  


Reply

Tags
doubt


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
where is the option to make Windows boot first? newbiesforever MEPIS 2 04-10-2007 02:47 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 04:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 12:37 PM
New LILO version automatically make windows partitions hidden changing it with cfdisk TroelsSmit Linux - General 5 02-21-2004 02:50 AM
How can i make xfree86 start automatically at boot? KiLLaWaBBiT Linux - Software 1 04-07-2003 11:06 AM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration