Grub Setting on Ubuntu 9.10 Karmic Koala
GRand Unified Bootloader it is the software responsible for loading and transferring control to the operating system kernel during the initial boot. On the Koala Karmic is using GRUB version 2. On this version there is a bit different on file configuration. On last version, all of the GRUB configuration can we see on file
‘/boot/grub/menu.list’. On this version, the configuration file is on this path :
vmlinuz@linuz:~$ sudo gedit /etc/default/grub
01 |
# If you change this file, run 'update-grub' afterwards to update |
02 |
# /boot/grub/grub.cfg. |
05 |
#GRUB_HIDDEN_TIMEOUT=10 |
06 |
#GRUB_HIDDEN_TIMEOUT_QUIET=true |
08 |
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` |
09 |
GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash" |
12 |
# Uncomment to disable graphical terminal (grub-pc only) |
13 |
#GRUB_TERMINAL=console |
15 |
# The resolution used on graphical terminal |
16 |
# note that you can use only modes which your graphic card supports via VBE |
17 |
# you can see them in real GRUB with the command `vbeinfo' |
20 |
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux |
21 |
#GRUB_DISABLE_LINUX_UUID=true |
23 |
# Uncomment to disable generation of recovery mode menu entrys |
24 |
#GRUB_DISABLE_LINUX_RECOVERY="true" |
This file contain GRUB setting variable. You can make any change setting of this variable to make the GRUB running as you want. Beware that after you editing this file, you must running the update-grub syntax on console to update the GRUB setting.
If you want to change the list of the Boot Menu, you can edit on this path :
vmlinuz@linuz:~$ sudo gedit /boot/grub/grub.cfg
02 |
# DO NOT EDIT THIS FILE |
04 |
# It is automatically generated by /usr/sbin/grub-mkconfig using templates |
05 |
# from /etc/grub.d and settings from /etc/default/grub |
08 |
### BEGIN /etc/grub.d/00_header ### |
09 |
if [ -s /boot/grub/grubenv ]; then |
14 |
if [ ${prev_saved_entry} ]; then |
15 |
saved_entry=${prev_saved_entry} |
18 |
save_env prev_saved_entry |
22 |
search --no-floppy --fs-uuid -- set 15ed4e71-1d78-4ed8-9855-3b3771861ce9 |
23 |
if loadfont /usr/share/grub/unicode.pf2 ; then |
27 |
if terminal_output gfxterm ; then true ; else |
28 |
# For backward compatibility with versions of terminal.mod that don't |
29 |
# understand terminal_output |
33 |
if [ ${recordfail} = 1 ]; then |
38 |
### END /etc/grub.d/00_header ### |
40 |
### BEGIN /etc/grub.d/05_debian_theme ### |
41 |
set menu_color_normal=white/black |
42 |
set menu_color_highlight=black/white |
43 |
### END /etc/grub.d/05_debian_theme ### |
45 |
### BEGIN /etc/grub.d/10_linux ### |
46 |
menuentry "Ubuntu, Linux 2.6.31-14-generic" { |
48 |
if [ -n ${have_grubenv} ]; then save_env recordfail; fi |
52 |
search --no-floppy --fs-uuid -- set 15ed4e71-1d78-4ed8-9855-3b3771861ce9 |
53 |
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=15ed4e71-1d78-4ed8-9855-3b3771861ce9 ro quiet splash |
54 |
initrd /boot/initrd.img-2.6.31-14-generic |
56 |
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" { |
58 |
if [ -n ${have_grubenv} ]; then save_env recordfail; fi |
61 |
search --no-floppy --fs-uuid -- set 15ed4e71-1d78-4ed8-9855-3b3771861ce9 |
62 |
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=15ed4e71-1d78-4ed8-9855-3b3771861ce9 ro single |
63 |
initrd /boot/initrd.img-2.6.31-14-generic |
65 |
### END /etc/grub.d/10_linux ### |
67 |
### BEGIN /etc/grub.d/20_memtest86+ ### |
68 |
menuentry "Memory test (memtest86+)" { |
69 |
linux16 /boot/memtest86+.bin |
71 |
menuentry "Memory test (memtest86+, serial console 115200)" { |
72 |
linux16 /boot/memtest86+.bin console=ttyS0,115200n8 |
74 |
### END /etc/grub.d/20_memtest86+ ### |
76 |
### BEGIN /etc/grub.d/30_os-prober ### |
77 |
menuentry "Windows Vista (loader) (on /dev/sda2)" { |
80 |
search --no-floppy --fs-uuid -- set 5220fd0220fcedbb |
83 |
if [ ${timeout} != -1 ]; then |
84 |
if sleep --interruptible 3 ; then |
88 |
### END /etc/grub.d/30_os-prober ### |
90 |
### BEGIN /etc/grub.d/40_custom ### |
91 |
# This file provides an easy way to add custom menu entries. Simply type the |
92 |
# menu entries you want to add after this comment. Be careful not to change |
93 |
# the 'exec tail' line above. |
94 |
### END /etc/grub.d/40_custom ### |
If you want to hide the boot menu on GRUB 2, you must do little more things like this one.
vmlinuz@linuz:~$ sudo gedit /etc/grub.d/30_os-prober
28 |
if [ "x${found_other_os}" = "x" ] ; then |
29 |
if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then |
30 |
if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then |
36 |
if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then |
38 |
if [ \${timeout} != -1 ]; then |
40 |
if keystatus -- shift ; then |
46 |
if sleep $verbose --interruptible 3 ; then |
55 |
if [ \${timeout} != -1 ]; then |
56 |
if sleep $verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then |