PDA

View Full Version : Make GRUB boot Windows as a default OS?



Trifud
December 9th, 2009, 10:34 PM
I have Windows alongside Ubuntu and I would like to make Windows boot in 5 seconds after GRUB has been loaded. How do I do that?

adaucourt
December 9th, 2009, 10:36 PM
I have Windows alongside Ubuntu and I would like to make Windows boot in 5 seconds after GRUB has been loaded. How do I do that?

Here is documentation:
https://help.ubuntu.com/community/GrubHowto
https://help.ubuntu.com/community/WindowsDualBoot

Trifud
December 9th, 2009, 11:07 PM
Obviously that information is out of date. For example I don't have a file called menu.list.

darkod
December 9th, 2009, 11:39 PM
Count the position of the windows entry in grub menu.
In terminal open:
sudo gedit /etc/default/grub

Change the value for GRUB_DEFAULT to the position of windows entry less one (if windows is 5th in grub menu put 4).
Change value of GRUB_TIMEOUT to how many seconds you want it to wait

Save and close the file. Run
sudo update-grub

Note: If with an update more kernel entries are added, you will have to change the value for Default again.

gadolinio
December 10th, 2009, 12:15 AM
Go to http://packages.ubuntu.com/search?
In the text box on the upper right corner search for "startupmanager" and choose the package for your version.
Once installed, the application will be in system-->administration-->startup manager.
You'll be asked for your user password.
The application has a list where you can select any of your currently installed OS's to be the default one. And you can also set the time befor booting that default OS.

phillw
December 10th, 2009, 12:38 AM
Go to http://packages.ubuntu.com/search?
In the text box on the upper right corner search for "startupmanager" and choose the package for your version.
Once installed, the application will be in system-->administration-->startup manager.
You'll be asked for your user password.
The application has a list where you can select any of your currently installed OS's to be the default one. And you can also set the time befor booting that default OS.

I got it from Synaptics Package Manager - once you'd given the name for it

That's so cute, it's naughty !!!!

Thanks, that is one heck of a little add-on !!

Phill.

darkod
December 10th, 2009, 12:41 AM
I got it from Synaptics Package Manager - once you'd given the name for it

That's so cute, it's naughty !!!!

Thanks, that is one heck of a little add-on !!

Phill.

Not to ruin the party but I've seen opinions that it still has glitches working with grub2. It seems well tuned for grub1 but can create issues for grub2. Maybe if you change just some particular settings, don't know.

phillw
December 10th, 2009, 12:44 AM
Not to ruin the party but I've seen opinions that it still has glitches working with grub2. It seems well tuned for grub1 but can create issues for grub2. Maybe if you change just some particular settings, don't know.

kewl... i can practice repairing grub. I could do with the practice - only ever broke it once (on my upgrade from grub --> grub2) :p

lol

Phill.

adaucourt
December 11th, 2009, 07:39 PM
Obviously that information is out of date. For example I don't have a file called menu.list.

Since you are pointing out the obvious you might have wanted to pay attention to the giant heading that says:
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=important.png Note: These directions do not apply to Karmic -- Karmic uses Grub 2. See Grub2 (https://help.ubuntu.com/community/Grub2) for Karmic.

Trifud
December 11th, 2009, 07:44 PM
Aham, how do I install GRUB 2 to the boot record of the partition instead of the MBR ...from a live USB flash?

presence1960
December 11th, 2009, 08:41 PM
Go to http://packages.ubuntu.com/search?
In the text box on the upper right corner search for "startupmanager" and choose the package for your version.
Once installed, the application will be in system-->administration-->startup manager.
You'll be asked for your user password.
The application has a list where you can select any of your currently installed OS's to be the default one. And you can also set the time befor booting that default OS.

+1

Startup manager is a good choice for those not wishing to have Ubuntu be the default since the default OS # is determined by the position in the OS order in GRUB. With every Ubuntu kernel update the Windows entry number will change as it will slide further down in the order and then you will have to edit GRUB again to have windows be default. With start up manager that is not necessary.

meierfra.
December 12th, 2009, 03:19 AM
then you will have to edit GRUB again to have windows be default.

This is only true if you refer to Windows by its number. But Grub 2 also lets you use the title. Suppose your Windows title is "Windows Vista (on /dev/sda1)". Then you can use

GRUB_DEFAULT="Windows Vista (on /dev/sda1)"

in /etc/grub/default, and you won't have to edit Grub after kernel updates.

presence1960
December 12th, 2009, 03:44 AM
This is only true if you refer to Windows by its number. But Grub 2 also lets you use the title. Suppose your Windows title is "Windows Vista (on /dev/sda1)". Then you can use

GRUB_DEFAULT="Windows Vista (on /dev/sda1)"

in /etc/grub/default, and you won't have to edit Grub after kernel updates.

You are the man. I have learned two things about GRUB 2 in two days. I am not trying to suck up, but I feel I have to say this: back about a year or so ago people like you and caljohnsmith really helped me learn a lot from your posts in here. I would read everything I could that you two wrote. I haven't seen you two in here very often lately, but your input is always welcomed.

meierfra.
December 12th, 2009, 04:21 AM
You are the man.

Thanks for your vote of confidence. But the GRUB_DEFAULT="Windows Vista (on /dev/sda1)" trick is straight from drs205's Grub2 Guide (http://ubuntuforums.org/showthread.php?t=1195275)

presence1960
December 12th, 2009, 04:25 AM
Thanks for your vote of confidence. But the GRUB_DEFAULT="Windows Vista (on /dev/sda1)" trick is straight from drs205's Grub2 Guide (http://ubuntuforums.org/showthread.php?t=1195275)

I hear you, but most of what is taught we each learned from someone else and pass it on. Some choose to not share their knowledge. So for that I commend you.

darkod
December 12th, 2009, 12:00 PM
This is only true if you refer to Windows by its number. But Grub 2 also lets you use the title. Suppose your Windows title is "Windows Vista (on /dev/sda1)". Then you can use

GRUB_DEFAULT="Windows Vista (on /dev/sda1)"

in /etc/grub/default, and you won't have to edit Grub after kernel updates.

Yeap, thanks from me too. Didn't know that.

guimaster
December 13th, 2009, 01:15 AM
+1

Startup manager is a good choice for those not wishing to have Ubuntu be the default since the default OS # is determined by the position in the OS order in GRUB. With every Ubuntu kernel update the Windows entry number will change as it will slide further down in the order and then you will have to edit GRUB again to have windows be default. With start up manager that is not necessary.

I just reinstalled Xubuntu 9.10 and I have been searching for an hour trying to find an old thread that explains how to make Windows the default boot with two easy Terminal commands. No installing of Startup Manager or any editing of files.

The thread is located here: http://ubuntuforums.org/showthread.php?t=1287414&highlight=grub+2+easy+windows+boot+default

This thread worked for me before just fine so I want to keep it alive at the top of Google searches. This thread works great for me with XP SP3.

presence1960
December 13th, 2009, 04:08 AM
I just reinstalled Xubuntu 9.10 and I have been searching for an hour trying to find an old thread that explains how to make Windows the default boot with two easy Terminal commands. No installing of Startup Manager or any editing of files.

The thread is located here: http://ubuntuforums.org/showthread.php?t=1287414&highlight=grub+2+easy+windows+boot+default

This thread worked for me before just fine so I want to keep it alive at the top of Google searches. This thread works great for me with XP SP3.

That will work also. That is the power of Linux. For most things we want to accomplish there is almost always more than one way to do so.

P.S actually you did edit a file through terminal. You moved and changed the name of 30_os-prober file. You didn't edit the contents but you edited it's location & file name.