FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
mmm edit /boot/grub/grub.cfg after you made a copy, then switch it around placing windows on top and never run update-grub again, and make sure you have a means to get into your linux system just in case you ooppss all over it, that way you can copy back over the one you modded to get back in.
both advice given ignore the fact that grub has a dedicated configuration file:
/etc/default/grub
you can edit the GRUB_DEFAULT variable, so that your system will highlight the n-th line of the menu, and boot from it automatically after the timeout.
it will NOT change the appearance of the menu.
please read https://help.ubuntu.com/community/Gr...iguring_GRUB_2
mmm edit /boot/grub/grub.cfg after you made a copy, then switch it around placing windows on top and never run update-grub again, and make sure you have a means to get into your linux system just in case you ooppss all over it, that way you can copy back over the one you modded to get back in.
No, please. I do not have fedora 25 here, but I seriously doubt that it has old grub on it, would bet on grub 2. And in grub 2 you do not edit /boot/grub/grub.cfg directly. What you do edit when you want to customize grub is /etc/default/grub and files in /etc/grub.d/. As for how to customize order, there is one nice trick that you could do. In your /etc/default/grub change GRUB_DEFAULT parameter to be like this:
GRUB_DEFAULT=saved
With that, grub will always automatically load your previous choice. So, on next boot, choose that M$ ( if you really must ) and it will be your first choice for grub after that. If you really want just to set it that M$ is always first, do something like this:
GRUB_DEFAULT=2
That will set M$ to load first, if it is entry number 3 on your grub boot screen. You can also choose it like this:
GRUB_DEFAULT="Windows 10"
If that is label of your M$ entry. You can check in your /boot/grub2/grub.cfg file how it is exactly labeled. Also, when you change grub settings, do not forget to run:
grub2-mkconfig --output=/boot/grub2/grub.cfg
Of course, all that editing and command to refresh your grub.cfg must be done with root privileges, either as root, or with sudo command. Hope that this helps you
No, please. I do not have fedora 25 here, but I seriously doubt that it has old grub on it, would bet on grub 2. And in grub 2 you do not edit /boot/grub/grub.cfg directly. What you do edit when you want to customize grub is /etc/default/grub and files in /etc/grub.d/. As for how to customize order, there is one nice trick that you could do. In your /etc/default/grub change GRUB_DEFAULT parameter to be like this:
GRUB_DEFAULT=saved
With that, grub will always automatically load your previous choice. So, on next boot, choose that M$ ( if you really must ) and it will be your first choice for grub after that. If you really want just to set it that M$ is always first, do something like this:
GRUB_DEFAULT=2
That will set M$ to load first, if it is entry number 3 on your grub boot screen. You can also choose it like this:
GRUB_DEFAULT="Windows 10"
If that is label of your M$ entry. You can check in your /boot/grub2/grub.cfg file how it is exactly labeled. Also, when you change grub settings, do not forget to run:
grub2-mkconfig --output=/boot/grub2/grub.cfg
Of course, all that editing and command to refresh your grub.cfg must be done with root privileges, either as root, or with sudo command. Hope that this helps you
Thank You! I have looked for an answer like that for hours but couldn't found one!
I still have 2 minors problems:
1. I can't edit the grub file (It opens in read-only mode)
2. I don't have the grub.cfg file in /boot/grub2 Can't also find it elsewhere.
I must set Windows 10 as my priority because I have an Win10 update (a big one, which preventing me from using it), and I'm too lazy to sit here next to the computer and wait for every time it is want to restart so it will continue (most do some work for school, learning c# which I can't run on Linux).
1. I can't edit the grub file (It opens in read-only mode)
you need to gain superuser privileges. this is usually done by prepending the command with "sudo" and entering your user password.
Quote:
2. I don't have the grub.cfg file in /boot/grub2 Can't also find it elsewhere.
please re-read the previous 2 posts. you need to edit /etc/default/grub after editing it succesfully, you need to run "sudo update-grub" to apply changes.
1. Type here commands you use to edit grub file. I suspect that you do not open it with root privs. And you can not edit it without root privs. If you use some editor like gedit, you will probably need gksu.
2.https://fedoraproject.org/wiki/GRUB_2 As said, do not have Fedora here, but from what I know, you should have file /boot/grub2/grub.cfg Open up your terminal and type:
cat /boot/grub2/grub.cfg
If it is not there, type:
cat /boot/grub/grub.cfg
There should be some wall of text, but you can scroll it in your terminal. Anyway, you do not really need to look at it, if you choose option to set up default grub entry with number. Which is explained in my previous post.
you need to gain superuser privileges. this is usually done by prepending the command with "sudo" and entering your user password.
please re-read the previous 2 posts. you need to edit /etc/default/grub after editing it succesfully, you need to run "sudo update-grub" to apply changes.
No, no update-grub on Fedora, it is Debian based tool. On Fedora it should be:
you need to gain superuser privileges. this is usually done by prepending the command with "sudo" and entering your user password.
please re-read the previous 2 posts. you need to edit /etc/default/grub after editing it succesfully, you need to run "sudo update-grub" to apply changes.
Quote:
Originally Posted by dejank
No, no update-grub on Fedora, it is Debian based tool. On Fedora it should be:
grub2-mkconfig -o /boot/grub2/grub.cfg
As said in the description, I'm a super beginner to Linux. After a bit of reading, I managed to change the file (with root access using the su code and opening the file using gedit). I tried to both set GRUB_DEFAULT to 3 (I have 2 fedora version, fedora safe mode and windows) and to set it to 'Windows Boot Manager (on /dev/sda2)'.
I tried in both changes to save it with grub2-mkconfig -o /boot/grub2/grub.cfg as dejank suggested, and with grub2-mkconfig --output=/boot/grub2/grub.cfg as ondoho suggested (still in root mode), but none worked.
Do you have any reason why?
Thanks for both of you in advance!
Oh, wait, do you perhaps have UEFI install? I guess that could be reason. In case of UEFI install, it is located differently. Try looking for grub.cfg file here:
/boot/efi/EFI/fedora/grub.cfg
In which case you should run, again with root privs:
Oh, wait, do you perhaps have UEFI install? I guess that could be reason. In case of UEFI install, it is located differently. Try looking for grub.cfg file here:
/boot/efi/EFI/fedora/grub.cfg
In which case you should run, again with root privs:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.