grub 2
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
grub 2
I used to be able to edit the boot order of grub 2 but now it seems you can't edit the grub.cfg file. I know that your not supposed to edit this file but I used to be able to edit the order of OS's in this file. Now it seems that no matter what you do you can't edit this order. I've tried to edit the order also with startup manager but that just lets you pick the default OS. Any ideas?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: grub 2
Install Grub Customizer
Silence is golden. Duct tape is silver. Welcome to Hell. Here's your copy of Windows.
-
- Level 4
- Posts: 359
- Joined: Thu Jun 24, 2010 2:22 pm
Re: grub 2
Yes, you're right. You shouldn't edit the grub.cfg file. You can, but the next time a new kernel is installed or you or something runs update-grub, those settings will be overwritten and you'll have to do it all again.
The correct way to do things is to edit the /etc/default/grub file. In there, you'll find this:
GRUB_DEFAULT=0
Change it from 0 to your preference. (Zero is the 1st entry, the 2nd one should be one and so on)
After this, don't forget to run the update-grub command so your grub.cfg file gets updated.
And from now on, you shouldn't worry about this any more.
The correct way to do things is to edit the /etc/default/grub file. In there, you'll find this:
GRUB_DEFAULT=0
Change it from 0 to your preference. (Zero is the 1st entry, the 2nd one should be one and so on)
After this, don't forget to run the update-grub command so your grub.cfg file gets updated.
And from now on, you shouldn't worry about this any more.
Bye for now,
Bruno
(Always backup before you screw up :)
Bruno
(Always backup before you screw up :)
Re: grub 2
The first step is to backup any file that you wish to change.
After that, Bruno's way will allow you to select the first entry displayed in the grub menu.
If you want something more, I would suggest that you build your menu in /etc/grub.d/40_custom.
I wouldn't use Grub Customizer. I have tried it multiple times, and it has failed me multiple times. There is a lot of info about grub2 and it's customization on the web. My custom menu works well for me, and I boot a rotating mix of 6+ OS's.
Yours,
AdamFirst
- AZgl1800
- Level 20
- Posts: 11173
- Joined: Thu Dec 31, 2015 3:20 am
- Location: Oklahoma where the wind comes Sweeping down the Plains
- Contact:
Re: grub 2
Many complaints about how screwed up Grub Customizer messes with the Grub config file...AdamFirst wrote: ⤴Tue Dec 11, 2018 8:49 pm
I wouldn't use Grub Customizer I have tried it multiple times, and it has failed me multiple times. There is a lot of info about grub2 and it's customization on the web. My custom menu works well for me, and I boot a rotating mix of 6+ OS's.
Yours,
AdamFirst
I also advise against using it..... google is your friend here...
Re: grub 2
Do not follow this advice "Install Grub Customizer"
Do not go there--good reasons are in the forums--read these.
You can change the default boot order without messing with your system files
Do not go there--good reasons are in the forums--read these.
You can change the default boot order without messing with your system files
Everything in life was difficult before it became easy.
Re: grub 2
and also adjust the GRUB_TIMEOUT=10 as well, to your liking.BrunoMiranda wrote: ⤴Tue Dec 11, 2018 1:28 pm
The correct way to do things is to edit the /etc/default/grub file. In there, you'll find this:
GRUB_DEFAULT=0
Change it from 0 to your preference. (Zero is the 1st entry, the 2nd one should be one and so on)
After this, don't forget to run the update-grub command so your grub.cfg file gets updated.
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.