Grub - Boot Sequence.

August 10th, 2012 - 02:28 am ET by Kanjana | Report spam
Hi Guys/Gals,

I just removed Linux Mint 13 (Maya) from my machine and successfully
replaced it with LMDE 201204 with Mate and Mint menu.

I then installed Ubuntu 12.04 LTS and have now a workable dual-boot
set-up, however the grub menu displays Ubuntu before LMDE.

I wanted to change the boot sequence so that LMDE starts-up first
(automatically after about 10 seconds or so).

So, I went into the Ubuntu Teminal:

sudo gedit /etc/etc/default/grub

to edit the file accordingly but this proved to be a little too
confusing & complex for my limited knowledge (I can not identify the
right items to move). I then looked at "info -f grub" but this is all
too technical for me also. Before botching up the grub menu could
somebody please have a look at the document and change it so that LMDE
starts up before Ubuntu, thanks.

Start of document.
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODEd0x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to
Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
End of document.
email Follow the discussionReplies 27 repliesReplies Make a reply

Similar topics

Replies

#1 Kees Theunissen
August 10th, 2012 - 03:18 am ET | Report spam
Kanjana wrote:
Hi Guys/Gals,

I just removed Linux Mint 13 (Maya) from my machine and successfully
replaced it with LMDE 201204 with Mate and Mint menu.

I then installed Ubuntu 12.04 LTS and have now a workable dual-boot
set-up, however the grub menu displays Ubuntu before LMDE.

I wanted to change the boot sequence so that LMDE starts-up first
(automatically after about 10 seconds or so).



You can't change the the ordering of the items in the boot menu
as far as I know (unless you change the scripts generating the
menu). But you can specify which menu item must be selected by
default.

So, I went into the Ubuntu Teminal:

sudo gedit /etc/etc/default/grub

to edit the file accordingly but this proved to be a little too
confusing & complex for my limited knowledge (I can not identify the
right items to move). I then looked at "info -f grub" but this is all
too technical for me also. Before botching up the grub menu could
somebody please have a look at the document and change it so that LMDE
starts up before Ubuntu, thanks.

Start of document.
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'



So start: info -f grub -n 'Simple configuration'
and look for GRUB_DEFAULT

GRUB_DEFAULT=0



This says that the first menu item must be selected by default. Items
are counted from 0. "0" is the first item, "1" the second, and so on.
Instead of specifying a number you can also give the full name of the
menu item you want to select.


Regards,

Kees.

Kees Theunissen.
Replies Reply to this message
#2 Sherman Croud
August 10th, 2012 - 03:51 am ET | Report spam
On 10/08/12 14:18, Kees Theunissen wrote:
Kanjana wrote:
Hi Guys/Gals,

I wanted to change the boot sequence so that LMDE starts-up first
(automatically after about 10 seconds or so).



This says that the first menu item must be selected by default. Items
are counted from 0. "0" is the first item, "1" the second, and so on.
Instead of specifying a number you can also give the full name of the
menu item you want to select.



Would I have a home-run if I were to change the script like this?

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0

Please confirm or correct, thanks.
Replies Reply to this message
#3 Ole Christensen
August 10th, 2012 - 06:06 am ET | Report spam
On 2012-08-10 08:28, Kanjana wrote:
Hi Guys/Gals,

I just removed Linux Mint 13 (Maya) from my machine and successfully
replaced it with LMDE 201204 with Mate and Mint menu.

I then installed Ubuntu 12.04 LTS and have now a workable dual-boot
set-up, however the grub menu displays Ubuntu before LMDE.

I wanted to change the boot sequence so that LMDE starts-up first
(automatically after about 10 seconds or so).



You could do it like this:
Booting LMDE,...
# sudo grub-install /dev/sdX, (where X most likely are a, (sda)),
now You boot default to LMDE,...

Then, if, LMDE are based on Debian install StartUp-Manager,...
(anybody know why this disappear from Ubuntu,...?)

Then i change 3 lines in /etc/default/grub to this:

GRUB_DISTRIBUTOR=`lsb_release -d -s 2> /dev/null || echo Debian`
GRUB_DISABLE_LINUX_UUID=true # i hate UUID
GRUB_DISABLE_RECOVERY="true" # if more than one dist don't need

and # sudo update-grub
(must be done for all dist installed)

<ole>
Replies Reply to this message
#4 Kees Theunissen
August 10th, 2012 - 07:28 am ET | Report spam
Sherman Croud wrote:
On 10/08/12 14:18, Kees Theunissen wrote:
Kanjana wrote:
Hi Guys/Gals,





I wanted to change the boot sequence so that LMDE starts-up first
(automatically after about 10 seconds or so).





This says that the first menu item must be selected by default. Items
are counted from 0. "0" is the first item, "1" the second, and so on.
Instead of specifying a number you can also give the full name of the
menu item you want to select.



Would I have a home-run if I were to change the script like this?



For home-runs you need to play aonther kind of game. ;-)

Are you the original poster BTW?. Conversation will be easier if
participants use the same name during the whole thread.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0



I don't see any difference, apart from the line ordering,
between this and the similar part from the original message.
Changing the order of the statements in /etc/default/grub
won't influence the boot menu.

Adjust the value of GRUB_DEFAULT to select a different boot
menu item as default.
GRUB_DEFAULT=0 selects the first item of the boot menu,
GRUB_DEFAULT=1 selects the second item,
GRUB_DEFAULT=2 selects the third item, etc.

Run 'update-grub' afterwards as mentioned in the start of the document.


Regards,

Kees.

Kees Theunissen.
Replies Reply to this message
#5 Lars Enderin
August 10th, 2012 - 07:45 am ET | Report spam
2012-08-10 13:28, Kees Theunissen skrev:
Sherman Croud wrote:
On 10/08/12 14:18, Kees Theunissen wrote:
Kanjana wrote:
Hi Guys/Gals,





I wanted to change the boot sequence so that LMDE starts-up first
(automatically after about 10 seconds or so).





This says that the first menu item must be selected by default. Items
are counted from 0. "0" is the first item, "1" the second, and so on.
Instead of specifying a number you can also give the full name of the
menu item you want to select.



Would I have a home-run if I were to change the script like this?



For home-runs you need to play aonther kind of game. ;-)

Are you the original poster BTW?. Conversation will be easier if
participants use the same name during the whole thread.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0



I don't see any difference, apart from the line ordering,
between this and the similar part from the original message.
Changing the order of the statements in /etc/default/grub
won't influence the boot menu.

Adjust the value of GRUB_DEFAULT to select a different boot
menu item as default.
GRUB_DEFAULT=0 selects the first item of the boot menu,
GRUB_DEFAULT=1 selects the second item,
GRUB_DEFAULT=2 selects the third item, etc.



This is what I use to boot with the same system as I did the last time:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT="true"



Run 'update-grub' afterwards as mentioned in the start of the document.



Lars Enderin
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search