How to change GRUB 2 boot order?
Oddly, I haven't found similar question through the search function. This didn't help me either http://www.linuxreaders.com/2011/11/fedora-16-how-to-change-boot-sequence-grub2.html as the cat
command return is not so similar.
Disk partition table type: GPT
No separate boot partition.
My current default entry is:
# grub2-editenv list
saved_entry=Fedora release 18 (Spherical Cow)
I have two Fedora installs currently, and only Fedora. No other systems:
cat /boot/grub2/grub.cfg |grep Fedora
menuentry 'Fedora (3.9.6-200.fc18.x86_64)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d84f38a2-2292-4733-895b-ee4664fb8106' {
echo 'Loading Fedora (3.9.6-200.fc18.x86_64)'
menuentry 'Fedora (3.9.5-201.fc18.x86_64)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d84f38a2-2292-4733-895b-ee4664fb8106' {
echo 'Loading Fedora (3.9.5-201.fc18.x86_64)'
menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d84f38a2-2292-4733-895b-ee4664fb8106' {
submenu 'Advanced options for Fedora' $menuentry_id_option 'gnulinux-advanced-d84f38a2-2292-4733-895b-ee4664fb8106' {
menuentry 'Fedora, with Linux fedup' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-fedup-advanced-d84f38a2-2292-4733-895b-ee4664fb8106' {
menuentry 'Fedora, with Linux 3.9.4-200.fc18.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.9.4-200.fc18.x86_64-advanced-d84f38a2-2292-4733-895b-ee4664fb8106' {
menuentry 'Fedora GNU/Linux, with tboot 1.7.0 and Linux 3.9.4-200.fc18.x86_64' --class fedora --class gnu-linux --class gnu --class os --class tboot {
menuentry 'Fedora GNU/Linux, with tboot 1.7.0 and Linux 3.9.3-201.fc18.x86_64' --class fedora --class gnu-linux --class gnu --class os --class tboot {
menuentry 'Fedora GNU/Linux, with tboot 1.7.0 and Linux 3.8.11-200.fc18.x86_64' --class fedora --class gnu-linux --class gnu --class os --class tboot {
menuentry 'Fedora release 18 (Spherical Cow)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-ec3d5bbf-4b5e-435c-9e51-09443d969ea1' {
submenu 'Advanced options for Fedora release 18 (Spherical Cow)' $menuentry_id_option 'osprober-gnulinux-advanced-ec3d5bbf-4b5e-435c-9e51-09443d969ea1' {
menuentry 'Fedora (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.9.4-200.fc18.x86_64--ec3d5bbf-4b5e-435c-9e51-09443d969ea1' {
menuentry 'Fedora, with Linux 3.9.4-200.fc18.x86_64 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.9.4-200.fc18.x86_64--ec3d5bbf-4b5e-435c-9e51-09443d969ea1' {
menuentry 'Fedora, with Linux 3.9.2-200.fc18.x86_64 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.9.2-200.fc18.x86_64--ec3d5bbf-4b5e-435c-9e51-09443d969ea1' {
menuentry 'Fedora release 18 (Spherical Cow) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.9.4-200.fc18.x86_64--ec3d5bbf-4b5e-435c-9e51-09443d969ea1' {
Contents of /etc/default/grub
:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.keymap=pl2 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME="/boot/grub2/themes/system/theme.txt"
Complete /boot/grub2/grub.cfg
http://paste.fedoraproject.org/21988/06200137
http://paste.fedoraproject.org/22804/37287366/ (latest)
~$ sudo fedup --clean
~$ sudo fedup --resetbootloader
#reboot#
~$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
[sudo] password for hg1:
Generating grub.cfg ...
Found theme: /boot/grub2/themes/system/theme.txt
Found linux image: /boot/vmlinuz-3.9.6-200.fc18.x86_64
Found initrd image: /boot/initramfs-3.9.6-200.fc18.x86_64.img
Found linux image: /boot/vmlinuz-3 ...
What do you want to do exactly? Do you want to change the default OS selected in Grub2 (what is actually described in the link you posted), or you want to change the order of OSes listed in Grub2 menu?
@hedayat I'd like to change the default system. I've asked the question poorly which is also the reason why I couldn't find any related questions on ask fedora. BUT! As you see in my question my grub menu entries list is a mess so I don't know how to proceed, neither per the instructions linked in my question nor per https://ask.fedoraproject.org/question/8885/how-can-i-change-default-operating-system-in-start-up-boot-menu/ Once I get it sorted out I'll decide whether to edit my question title or to merge it with the exisiting one OR close it.
And what should become the default OS? Fedora or something else?
@hedayat
'Fedora release 18 (Spherical Cow)'
on sda2. As you can seesda2
is not even mentioned in the return. Do I get this weird return because, probably unlike most people, I use GPT (GUUID Partition Table)?And what is your default OS right now? How many Fedora installations do you have (more than one)? what is on your /dev/sda3? Do you use separate /boot partitions?