LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2024, 09:35 AM   #16
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by colorpurple21859 View Post
It appears you have done a re-install. You now have two efi partitions, only need /dev/nvme0n1p1.
During the re-install is there a reason you kept the /dev/nvme0n1p3 partition?
Hi,
I have done a few reinstalls of the second Mint copy, which is now on p3, as it detects the original (main) version of Mint and adds it to grub. This is the only way I have been able to create a boot partition that allows me to choose to boot into my main install.
 
Old 04-07-2024, 10:03 AM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
error: failed to get canonical path of `/boot/grub/fonts/UbuntuMono32.pf2'
I suspect the problem is with /etc/default/grub.d/63_mint-theme-2k.cfg and is similar to this: https://forums.linuxmint.com/viewtopic.php?t=313746
 
1 members found this post helpful.
Old 04-07-2024, 11:34 AM   #18
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I suspect the problem is with /etc/default/grub.d/63_mint-theme-2k.cfg and is similar to this: https://forums.linuxmint.com/viewtopic.php?t=313746
I've edit the theme cfg file as suggested in that post. And when I run
Code:
sudo dpkg --configure -a
, I get no message, just a new prompt.

When I run
Code:
sudo grub-install
I get :

Code:
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
And when I run

Code:
sudo update-grub
I get:

Code:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/63_mint-theme-2k.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-26-generic
Found initrd image: /boot/initrd.img-6.5.0-26-generic
Found linux image: /boot/vmlinuz-6.5.0-25-generic
Found initrd image: /boot/initrd.img-6.5.0-25-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Linux Mint 21.3 Virginia (21.3) on /dev/nvme0n1p3
Adding boot menu entry for UEFI Firmware Settings ...
done

Not sure what to do next....
 
Old 04-07-2024, 11:42 AM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Code:
sudo mount  /dev/nvme0n1p1 /boot/efi
sudo grub-install

Not necessary, but will prevent failure if there is grub package upgrade, create a mount point for the efi partition in /etc/fstab similar to the previous fstab.

Last edited by colorpurple21859; 04-07-2024 at 11:48 AM.
 
1 members found this post helpful.
Old 04-07-2024, 12:39 PM   #20
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
I'm not sure what you are doing but originally, you indicated your 'new' install of Mint was on partition three and your 'old' install was on partition 5. Your most recent boot repair doesn't even show a partition 5. What happened there? You show a Linux partition on partition 2 now?

The UUID for partition 2, according to boot repair, is 0ca5353e-55f2-4bde-85a3-4183a5361c2d which is what partition 5 originally showed so if that is the partition you want booting, you need to go into the grub.cfg file on the EFI partition and change your UUID there to the one for partition 2. Do as root, save and reboot. The current UUID in that file is 'b5b94bdb-d97d-48d0-8f30-bcedf470b919' which is partition 3 that you indicate is the new install. Have you already made this change? Did you run the update-grub command from partition 2, the original install?

Might this have something to do with LVM? Did you do both installs LVM? I don't use it but many others here so.

Last edited by yancek; 04-07-2024 at 12:42 PM.
 
1 members found this post helpful.
Old 04-07-2024, 03:17 PM   #21
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Code:
sudo mount  /dev/nvme0n1p1 /boot/efi
sudo grub-install

Not necessary, but will prevent failure if there is grub package upgrade, create a mount point for the efi partition in /etc/fstab similar to the previous fstab.
Many thanks colorpurple21859!! That seems to have done the trick!
 
Old 04-07-2024, 03:25 PM   #22
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I'm not sure what you are doing but originally, you indicated your 'new' install of Mint was on partition three and your 'old' install was on partition 5. Your most recent boot repair doesn't even show a partition 5. What happened there? You show a Linux partition on partition 2 now?

The UUID for partition 2, according to boot repair, is 0ca5353e-55f2-4bde-85a3-4183a5361c2d which is what partition 5 originally showed so if that is the partition you want booting, you need to go into the grub.cfg file on the EFI partition and change your UUID there to the one for partition 2. Do as root, save and reboot. The current UUID in that file is 'b5b94bdb-d97d-48d0-8f30-bcedf470b919' which is partition 3 that you indicate is the new install. Have you already made this change? Did you run the update-grub command from partition 2, the original install?

Might this have something to do with LVM? Did you do both installs LVM? I don't use it but many others here so.
Hi Yacek,
Yeah, 0ca5353e-55f2-4bde-85a3-4183a5361c2d is the main Linux install and it now has control of grub. I don't think this was an LVM issue, I think it was connected to removing fonts or something like that.
Anyway, seems to be ok now. Thanks very much for your help and advice!
 
Old 04-07-2024, 03:58 PM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
You’re welcome
 
  


Reply

Tags
boot grub efi, grub 2, linux mint, partitions



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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] Can't install kernel module on CentOS. "...likely that xx belongs to a chroot's host" 4Paul4 Linux - Software 2 05-27-2012 11:34 PM
MBR belongs to the first partition of disk? bootkernel Linux - General 6 05-05-2008 09:07 AM
Launch a script as it belongs to another user peji Linux - Newbie 6 03-24-2007 01:38 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 AM.

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