Changing default boot option

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
PongGod
Level 1
Level 1
Posts: 3
Joined: Mon Feb 08, 2010 1:07 am

Changing default boot option

Postby PongGod » Tue Feb 09, 2010 9:56 pm

A Linux newbie here, just installed Mint 8 alongside my Windows 7. I'm trying to figure out how to make Windows 7 my default boot option, but not having any luck so far. Most of the articles I've found mention editing menu.lst which is supposedly found in the /boot/grub folder, but I'm not finding this file there. Is it because Mint 8 uses grub2 which works differently?

- Robert -

User avatar
Leppie
Level 4
Level 4
Posts: 447
Joined: Sun Feb 07, 2010 8:54 pm

Re: Changing default boot option

Postby Leppie » Tue Feb 09, 2010 10:08 pm

mint helena uses grub2 instead of grub legacy. menu.lst is a grub legacy file, grub2 uses the grub.cfg file.
to change the default boot entry, you will need to know the exact entry for your 7 install. check it like this:

Code: Select all

cat /boot/grub/grub.cfg | grep Windows | cut -d '"' -f 2

now open the grub defaults file with a text editor:

Code: Select all

gksudo nano /etc/default/grub

modify the following line as indicated substituting the entry with the exact output of the previous command:

Code: Select all

GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"

save and exit the file, then run update-grub:

Code: Select all

sudo update-grub

your machine should now by default boot into 7.
Cleanflash: resolve your flash issues the easy way

User avatar
Aging Technogeek
Level 13
Level 13
Posts: 4595
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: Changing default boot option

Postby Aging Technogeek » Tue Feb 09, 2010 10:10 pm

Get startup manager from Synaptic Package Manager (search "startupmanager" without quotes). It will give you a nice GUI way to change several things in the Grub menu.
Registered Linux User 483387

PongGod
Level 1
Level 1
Posts: 3
Joined: Mon Feb 08, 2010 1:07 am

Re: Changing default boot option

Postby PongGod » Tue Feb 09, 2010 11:31 pm

Thanks for the great suggestions. But I eventually managed to figure it out with help from this posting: http://kubuntuforums.net/forums/index.p ... =3107328.0. I'll definitely look for that startup manager utility.

- Robert -


Return to “Installation & Boot”

Who is online

Users browsing this forum: nannimanfrin and 8 guests