Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Why do we have two Default GRUB2 files/paths?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Xeno Idaltu
Posts: 47
Joined: 2019-08-15 05:36
Location: Free-Source Technocracy

Why do we have two Default GRUB2 files/paths?

#1 Post by Xeno Idaltu »

OS: Debian Buster (UEFI)

I noticed we have two identical files, not symlinks, for Default GRUB.
1) The one we often edit is on:
/etc/default/grub

2) And then we have an identical file in:
/use/share/grub/default/grub

Is this a backup file, remnants of GRUB1, or UEFI related?

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Why do we have two Default GRUB2 files/paths?

#2 Post by sunrat »

IIRC the one in /usr/share/grub/default/ (it's usr not use) is just a default template, the one in /etc/ is the active one.
They are not identical on my system.
Last edited by sunrat on 2020-03-12 00:20, edited 1 time in total.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: Why do we have two Default GRUB2 files/paths?

#3 Post by Deb-fan »

Dorkish clarification post:

You've both been struck by typos, it's /usr/share. Yep, is a template-backup, not with custom changes of course. Generally a good idea getting into the habit of making and stashing copies of system files someone changes, including comments of where it was/is located(full path to where it is), reason, what/why you've changed it. I keep a directory named systemfiles.bak for this. Include system files I've created for whatever reason too. Old convention is renaming backup files to end with .bak, can even leave them in place next to the working original and doesn't cause issues. Only I prefer having them all in one place. :)

You have been clarified! By a dork no less! :P
Most powerful FREE tech-support tool on the planet * HERE. *

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Why do we have two Default GRUB2 files/paths?

#4 Post by sunrat »

Deb-fan wrote:You have been clarified! By a dork no less! :P
You talk too much. Typo fixed, thanks.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: Why do we have two Default GRUB2 files/paths?

#5 Post by Deb-fan »

^True ... no worries, typos are one of the banes of humanity. They're always lurking, waiting to pounce. :P
Most powerful FREE tech-support tool on the planet * HERE. *

Post Reply