LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2024, 06:06 AM   #91
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,535

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495

I don't know why the developers of the various Ubuntu derivatives don't make the change (not using the directory name ubuntu on the EFI partition) if it is pure laziness or some other factor. I've seen posts here explaining how to do it during an install and it doesn't seem complicated. The solution to this is to not use Ubuntu AND its derivatives until it is changes. UEFI is much simpler than the older Legacy since a default install of most any system (windows or Linux) would overwrite the MBR boot code. With Linux you would get a choice but many would not notice or understand it. Installing windows in a Legacy system would overwrite any boot code in the MBR and the user would not be given a choice and would not be informed that it would happen. UEFI gives the advantage if used properly to boot an OS from the one time boot key from the BIOS on boot even with systems on the same hard drive.

Last edited by yancek; 02-08-2024 at 07:37 AM.
 
1 members found this post helpful.
Old 02-08-2024, 09:24 AM   #92
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 281

Original Poster
Rep: Reputation: 32
I can see how it would scare newbies and while not engineer level (I was analyst and builder) it has been brutal on me and if I were just a new ubuntu linux user and saw ooh a new shiny linux mint or other family and gave it a go with a hard install side-by and wound up unbootable I would be like never going to try that again. My plan is to just replace kubuntu with linux mint. Data is backed up, I will see how much settings I can save elsewhere and just overwrite kubuntu since mint will overwrite the boot files anyway. And yes, it can be done, I was doing it but too fragile and much too complicated to repair when the house of cards crumble from say an update/upgrade. Canonical is driving away users who can't install tryout another flavour without boot disaster.
 
Old 02-08-2024, 03:40 PM   #93
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
There is a trick to keep linux mint or Kubuntu from overwriting the bootloader, and have grub installed when all is said and done.
 
Old 02-08-2024, 04:22 PM   #94
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 281

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by colorpurple21859 View Post
There is a trick to keep linux mint or Kubuntu from overwriting the bootloader, and have grub installed when all is said and done.
You told me about unmounting the partition when it gets to the point of writing to it, right? In my case, not much point to it and having to repair. Kubuntu sits on the largest partition I have on the internal SSD. If I installed mint (heir apparent at this point) next to it again (which I did manage to fix with help last time), I would end up with my new daily driver sitting on a partition too small for my needs. I could resize, etc. But for me it isn't worth the boot repair trauma since I won't be continuing with Kubuntu. Possible to do, it is. But I got better things to do, like configuring shiny new themes and useless cool widgets.
 
Old 02-10-2024, 07:01 PM   #95
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by yancek View Post
I don't know why the developers of the various Ubuntu derivatives don't make the change (not using the directory name ubuntu on the EFI partition) if it is pure laziness or some other factor. I've seen posts here explaining how to do it during an install and it doesn't seem complicated. The solution to this is to not use Ubuntu AND its derivatives until it is changes.
It's simple enough to apply an admin solution, preferably on first boot following installation so as not forgotten: edit /etc/default/grub's GRUB_DISTRIBUTOR= line, as seen in thread post #1 here for Manjaro, to produce a unique string as the applicable directory name in /boot/efi/EFI/, e.g. kubuntu20 or neon22test or mint232. This way no installation overwrites another's ESP entry.
 
1 members found this post helpful.
Old 02-11-2024, 06:44 AM   #96
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,535

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
Canonical is driving away users who can't install tryout another flavour without boot disaster.
Don't see how Canonical is responsible for what other developers do when allowed to use the ubuntu name and their repositories. Some Ubuntu derivatives don't use 'ubuntu' as a directory name so why do other do it and it should not really be that difficult.

I think that given current circumstances, the simplest way to avoid this problem is to only use one Ubuntu and/or one derivative on the same computer or at least the same hard drive. For purposes of testing, use a 'live' usb or virtual software.

Another way to avoid this problem when trying to use multiple ubuntu's on the same machine is to copy the 'ubuntu' directory for that particular OS to another location when installing the 2nd 'ubuntu'. Then if you want the original OS to be the primary bootloader, you simply copy it back to the EFI partition. You can easily create an entry for the 2nd OS in the EFI partition so you can boot from the BIOS. If you have a second hard drive, disconnect the first with the 'ubuntu' OS on it while installing the 2nd.

Of course, this could all be avoided if the Ubuntu derivative OS's would simply use a different directory name for their OS. I suppose Canonical could notify their derivatives that they are no longer allowed to use the 'ubuntu' name in this way but it seems the first method would be simpler and less problematic.
 
Old 02-11-2024, 07:23 AM   #97
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
GRUB_DISTRIBUTOR= determines the applicable ESP directory name. It's a simple edit that will avoid the issue. There's no need for copying or switching anything else.
 
1 members found this post helpful.
Old 02-11-2024, 08:12 AM   #98
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
The
Quote:
GRUB_DISTRIBUTOR=
doesn't always work with ubuntu spinoffs. Yes it will create a separate esp name most times, however the bootloader in the named esp will still reference the ubuntu esp name for the grub.cfg file.
The work around I use, when 'file copy' starts open a termina\console unmount the esp partition.
When the grub-install error appears go back to terminal, chroot into the install directory, mount the efi partition, edit /etc/default/grub and install grub with this:

Code:
grub-install --bootloader-id=xxxxx --no-uefi-secure-boot
update-grub
efibootmgr -o xxxxx xxxx xxxx (to change boot-loader control)
Yes, when multi-booting there are easier ways to keep/give desired distro control of bootloader,

Last edited by colorpurple21859; 02-11-2024 at 08:22 AM.
 
1 members found this post helpful.
Old 02-11-2024, 10:28 AM   #99
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 281

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by yancek View Post
Don't see how Canonical is responsible for what other developers do when allowed to use the ubuntu name and their repositories. Some Ubuntu derivatives don't use 'ubuntu' as a directory name so why do other do it and it should not really be that difficult.

I think that given current circumstances, the simplest way to avoid this problem is to only use one Ubuntu and/or one derivative on the same computer or at least the same hard drive. For purposes of testing, use a 'live' usb or virtual software.
Well I know enough that although I am using kubuntu, it is an official flavour of ubuntu and therefore a canonical product, right? I tried Linux mint that is a little trickier in regards to "responsible party". But I am pretty sure I would run into same issue if I had laid down ubuntu next to kubuntu. But maybe not. I had neon on there which is not canonical and from what I saw called itself neon in EFI but colorpurple said there was another place it was overwriting?

But this issue may not be confined to buntu family. I have now added a straight-up real debian bookworm install to the mix. I have tested a derivative of debian recently but I removed (I can't remember if it was Watt or Bunsen) that identified itself as "debian" in EFI. Not sure whether I like the XFCE on debian I am trying out and was toying with a separate install of KDE debian next to XFCE debian rather than just adding a second DE to current install. Would I run into a problem or not? It is something maybe that should be brought up to devs of any distro in light of EFI becoming the norm and the amount of issues novices (especially) can run into and not be prepared for. And for $$$ linux distros if they offering different flavors why would they want to drive customers away from giving an additional install of a different version a try? Seems like something that can be "cut off at the pass" by the devs whether it be the original one or the ones spinning off of another. Perhaps not enough users are complaining. They just have a bad experience and say "not doing that again" and may never try out another product of said distro fearing "losing" what they had in place already and not knowing how to get it back.

I am not a distro hopper but I definitely like to window shop and try things out. Occasionally I come to a parting of the ways with a distro used for years and have to shop around. Others' mileage may vary.
 
Old 02-11-2024, 05:05 PM   #100
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by colorpurple21859 View Post
The doesn't always work with ubuntu spinoffs. Yes it will create a separate esp name most times, however the bootloader in the named esp will still reference the ubuntu esp name for the grub.cfg file.
Please elaborate. How does the spinoff know the actual directory name Ubuntu uses, when due to the unique value given it by its admin in its GRUB_DISTRIBUTOR=, and fully applied, is something entirely different? Is the spinoff actually going to dig into the installed system(s)' /etc/default/grub(s) or the ESP's EFI subdirs to decide what it/they should do when the Ubuntu(s) do not put the directory name ubuntu on the ESP anywhere?

Anyway, all this complication is needless. Install the first distro to include Grub. Install subseqent distros sans bootloader, or purge bootloader post-installation, or don't even install a distro that insists. Only one Gnu/Linux bootloader is needed per Gnu/Linux computer. Multiple bootloaders constitute complexity. My distro count per PC averages well over a dozen, ranging to somewhere above 40. It only takes one to get the job done. KISS.

This begs the question why more than a rare few would need both Ubuntu and any of its derivatives on the same computer, who do not have the experience to deal with this without help.
 
Old 02-11-2024, 05:49 PM   #101
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
Actually all of the spinoffs that install or require NO software that is not in the UBUNTU repos, and is just a special set of configurations and defaults that you can achieve by installing Ubuntu and manually configuring for yourself, ARE Ubuntu! They are just a special SPIN of Ubuntu. That might confuse some people, be the Debian community has the same issue. (So does ARCH by the way) Until you actually make enough changes so that you must maintain a different REPO system and maintain software NOT in the parent, you just have a spin.

No disrespect to a good spin, the Ubuntu based spin of Mint is killer good! Manjaro is about one step away form being an Arch spin, and is killer good! It may be a bad idea (and cause problems that you cannot predict) to make the changes discussed BEFORE you divorce the spin form that parent distribution!
 
Old 02-11-2024, 08:12 PM   #102
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
For example with linuxmint, there is a /etc/default/grub.d/50_linuxmint.cfg that sets the GRUB_DISTRIBUTOR= to ubuntu which forces grub-install to create and install to EFI/ubuntu directory. When the the GRUB_DISTRIBUTOR=ubuntu is commented out grub-install creates and installs to EFI/linuxmint, however without EFI/ubuntu/grub.cfg to set the prefix to the root directory no grub menu only a grub prompt at boot up.

Neon during installation creates two directories with grub-install EFI/neon EFI/ubuntu, without the EFI/ubuntu/grub.cfg same result a grub prompt.

This use of EFI/ubuntu directory as the default is a short coming of ubuntu based distros to allow booting with secure-boot enabled and used as well when secure boot in disabled.

Yes my method of fixing the problem at installation is convoluted and requires secure-boot to be disabled but it works if one wants more than one installed ubuntu distro to have their own efi bootloader

I agree, when mutlibooting: use only one distro to control the booting, know of ways to prevent other distro's from installing a bootloader, and know how to fix when things go wrong.

Last edited by colorpurple21859; 02-11-2024 at 08:41 PM.
 
Old 02-12-2024, 06:30 AM   #103
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,535

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Not much point in installing multiple Ubuntu derivatives. Other options pointed out are just adding the different Desktop to the primary install, using a 'live' DVD/USB to test, using virtual software or possibly installing to a secondary/external drive. That last one is complicated by the Ubuntu installer with EFI as one would need to disable or disconnect other drives. Also, when the purpose is simply to test another distro, moving the 'ubuntu' directory from the EFI partition is a simple solution, moving it back later is also.

Last edited by yancek; 02-12-2024 at 06:32 AM.
 
Old 02-18-2024, 11:56 PM   #104
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by colorpurple21859 View Post
For example with linuxmint, there is a /etc/default/grub.d/50_linuxmint.cfg that sets the GRUB_DISTRIBUTOR= to ubuntu
If that overrides an admin GRUB_DISTRIBUTOR= setting in /etc/default/grub, that must be a bug or an admin customization, or new in 21.3, or gone by 21.2. On 21.2 I just did apt-get install -d grub-efi-amd64 grub2-common grub2-theme-mint, which got me:
Code:
grub2-common_2.06-2ubuntu7.2_amd64.deb
grub2-theme-mint_1.2.2_all.deb
grub-common_2.06-2ubuntu7.2_amd64.deb
grub-efi-amd64_2.06-2ubuntu14.4_amd64.deb
grub-efi-amd64-bin_2.06-2ubuntu14.4_amd64.deb
There is no /etc/default/grub.d/50_linuxmint.cfg in any of those packages.
 
Old 02-19-2024, 05:17 AM   #105
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
I did a fresh install of linuxmint in a vm and the 50_linuxmint.cfg was there in /etc/default/grub.d. I didn’t investigate what package it came from. I did lots of testing in a vm multi-booting various Ubuntu based distributions before answering this thread. A quirk I came across with kubuntu is when the —bootloader-id=kubuntu is used if kubuntu isn’t all uppercase it will revert to ubuntu. It may be the first three letters that have to be uppercase, I don’t remember if I tested or not.

Last edited by colorpurple21859; 02-19-2024 at 05:30 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
EFI System Partition: Using it as /boot versus /boot/efi MirceaKitsune Linux - General 4 04-06-2021 11:07 AM
[SOLVED] Do M.2 SSDs have have the writes issues like older sata SSDs? linux2021 Linux - Newbie 5 08-19-2020 03:35 PM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
resize efi question [/boot/efi] with boot flag gparted mtdew3q Fedora 4 03-19-2017 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration