Editing grub

Archived topics about LMDE 1 and LMDE 2
Locked
JeffShepherd

Editing grub

Post by JeffShepherd »

Hi everyone,

I installed LMDE today as a dual boot alongside Windows (BOO) Vista. At the moment LMDE boots as default but I need to temporarily have Vista to be the OS that boots by default. Where is the grub file I need to edit?

Thanks,
Jeff
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.
ThistleWeb

Re: Editing grub

Post by ThistleWeb »

The file is in /boot/grub/grub.cfg but it's not meant to be edited by hand. It'd be easier to look at Startup Manager (I think) in the Control Center, it's a GUI letting you easily pick Vista, time out etc and it generates the grub file for you. /boot is owned by root so it needs root privs to edit either way.
marlar
Level 2
Level 2
Posts: 72
Joined: Thu Dec 10, 2009 9:30 am

Re: Editing grub

Post by marlar »

Cool. I didn't know the startup manager :)
User avatar
Roken
Level 5
Level 5
Posts: 737
Joined: Fri Nov 19, 2010 4:55 pm
Location: Newport, S Wales

Re: Editing grub

Post by Roken »

Or to set up grub such that the last booted OS becomes the default:

sudo gedit /etc/default/grub

Change GRUB_DEFAULT=0 to GRUB_DEFAULT=saved
add a new line
GRUB_SAVEDEFAULT=true

Then run sudo update-grub in the terminal.

On the next boot select Vista. It will be selected automatically on each successive boot. To change to Linux default simply select it one time, and that will become the default for successive boots.

This is particularly handy during the monthly round up of Windows updates when you have to reboot your computer to complete the updates (sometimes more than once) and don't want to have to sit in front of grub every time.
Kernel Linux Tex 5.12.14-zen1-1-zen, XFCE
Arch
Dual GTX1070 8Gb
AMD Ryzen 1800X
32Gb RAM
ukbrian

Re: Editing grub

Post by ukbrian »

@Roken
+1
Great tip, thank you
I always multi boot so that I can use the free app http://filehippo.com/download_macrium_reflect/
to backup my partitions or drives. If you buy it, $40.00, you can backup and restore using a Windows PE disc they let you download.

I've used most image backup apps over the years including Acronis, R-drive etc. but Macrium has by far the best GUI.
After you have configured a backup you can put a short cut on the desktop so that newcomers simply have to double click on it to backup, no configuring for them, it just does it and they actually use it! :lol:

I think Clonezilla is a wicked bit of kit and badly needs a GUI written for it, as it is it's beyond a lot of folk.

Thanks again for that valuable tip. :D
ukbrian
JeffShepherd

Re: Editing grub

Post by JeffShepherd »

Hi everyone,

Thanks for your replies, I used ThistleWebs solution althought I did not have Startup Manager so had to install that first, beats manually editing grub which I had to do in Mepis.
DrHu

Re: Editing grub

Post by DrHu »

ThistleWeb wrote:The file is in /boot/grub/grub.cfg but it's not meant to be edited by hand. It'd be easier to look at Startup Manager (I think) in the Control Center, it's a GUI...
Is that the same as the grub2 customizer application or is it something different
http://ubuntuguide.net/manager-grub2-bo ... tomizergui
Locked

Return to “LMDE Archive”