LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set the default boot to windows7? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-the-default-boot-to-windows7-4175423070/)

mvreddy 08-20-2012 09:47 AM

How to set the default boot to windows7?
 
Hi all!
I have the HP laptop Pavilion dv6-3121 loaded with dual O/S windows 7 and Fedora 16. My laptop is set to go with fedora as default boot. when I power off the system when I reboot again then only I am getting my option to enter the GRUB to go with either windows or linux. In case if I restart the machine I am not getting the GRUB options and is directly logging into fedora. As a result i am unable to logon to windows. Please help me out in this regard
Thanks in advance.

Vegan 08-20-2012 09:54 AM

edit /boot/grub/menu.lst as root.

You can change the default os to windows from there. you can also set how many seconds the boot menu shows.

suicidaleggroll 08-20-2012 11:22 AM

Quote:

Originally Posted by Vegan (Post 4759220)
edit /boot/grub/menu.lst as root.

You can change the default os to windows from there. you can also set how many seconds the boot menu shows.

On Fedora 16, that should be:
Code:

/boot/grub2/grub.cfg
Inside there, you'll find several different lines that start with "menuentry", such as:
Code:

menuentry 'Fedora (3.4.7-1.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
These are your boot options in grub, the first one is zero, and they increase from there. You set the default with the line that says 'set default="0"'. So if you have four entries, the first three are various Fedora kernel versions and the last one is Win7, you would change 'set default="0"' to 'set default="3"'.

mvreddy 09-02-2012 10:52 AM

thanks all for the kind replies.
The problem is resolved by changing the boot configuration file as suggested.


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