Page 1 of 1

How to set Grub to boot Windows by default? [SOLVED]

Posted: Wed 02 Jan 2013, 19:46
by Kharl
Hi!
i have laptop with windows 7 and puppy linux.

but to enter to the highlighted OS i have to hit enter.
I have another laptop with win 7, xubuntu and puppy, and i left xubuntu's grub (grub 2) to manage it all, and i set it up so it boot to windows after 2 secs...
how can i do that with the grubs that come with puppy?




Happy new year btw!

Posted: Thu 03 Jan 2013, 18:28
by capicoso
I may be wrong. But grub doesn't have a counting feature... I don't know what puppy you have, but you could download shinobars grub4dos config. This will install grub4dos, it looks like grub but it also has a timer. When you install it, it'll show you what it found. Puppy will be at top by default. You then have to edit menu.lst, it should be in sda1 /menu.lst. And search for the windows part, cut and paste it over the puppy part.

If you do this but you're not sure about the editing part, just copy menu.lst here and i tell you which part you have to cut and paste.

Posted: Thu 03 Jan 2013, 18:41
by rjbrewer
In boot/grub/menu.lst, a line near the beginning says;
# timeout 30.
Remove #
Change 30 to the amount of seconds of pause you want.
If Win is installed to 1st partition it wil boot 1st.

This is for regular grub; not grub4dos.

Posted: Fri 04 Jan 2013, 13:14
by ICPUG
rjbrewer wrote:In boot/grub/menu.lst, a line near the beginning says;
# timeout 30.
Remove #
Change 30 to the amount of seconds of pause you want.
If Win is installed to 1st partition it wil boot 1st.

This is for regular grub; not grub4dos.
Strange - I thought that in legacy grub and grub4dos what was booted by default was determined by the line:

default=N

in the menu.lst file, not by where the OS resides.

N should be replaced by a number indicating which entry within menu.lst is to be booted by default. The counting starts from 0, not 1, so to boot the first entry in menu.lst add the following line to menu.lst at the top:

default=0

Posted: Fri 04 Jan 2013, 19:04
by rjbrewer
ICPUG wrote:
rjbrewer wrote:In boot/grub/menu.lst, a line near the beginning says;
# timeout 30.
Remove #
Change 30 to the amount of seconds of pause you want.
If Win is installed to 1st partition it wil boot 1st.

This is for regular grub; not grub4dos.
Strange - I thought that in legacy grub and grub4dos what was booted by default was determined by the line:

default=N

in the menu.lst file, not by where the OS resides.
I only use legacy grub.
I don't recall ever seeing a "default" line in menu.lst.

It can be useful for changing the default highlighted
partition.

I add the line right above the "timeout" line if wanted.

Posted: Sat 05 Jan 2013, 06:52
by Kharl
Thanks for the answer guys, ill try it within few hours then ill reply

Posted: Sat 05 Jan 2013, 16:37
by Kharl
rjbrewer wrote:In boot/grub/menu.lst, a line near the beginning says;
# timeout 30.
Remove #
Change 30 to the amount of seconds of pause you want.
If Win is installed to 1st partition it wil boot 1st.

This is for regular grub; not grub4dos.
Oh yeahh.. that sove it!!
GREAT!! i didnt wanted to install ubuntu just to fix that, couple of years i just usedto install ubuntu for its grub2 when i only needed a tiny reliable OS for when windows fails.

Thank, a hug for you!


capicoso and ICPUG, thank you for your answers too, i appreciate your effort!

Have a great days guys!