Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[SOLVED]Grub2 Menu.

Help for Current Versions of MX
User avatar
GuiGuy
Forum Regular
Forum Regular
Posts: 1699
Joined: Sun Dec 16, 2007 6:29 pm

[SOLVED]Grub2 Menu.

#1

Post by GuiGuy » Sat Aug 10, 2019 1:58 pm

Can anybody tell me how to edit the grub2 menu - preferably using featherpad?
Last edited by GuiGuy on Sun Aug 11, 2019 10:52 am, edited 1 time in total.

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub2 Menu.

#2

Post by fehlix » Sat Aug 10, 2019 2:11 pm

GuiGuy wrote:
Sat Aug 10, 2019 1:58 pm
Can anybody tell me how to edit the grub2 menu - preferably using featherpad?
You can right click on /boot/grub/grub.cfg and edit as root.
But note any update-grub run will create a new grub.cfg removing all your changes.
So any specific goal you are trying to achieve?
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
GuiGuy
Forum Regular
Forum Regular
Posts: 1699
Joined: Sun Dec 16, 2007 6:29 pm

Re: Grub2 Menu.

#3

Post by GuiGuy » Sat Aug 10, 2019 2:18 pm

Yes, I want to delete 3 entries which don't work since I played around with my partitioning.
Also want to change the wording of the 9 entries that do still work.

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub2 Menu.

#4

Post by fehlix » Sat Aug 10, 2019 2:27 pm

GuiGuy wrote:
Sat Aug 10, 2019 2:18 pm
Yes, I want to delete 3 entries which don't work since I played around with my partitioning.
Also want to change the wording of the 9 entries that do still work.
Suggest you creat first a fresh new grub.cfg like this:

Code: Select all

sudo update-grub
Than you make a backup like this

Code: Select all

sudo cp /boot/grub/grub.cfg /boot/grub/grub.cfg.bak-2019-08-10
And now you can start hacking the menu in grub.cfg
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
GuiGuy
Forum Regular
Forum Regular
Posts: 1699
Joined: Sun Dec 16, 2007 6:29 pm

Re: Grub2 Menu.

#5

Post by GuiGuy » Sat Aug 10, 2019 2:39 pm

Where is grub.cfg?
OK, found it!

User avatar
GuiGuy
Forum Regular
Forum Regular
Posts: 1699
Joined: Sun Dec 16, 2007 6:29 pm

Re: Grub2 Menu.

#6

Post by GuiGuy » Sat Aug 10, 2019 3:49 pm

fehlix wrote:
Sat Aug 10, 2019 2:27 pm
Suggest you creat first a fresh new grub.cfg like this:

Code: Select all

sudo update-grub
Than you make a backup like this

Code: Select all

sudo cp /boot/grub/grub.cfg /boot/grub/grub.cfg.bak-2019-08-10
And now you can start hacking the menu in grub.cfg
:puppy:
Thanks, fehlix.
I have done the first two things but not yet hacked grub.cfg (it sternly warns me not to edit it, so I'm scared!)
Should I try rebooting now to see what happens?

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub2 Menu.

#7

Post by fehlix » Sat Aug 10, 2019 4:32 pm

GuiGuy wrote:
Sat Aug 10, 2019 3:49 pm
I have done the first two things but not yet hacked grub.cfg (it sternly warns me not to edit it, so I'm scared!)
Should I try rebooting now to see what happens?
Yes, after creating a freshly generated grub-menu (/boot/grub/grub.cfg ) it's advisable to check it out by rebooting.
Perhaps the other formerly not working entries, will now surprisingly work. :alien:
.. because, any changes within another installed Linux (like another kernel etc.) will only be visible within the "controling" grub-menu after regenerating this menu through update-grub ... :snail:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
GuiGuy
Forum Regular
Forum Regular
Posts: 1699
Joined: Sun Dec 16, 2007 6:29 pm

Re: Grub2 Menu.

#8

Post by GuiGuy » Sat Aug 10, 2019 4:39 pm

Thanks again.
Will do it :crossfingers: .
Logging out of the forum now.

Phew! Back in MX18 again :number1: .
But I still have fond memories of the old "legacy" grub which was easier to hack.
Must admit lilo was not so easy.

User avatar
GuiGuy
Forum Regular
Forum Regular
Posts: 1699
Joined: Sun Dec 16, 2007 6:29 pm

Re: Grub2 Menu.

#9

Post by GuiGuy » Sun Aug 11, 2019 6:14 am

Editing grub.cfg as root and saving changes seems to work but then rebooting brings up the old menu unchanged.

User avatar
JayM
Qualified MX Guide
Posts: 1873
Joined: Tue Jan 08, 2019 4:47 am

Re: Grub2 Menu.

#10

Post by JayM » Sun Aug 11, 2019 6:25 am

You have to do

Code: Select all

sudo update-grub
afterward for your changes to take effect. Belay that. :bagoverhead:
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

Post Reply

Return to “MX Help”