Avatar of JeffBeall
JeffBeall
Flag for United States of America asked on

fedora boot order

I installed fedora ( I think it's version 19 ) on two partitions of my laptop. I will use one to get emails and stuff, and the other for banking.
the problem is the install of fedora i want to be the default if not the default. /etc/default/grub looks like this.

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 vconsole.keymap=us $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root rhgb quiet"
GRUB_DISABLE_RECOVERY="true"

I have been googleing but can't find how to change the boot order. Or I should say, I have found a lot of "fixes" that aren't working.
anyone have a good step by step that changes the boot order for fedora 19?
LinuxLinux Distributions

Avatar of undefined
Last Comment
JeffBeall

8/22/2022 - Mon
SOLUTION
jb1dev

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
gheist

The problem is in the fact that fedora 19 started using grub2 and did not include the update-grub2
So you have to run
grub2-mkconfig > /boot/grub2/grub.cfg
JeffBeall

ASKER
Ok, so at a terminal I did this
su
vi /etc/default/grub

changed

GRUB_DEFAULT=saved

to

GRUB_DEFAULT=2
( I actually want to 3rd line to be the default )

then ran

grub2-mkconfig > /boot/grub2/grub.cfg

but it's like it ignored the changes and the default is still the 1st line of
/etc/default/grub
gheist

is it in 3rd line when you run grub2-mkconfig ?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
JeffBeall

ASKER
"is it in 3rd line when you run grub2-mkconfig ? "

sorry, I'm not sure what you mean. when i edit
/etc/default/grub
once I'm done I save the changes and exit. Then I run
grub2-mkconfig> /boot/grub2/grub.conf
gheist

the destination file is grub.cfg not grub.conf (you know they save one byte)
while grub2-mkconfig > /boot/grub2/grub.cfg is running it displays couple of lines with all kernels you have installed. so number them from 0 and choose the right one you want to boot for the next try.
(to remove old kernels use yum upgrade as opposed to yum update)
JeffBeall

ASKER
I don't know if I'm counting the lines wrong in grub.cfg, but no matter what number I put in
GRUB_DEFAULT=
after I run
grub2_mkconfig>/boot/grub2/grub.cfg
and reboot, the default doesn't change. This is what grub2_mkconfig looks like when it runs
# grub2-mkconfig>/boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.9-200.fc19.x86_64
Found initrd image: /boot/initramfs-3.11.9-200.fc19.x86_64.img
Found linux image: /boot/vmlinuz-3.11.8-200.fc19.x86_64
Found initrd image: /boot/initramfs-3.11.8-200.fc19.x86_64.img
Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64
Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-7725dfc225d14958a625ddaaaea5962b
Found initrd image: /boot/initramfs-0-rescue-7725dfc225d14958a625ddaaaea5962b.img
Found Fedora release 19 (Schrödinger’s Cat) on /dev/mapper/fedora00-root
done
any idea what number goes in
GRUB_DEFAULT?
or would it be
GRUB_DEFAULT= /dev/mapper/fedora00-root
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
gheist

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
JeffBeall

ASKER
oh, I'll try that. Up to this point I would put

GRUB_DEFAULT=2

without all the other stuff.
gheist

I can confirm that it works on Ubuntu like you typed.
JeffBeall

ASKER
"Set GRUB_DEFAULT=2 in /etc/default/grub"

I thought you meant literally to put

2 in /etc/default/grub

but I realized to put

GRUB_DEFAULT=2

in the file called grub at /etc/default

the thing is I already tried that and it didn't work. In fact I've tried several things at

GRUB_DEFAULT=

and it seems like it just ignores whatever I put there, even though I run

 grub2-mkcoonfig > /boot/grub2/grub.cfg

after each change, then I reboot
Your help has saved me hundreds of hours of internet surfing.
fblack61
gheist

Weird. It mus have some other place it reads real settings...
JeffBeall

ASKER
thank you