LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   solution 2 make windows boot automatically (https://www.linuxquestions.org/questions/linux-newbie-8/solution-2-make-windows-boot-automatically-648428/)

sijoyjos 06-10-2008 11:28 PM

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....:confused:

jay73 06-10-2008 11:43 PM

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.

sijoyjos 06-11-2008 06:40 AM

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

jay73 06-11-2008 08:08 AM

/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


All times are GMT -5. The time now is 04:44 AM.