grub boot order
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Mon Apr 30 18:15:14 UTC 2012
I don't now this customizer thingy and I don't care about all those
GRUB2 files for automatically generating grub.cfg.
1.
I recommend to switch from GRUB 2 to GRUB Legacy. You need to be the
administrator (root) to edit the GRUB file(s). On Ubuntu Studio "sudo"
is the command to get admin privileges.
2.1.
If you keep GRUB 2 with grub.cfg, than you'll find something like
spinymouse at precise:~$ sudo -i
[sudo] password for spinymouse:
root at precise:~# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
[snip]
menuentry 'Ubuntu, with Linux 3.2.0-23-lowlatency' --class ubuntu
--class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root
338316fb-364e-4a43-8deb-738127f878ce
linux /boot/vmlinuz-3.2.0-23-lowlatency
root=UUID=338316fb-364e-4a43-8deb-738127f878ce ro
crashkernel=384M-2G:64M,2G-:128M quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-lowlatency
}
menuentry 'Ubuntu, with Linux 3.2.0-23-lowlatency (recovery mode)'
--class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root
338316fb-364e-4a43-8deb-738127f878ce
echo 'Loading Linux 3.2.0-23-lowlatency ...'
linux /boot/vmlinuz-3.2.0-23-lowlatency
root=UUID=338316fb-364e-4a43-8deb-738127f878ce ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-lowlatency
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root
338316fb-364e-4a43-8deb-738127f878ce
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root
338316fb-364e-4a43-8deb-738127f878ce
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Rt -- openSUSE 11.2 - 2.6.31.6-rt19 (on /dev/sda7)" --class
gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root
e14edd28-428e-4413-a43d-9e6cb473d2da
linux /boot/vmlinuz-2.6.31.6-rt19 root=/dev/sda7
initrd (hd1,6)/boot/initrd-2.6.31.6-rt19
}
[snip]
You're allowed to change the order of the entries.
2.2.
If you switch to GRUB Legacy like I did (in my case for the Ubuntu
Studio version I installed before and that I still use), than you'll
find entries similar to this
root at precise:~# cat /media/oz/boot/grub/menu.lst
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
# /dev/sda3 (hd0,2)
#
# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
# for more details and different resolutions see
# https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution
# general configuration:
timeout 5
default 0
color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel
line.
#
#-*
title Ubuntu Studio Precise, Kernel 3.2.0-23-lowlatency
root=(hd1,0)
kernel /boot/vmlinuz-3.2.0-23-lowlatency
root=UUID=338316fb-364e-4a43-8deb-738127f878ce ro quiet threadirqs
initrd /boot/initrd.img-3.2.0-23-lowlatency
title AVlinux 5.0.3, Kernel 3.0.23-rt40
root=(hd1,10)
kernel /boot/vmlinuz-3.0.23-rt40 root=/dev/sdb11 ro quiet
initrd /boot/initrd.img-3.0.23-rt40
title AVlinux 5.0.3, Kernel 3.0.23-avl-7-pae
root=(hd1,10)
kernel /boot/vmlinuz-3.0.23-avl-7-pae root=/dev/sdb11 ro threadirqs
quiet
initrd /boot/initrd.img-3.0.23-avl-7-pae
title Edubuntu 10.10, Kernel 2.6.33.9-rt31
root=(hd1,7)
kernel /boot/vmlinuz-2.6.33.9-rt31
root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro
initrd /boot/initrd.img-2.6.33.9-rt31
title Ubuntu Studio Oz, Kernel 3.0.0-17-generic
root=(hd1,5)
kernel /boot/vmlinuz-3.0.0-17-generic
root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6
initrd /boot/initrd.img-3.0.0-17-generic
title Ubuntu Studio Oz, Kernel 3.0.0-16-generic
root=(hd1,5)
kernel /boot/vmlinuz-3.0.0-16-generic
root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6
initrd /boot/initrd.img-3.0.0-16-generic
#title Linux Mint Lisa, Kernel 3.0.0-15-generic
#root (hd1,0)
#kernel /boot/vmlinuz-3.0.0-15-generic root=/dev/sdb1
#initrd /boot/initrd.img-3.0.0-15-generic
# (0) Arch Linux Rt
title Arch Linux Rt
root (hd0,8)
kernel /boot/vmlinuz-linux-rt root=/dev/sda9 ro
initrd /boot/initramfs-linux-rt.img
# (1) Arch Linux Rt
title Arch Linux Rt Fallback
root (hd0,8)
kernel /boot/vmlinuz-linux-rt root=/dev/sda9 ro
initrd /boot/initramfs-linux-fallback-rt.img
# (2) Arch Linux
title Arch Linux
root (hd0,8)
kernel /boot/vmlinuz-linux root=/dev/sda9 ro
initrd /boot/initramfs-linux.img
# (3) Arch Linux
title Arch Linux Fallback
root (hd0,8)
kernel /boot/vmlinuz-linux root=/dev/sda9 ro
initrd /boot/initramfs-linux-fallback.img
# (4) openSUSE 11.2
title openSUSE 11.2, Kernel 2.6.31.6-rt19
root (hd0,6)
kernel /boot/vmlinuz-2.6.31.6-rt19 root=/dev/sda7
initrd /boot/initrd-2.6.31.6-rt19
# (2) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
[snip]
You can change the order or edit anything else. If you have any
questions about the meanings of the entries, than the mailing list and
Google are your friends.
Regards,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20120430/1a297b5d/attachment-0001.html>
More information about the Ubuntu-Studio-users
mailing list