PDA

View Full Version : [ubuntu] 11.04 dual boot change to Ubuntu



tstephenson
October 9th, 2011, 09:30 PM
I have just installed Ubuntu 11.04 as a dual boot with WinXP. The default system is set to Windows and I want to change it to Ubuntu. I've trying doing this with Startup-Manager and it does not work. What file do I need to edit and what do I need to change.

TIA Thomas

raja.genupula
October 9th, 2011, 09:37 PM
Here you have a step by step process
https://help.ubuntu.com/community/GrubHowto/ChangeDefaultOS

go with that , all the best.

oldfred
October 9th, 2011, 09:54 PM
raja.genupula's link is to grub legacy with menu.lst.

You have grub2 and need to edit grub.

HOWTO: Grub Customizer
http://ubuntuforums.org/showthread.php?t=1664134
The Grub 2 Guide (formerly Grub 2 Basics) manual way
http://ubuntuforums.org/showthread.php?t=1195275

tstephenson
October 10th, 2011, 04:56 AM
raja.genupula's link is to grub legacy with menu.lst.

You have grub2 and need to edit grub.

HOWTO: Grub Customizer
http://ubuntuforums.org/showthread.php?t=1664134
The Grub 2 Guide (formerly Grub 2 Basics) manual way
http://ubuntuforums.org/showthread.php?t=1195275

I've tried that as well as the Startup-Manager. Here's what I show with the Customizer.

http://tstephenson.com/Ubuntu%2011.04/Screenshot.png

What do I need to manually edit to cause this system to start with Ubuntu as the default rather than WinXP?

raja.genupula
October 10th, 2011, 10:07 AM
I've tried that as well as the Startup-Manager. Here's what I show with the Customizer.

http://tstephenson.com/Ubuntu%2011.04/Screenshot.png

What do I need to manually edit to cause this system to start with Ubuntu as the default rather than WinXP?

ok follow this link
http://www.ubuntugeek.com/grub-customizer-2-2-released-and-installation-instructions-included.html

tstephenson
October 10th, 2011, 08:29 PM
ok follow this link
http://www.ubuntugeek.com/grub-customizer-2-2-released-and-installation-instructions-included.html

I have installed the Grub-Customizer 2.2.1 and I posted a link to what is shows but not matter what I do there is does not default to having Ubuntu highlighted on a re-boot. Maybe I am asking the wrong question, can changing grub enable a operating system other than Windows be selected by default on startup?

garvinrick4
October 10th, 2011, 08:59 PM
I have just installed Ubuntu 11.04 as a dual boot with WinXP. The default system is set to Windows and I want to change it to Ubuntu. I've trying doing this with Startup-Manager and it does not work. What file do I need to edit and what do I need to change.

/etc/default/grub (file)



The main configuration file for changing default settings. The following lines are available for alteration by the user.
GRUB_DEFAULT - Sets the default menu entry. Entries may be numeric, a complete menuentry quotation, or "saved"

GRUB_DEFAULT=0 Sets the default menu entry by menu position. Counting of entries is the same as in GRUB - the first "menuentry" in grub.cfg is 0, the second is 1, etc.

Note: Grub 1.99 introduces a submenu menu structure. For a menu item in a submenu, the entry becomes a two-digit entry. The first entry is the position of the submenu title in the main menu. The second entry is the position within the submenu. If the submenu is the 3rd entry in the main entry, and the user wishes to boot the first entry in the submenu, it would be designated as "2>0"


GRUB_DEFAULT="xxxx" An exact menu entry, including the quotation symbols, may also be used. In this case, location in the menu will not matter. Example: GRUB_DEFAULT="Ubuntu, Linux 2.6.31-9-generic"

In a Grub 1.99 submenu, the format would first include the submenu number, followed by the title. Example: "2>Ubuntu, Linux 2.6.38-8-generic"


GRUB_DEFAULT=saved

The information in this section applies to GRUB 1.98 and later.
Enables the "grub-reboot" and "grub-set-default" commands to set the default OS.
The default OS will not be set by an interactive selection of an OS from the menu.
grub-set-default Sets the default boot entry until changed.

The format is sudo grub-set-default X, with X being the menu entry position (starting with 0 as the first entry) or the exact menu string.
Examples: sudo grub-set-default 3 or sudo grub-set-default "Ubuntu, Linux 2.6.32-15-generic"
To obtain the existing menu entry choice number (starting from 0) or the menu entry "string", run grep menuentry /boot/grub/grub.cfg


sudo update-grub (to make permanent)
Grub2 - Community Ubuntu Documentation (https://help.ubuntu.com/community/Grub2#/etc/default/grub)
what does your grub_default=0 say if you want first in order change to 0 and sudo update-grub (0 will be Ubuntu install that is controlling grub2)

gksudo gedit /etc/default/grub
Chang to 0 and save

sudo update-grub
Done.

tstephenson
October 10th, 2011, 10:13 PM
I have installed the Grub-Customizer 2.2.1 and I posted a link to what is shows but not matter what I do there is does not default to having Ubuntu highlighted on a re-boot. Maybe I am asking the wrong question, can changing grub enable a operating system other than Windows be selected by default on startup?

I was asking the wrong question. This selection of Windows/Linux was a Windows dual boot question rather than a Ubuntu dual boot question. I just started it in let it go into windows and went to the Advanced startup options an selected the Ubuntu OS

garvinrick4
October 10th, 2011, 10:42 PM
I was asking the wrong question. This selection of Windows/Linux was a Windows dual boot question rather than a Ubuntu dual boot question. I just started it in let it go into windows and went to the Advanced startup options an selected the Ubuntu OS
You are running WUBI. Glad you are fixed up. In Title put WUBI from now on. There are
users who specialize in WUBI installs. Enjoy your Ubuntu, at least you helped yourself
to figure out your fix, good going. Enjoy your Ubuntu.