Editing grub

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
natchezjohn

Editing grub

Post by natchezjohn »

I have Mint on sda1 and ubuntu on sda6. Grub is on sda.

I want to replace ubuntu but fear that doing so will put the new os as first on the log in.

If so I'll need to edit the grub file BUT I DON'T KNOW HOW TO ACCESS IT. Once I do I'll probably be back here for assistance in doing so.
But I gotta find it first. How do I do that?
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.
mank_in

Re: Editing grub

Post by mank_in »

to avoid the pain , you can try install Grub Customizer

But if you want to change manually, you can use terminal :

Code: Select all

 grep menuentry /boot/grub/grub.cfg
You will see something like this ( i use my grub for sample ) :

Linux Mint 14 Cinnamon 32-bit, 3.5.0-17-generic (/dev/sda3)'
Linux Mint 14 Cinnamon 32-bit, 3.5.0-17-generic (/dev/sda3) -- recovery mode
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)

the first one is menuentry 0 , so Memory test (memtest86+, serial console 115200) is menuentry 4

executed:
Cinnamon :

Code: Select all

sudo gedit /etc/default/grub
MATE:

Code: Select all

sudo pluma /etc/default/grub
change :
GRUB_DEFAULT=0
to whatever menuentry you choose, if ubuntu is menuentry 5 and LM is 0 change 5 to 0
save it.
execute :

Code: Select all

sudo update-grub
natchezjohn

Re: Editing grub

Post by natchezjohn »

I see. Looks like something even I could do.
But using Grub Customizer would be even easier. Do it work on mint? I assume so as mint is a ubunto derivative.
Thank you,
John
mank_in

Re: Editing grub

Post by mank_in »

works on ubuntu usually for for Mint too :)
natchezjohn

Re: Editing grub

Post by natchezjohn »

Thank you very much!!
Locked

Return to “Installation & Boot”