Welcome, Guest. Please login or register.
Did you miss your activation email?
July 31, 2010, 09:03:08 pm

Kubuntu Forums  |  Kubuntu Discussion  |  Kubuntu 9.10 Karmic Koala  |  Install and Boot  |  Topic: [SOLVED] Grub2 and boot order change 0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: [SOLVED] Grub2 and boot order change  (Read 21626 times)
bsoderror
Can't Get Enough
***
Offline Offline

Posts: 109



« on: October 29, 2009, 08:33:22 am »

I've read the grub2 tips and I'll be dipped I can't figure out what hoops I need to jump through to change the order in which my OSs boot and show up in the boot menu. Grub2 looks as though it's more configurable, but it sure isn't easier for doing simple things. Thanx for any help. Running the RC of Koala and Win 7, I want to make 7 the default OS.
« Last Edit: October 29, 2009, 01:22:36 pm by bsoderror » Logged

Being able to access the internet whilst answering a call of nature was 'one of life's most liberating experiences.'  Vic Hayes
monte48lowes
Still Lots to Learn
*****
Offline Offline

Posts: 590


WWW
« Reply #1 on: October 29, 2009, 08:44:46 am »

Quote
Timeout and Default OS, changing
The timeout is the length of time in seconds before the (highlighted) default OS is automatically booted (if you do not intervene by touching a key).  To change these values, open the file /etc/default/grub as root, make the changes, Save, exit, then generate a new  /boot/grub/grub.cfg by running sudo grub-mkconfig -o  /boot/grub/grub.cfg.

Opening /etc/default/grub as root
If your file manager supports it, open the file manager, navigate to /etc/default/grub, right-click on the file, Actions, Edit as Root.  Otherwise:
Open the file manager as root and work from there:
   kdesudo konqueror
   kdesudo dolphin
Or, open the file as root using Kate or Kwrite:
   kdesudo kate /etc/default/grub

Example
GRUB_DEFAULT=0
GRUB_TIMEOUT=5

GRUB_DEFAULT=0 selects boot entry #0 (i.e., the first entry) as the default OS to be booted automatically.  Boot entries can be seen in your /boot/grub/grub.cfg file; they start with a line
menuentry "some descriptive text"  {
and end with
 }

Boot entries are counted from zero; so the first menuentry is boot entry #0, the second menuentry is boot entry #1, etc.

Troubleshooting Tip:   Check default OS setting after grub-mkconfig
If you recently added/removed a boot entry (by editing a /etc/grub.d script) and ran grub-mkconfig to generate a new boot menu, you might have to check and edit the line "GRUB_DEFAULT= " (in /etc/default/grub) if the default sequence number changed.

(TO DO:  Check also: sudo grub-set-default N.)


More information can be found here:
http://kubuntuforums.net/forums/index.php?topic=3106368.0
Logged

Qqmike
Kubuntu Veteran
*******
Offline Offline

Posts: 3645


« Reply #2 on: October 29, 2009, 09:18:41 am »

(As explained there) it's determined by the sequence number of the script file NN_etc  (e.g., 41_CustomOS)
or/also see drs305 for grub.cfg:
http://ubuntuforums.org/showthread.php?t=1195275

Note:  you do NOT edit grub.cfg directly; you edit /etc/grub.d script file(s) (or /etc/default/grub file).
Logged

You never quite know what a Penguin
is thinking.  If he asks you for a cup of tea,
ask him what kind he prefers.
bsoderror
Can't Get Enough
***
Offline Offline

Posts: 109



« Reply #3 on: October 29, 2009, 01:23:39 pm »

Thank You both, worked like a charm!
Logged

Being able to access the internet whilst answering a call of nature was 'one of life's most liberating experiences.'  Vic Hayes
Qqmike
Kubuntu Veteran
*******
Offline Offline

Posts: 3645


« Reply #4 on: October 29, 2009, 04:37:02 pm »

Nice work there bsoderror!  Glad you got it.  Smiley
Logged

You never quite know what a Penguin
is thinking.  If he asks you for a cup of tea,
ask him what kind he prefers.
leomartin6
Always Learning
*
Offline Offline

Posts: 1


« Reply #5 on: May 06, 2010, 02:16:36 am »

Thanks. At least somebody solved that issue...  Smiley
Logged

Leo
Pages: [1] Go Up Print 
Kubuntu Forums  |  Kubuntu Discussion  |  Kubuntu 9.10 Karmic Koala  |  Install and Boot  |  Topic: [SOLVED] Grub2 and boot order change « previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.434 seconds with 15 queries.
 

MKPortal M1.1.1 ©2003-2006 mkportal.it
Page generated in 0.04275 seconds with 10 queries