Fedora Linux Support Community & Resources Center
  #1  
Old 19th May 2017, 04:28 PM
IamIdan Offline
Registered User
 
Join Date: May 2017
Location: Israel
Posts: 1
linuxfedorachrome
How to change boot order

Hello everyone!
I'm super new to fedora and Linux in general, and I want to know how to change the boot order when I open the computer, so Instead of this list:
  • Fedora 25
  • Fedora 25 (Safe mode)
  • Windows 10
It will be
  • Windows 10
  • Fedora 25
  • Fedora 25 (Safe mode)

I have read a lot of topics but non of them worked (I even tried to install grub customizer but it is asking for my password and then don't do anything, now I don't know how to uninstall this since I couldn't found it in the Software app so I installed it via the terminal)
Thanks in addition to everyone who might help me!
Reply With Quote
  #2  
Old 20th May 2017, 01:46 AM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,559
linuxchrome
Re: How to change boot order

The proper command is grub2-set-default. This does not change the order of entries in the grub2 boot menu, but sets which entry is the default one to boot. The better method is to use menu entry title rather than a number, as the number can change as kernels are added starting from a new install.

Assuming a UEFI install, you can get the Windows title with this command:
Code:
# grep menuentry /boot/efi/EFI/fedora/grub.cfg
The title is the text between the single quotes that appears immediately after "menuentry", and should be placed into double quotes in the command, e.g.:
Code:
# grub2-set-default "Windows 10 (loader) (on /dev/sda1)"
The same thing can be accomplished by editing the /etc/default/grub file and editing the line:

GRUB_DEFAULT=

And placing the full title, again, in double quotes, after the = sign, Then to make that active, you have to run:
Code:
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Reply With Quote
  #3  
Old 21st May 2017, 05:39 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 782
windows_98_nt_2000firefox
Re: How to change boot order

To show your current grub2 menu entries (borrowed from centos wiki https://wiki.centos.org/HowTos/Grub2), run (as root):
Quote:
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
__________________
======
Doug G
======
Reply With Quote
  #4  
Old 21st May 2017, 06:12 AM
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,515
linuxfedorafirefox
Re: How to change boot order

On that command in post #3, if the machine is EFI then the file would need be /etc/grub2-efi.cfg. In such a case, /etc/grub2.cfg may appear in a listing of files in /etc but it would likely be a broken link, but if it's a BIOS system, it would be the relevant file.
Reply With Quote
  #5  
Old 21st May 2017, 08:49 AM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,265
linuxchrome
Re: How to change boot order

Please do not attempt to manually edit the boot menu because it is automatically created from files within the /boot/ directory tree. So they won't be permanent.

However you can adjust the /etc/default/grub file that defines the general settings and the /etc/grub.d/40_custom file to add specific custom entries

once you have edited these you can update grub with the following command:

for EFI systems
Code:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
__________________
Latest survey shows that 3 out of 4 people make up 75% of the world's population - Stephen Hawking
Download, Install and Share Fedora
- Official ISO Torrents
| Live ISO Respins containing post-release updates
Reply With Quote
  #6  
Old 23rd May 2017, 11:43 AM
kkshethin Offline
Registered User
 
Join Date: Dec 2009
Location: India
Posts: 435
linuxfedorafirefox
Re: How to change boot order

Quote:
Originally Posted by IamIdan View Post
( (I even tried to install grub customizer but it is asking for my password and then don't do anything, now I don't know how to uninstall this since I couldn't found it in the Software app so I installed it via the terminal)
You can right-click boot entries in grub-customizer and can move entries up/down. This will you have to do after each upgrade of kernel.
If grub-customizer is not working for you, that means it was perhaps not properly installed. Remove it from terminal as you have installed.(rpm erase/remove).
then install it via dnf install grub-customizer. It should work now.
Reply With Quote
Reply

Tags
boot, change, order

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change boot order F16 boarder428 Using Fedora 16 26th May 2012 12:11 AM
How to change boot order? MattQ Using Fedora 5 16th June 2011 06:38 PM
how to change the boot order ..pls help! ganeshnayakm Using Fedora 2 17th October 2006 06:02 PM
Change boot order? spirou Using Fedora 3 5th December 2005 07:19 AM


Current GMT-time: 07:08 (Saturday, 24-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat