LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-05-2024, 06:03 AM   #1
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Rep: Reputation: Disabled
My grub boot partition belongs to another Linux install and I want to get it back.


Hi,
I'm running Linux Mint 21.3.
Ok, so I wanted to get rid of Windows completely, so I deleted the windows partition and moved and resized my root and home partitions to take advantage of the freed space.

After rebooting I arrived at a grub screen with a > prompt and couldn't boot into Linux. I tried some terminal commands, Boot Repair multiple times, rescatux, and super grub disk. Nothing worked, the boot/efi partition seemed to be corrupted and none of the tools could write to it.

I eventually deleted and reformatted the boot/efi partition and installed another copy of Linux Mint to a new partition.

This installation used the correct boot/efi partition to install and I was able to get back into my main Linux Mint installation.

However, now I'm having some errors during updates and installs, especially around initramfs and initramfs-tools. The boot and logout processes now seem to take longer and show the commands running rather than the nice splash screens from before.

So, I'd like to bring control of the boot/efi partition back to my main Mint install to avoid any problems building up.
Does anyone have any ideas how to do this?
 
Old 04-05-2024, 06:09 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,498

Rep: Reputation: Disabled
Your post is a bit confusing, but, perhaps, try re installing grub.
 
1 members found this post helpful.
Old 04-05-2024, 06:53 AM   #3
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Your post is a bit confusing, but, perhaps, try re installing grub.
Which part is confusing?
Here's the sequence:

1. Deleted Windows
2. Moved and resized Linux Mint root and home partitions
3. On restart I couldn't get past grub
4. Used live USBs to try to fix it with boot repair, plus various commands and other tools
5. Nothing worked - seemed like boot/efi partition was corrupted
6. Deleted boot/efi partition
7. Created a new partition and installed Mint to that partition, which created a new boot/efi partition
8. Was able to boot into my old Mint install, everything was still there
9. I now have problems with initramfs etc, I guess because the boot/efi partition is owned by the other Mint installation?
10. I want to return control of the boot/efi partition to my main Mint install.

Which procedure for reinstalling grub would you recommend in this case?
 
Old 04-05-2024, 06:56 AM   #4
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 would guess that when you deleted windows you also deleted the vfat partition which contained the Mint EFI files. That would explain the error you report. If you did not delete this partition, it's possible it could have been corrupted during the resizing operation. Reinstalling Grub rather than Mint again as suggested might have resolved the problem if you did not delete the EFI partition. Since you mention using boot repair, why did you not follow the instructions on their home page to post the output from the option to Create Bootinfo Summary rather than trying repairs which likely made things worse.

I'm not sure what you mean by the 'correct' /boot/efi partition? How many EFI partitions do you have and how many drives? Too many possibilities so your best option is to run boot repair again and this time get the report and post the link here so we have some details to review.
 
1 members found this post helpful.
Old 04-05-2024, 08:43 AM   #5
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I would guess that when you deleted windows you also deleted the vfat partition which contained the Mint EFI files. That would explain the error you report. If you did not delete this partition, it's possible it could have been corrupted during the resizing operation. Reinstalling Grub rather than Mint again as suggested might have resolved the problem if you did not delete the EFI partition. Since you mention using boot repair, why did you not follow the instructions on their home page to post the output from the option to Create Bootinfo Summary rather than trying repairs which likely made things worse.

I'm not sure what you mean by the 'correct' /boot/efi partition? How many EFI partitions do you have and how many drives? Too many possibilities so your best option is to run boot repair again and this time get the report and post the link here so we have some details to review.
Hi Yancek,
Thanks for the reply.
I don't think I deleted the vfat partition, only the one where the windows C: drive lived. I think it was corrupted during the resize.

I tried reinstalling grub n number of times, but it didn't fix the problem. I didn't post the output from Bootinfo because it was a Sunday, I needed the laptop for work the next day, and the solution of installing another copy of Mint has worked for me before.

I should have said the new installation created the boot/efi files in the correct partition. I have one disk, one efi partition, but 8 partitions in total. I can't run boot repair right now as I need to finish work today, but I'll run it tomorrow and post the results here if it hasn't fixed the problem.
Cheers!
 
Old 04-05-2024, 09:50 AM   #6
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
Open a terminal, and post the output of the following:
Code:
lsblk -f
cat /etc/fstab
cat /etc/initramfs-tools/conf.d/resume
 
1 members found this post helpful.
Old 04-05-2024, 03:52 PM   #7
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I would guess that when you deleted windows you also deleted the vfat partition which contained the Mint EFI files. That would explain the error you report. If you did not delete this partition, it's possible it could have been corrupted during the resizing operation. Reinstalling Grub rather than Mint again as suggested might have resolved the problem if you did not delete the EFI partition. Since you mention using boot repair, why did you not follow the instructions on their home page to post the output from the option to Create Bootinfo Summary rather than trying repairs which likely made things worse.

I'm not sure what you mean by the 'correct' /boot/efi partition? How many EFI partitions do you have and how many drives? Too many possibilities so your best option is to run boot repair again and this time get the report and post the link here so we have some details to review.
Ok, so this evening I used a live USB and ran boot repair again. I restarted, but the boot stopped at the grub command prompt. I had to reinstall the second mint again to fix the problem so I could boot back into my main install. The output of Boot repair is here:

http://sprunge.us/SPu8yQ
 
Old 04-05-2024, 04:00 PM   #8
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Open a terminal, and post the output of the following:
Code:
lsblk -f
cat /etc/fstab
cat /etc/initramfs-tools/conf.d/resume
Thanks Colorpurple, here's the output:


lsblk -f:

Code:
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
                                                                   0   100% /snap/bare/5
loop1
                                                                   0   100% /snap/chromium-ffmpeg/34
loop2
                                                                   0   100% /snap/chromium-ffmpeg/37
loop3
                                                                   0   100% /snap/core/16574
loop4
                                                                   0   100% /snap/core/16928
loop5
                                                                   0   100% /snap/core18/2796
loop6
                                                                   0   100% /snap/core18/2812
loop7
                                                                   0   100% /snap/core20/2105
loop8
     squash 4.0                                                    0   100% /snap/core20/2182
loop9
     squash 4.0                                                    0   100% /snap/core22/1033
loop10
     squash 4.0                                                    0   100% /snap/core22/1122
loop11
     squash 4.0                                                    0   100% /snap/dolphin/54
loop12
     squash 4.0                                                    0   100% /snap/dolphin/56
loop13
     squash 4.0                                                    0   100% /snap/eiskaltdcpp/319
loop14
     squash 4.0                                                    0   100% /snap/fslint-unofficial/73
loop15
     squash 4.0                                                    0   100% /snap/gnome-3-28-1804/198
loop16
     squash 4.0                                                    0   100% /snap/gnome-3-34-1804/93
loop17
     squash 4.0                                                    0   100% /snap/gnome-3-38-2004/143
loop18
     squash 4.0                                                    0   100% /snap/gnome-42-2204/141
loop19
     squash 4.0                                                    0   100% /snap/gnome-42-2204/172
loop20
     squash 4.0                                                    0   100% /snap/gtk2-common-themes/13
loop21
     squash 4.0                                                    0   100% /snap/gtk-common-themes/1535
loop22
     squash 4.0                                                    0   100% /snap/hello-world/29
loop23
     squash 4.0                                                    0   100% /snap/kf5-5-104-qt-5-15-8-core22/9
loop24
     squash 4.0                                                    0   100% /snap/kf5-5-108-qt-5-15-10-core22/5
loop25
     squash 4.0                                                    0   100% /snap/kf5-5-110-qt-5-15-11-core22/3
loop26
     squash 4.0                                                    0   100% /snap/kf5-5-111-qt-5-15-11-core22/5
loop27
     squash 4.0                                                    0   100% /snap/kf5-5-111-qt-5-15-11-core22/7
loop28
     squash 4.0                                                    0   100% /snap/opera/299
loop29
     squash 4.0                                                    0   100% /snap/opera/300
loop30
     squash 4.0                                                    0   100% /snap/skype/337
loop31
     squash 4.0                                                    0   100% /snap/skype/340
loop32
     squash 4.0                                                    0   100% /snap/slack/132
loop33
     squash 4.0                                                    0   100% /snap/slack/139
loop34
     squash 4.0                                                    0   100% /snap/snap-store/1113
loop35
     squash 4.0                                                    0   100% /snap/snap-store/959
loop36
     squash 4.0                                                    0   100% /snap/spotify/74
loop37
     squash 4.0                                                    0   100% /snap/spotify/75
loop38
     squash 4.0                                                    0   100% /snap/sumatrapdf/6
loop39
     squash 4.0                                                    0   100% /snap/telegram-desktop/973
loop40
     squash 4.0                                                    0   100% /snap/telegram-desktop/898
loop41
     squash 4.0                                                    0   100% /snap/wine-platform-7-stable-core20/6
loop42
     squash 4.0                                                    0   100% /snap/wine-platform-runtime-core20/107
loop43
     squash 4.0                                                    0   100% /snap/wine-platform-runtime-core20/108
sda                                                                         
└─sda1
     exfat  1.0         3931-3363                             112.6G    76% /media/linuxmint/sd
nvme0n1
│                                                                           
├─nvme0n1p1
│    vfat   FAT32       BDDB-2C6B                              92.3M     6% /boot/efi
├─nvme0n1p2
│                                                                           
├─nvme0n1p3
│    ext4   1.0         b0825e55-50c0-4894-a431-8670abf4a3b4                
├─nvme0n1p4
│    vfat   FAT32       286F-0DF6                                           
├─nvme0n1p5
│    ext4   1.0         0ca5353e-75f2-4bde-83a3-4163b5161c2d   15.9G    77% /
└─nvme0n1p6
     crypto 2           14302805-d206-4b14-b600-3575cabd5f24                
  └─nvme0n1p6_crypt
     ext4   1.0         57e5b53e-abcd-206f-9a7c-32d14bcf5c37  102.2G    63% /home
#################################################################################################### ################################################

cat /etc/fstab:

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=0ca5353e-75f2-4bde-83a3-4163b5161c2d /               ext4    noatime,errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
#UUID=F8A8-ECEB  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/nvme0n1p6_crypt /home           ext4    noatime,defaults        0       2
/swapfile                                 none            swap    sw              0       0
UUID=BDDB-2C6B  /boot/efi       vfat    defaults      0       1
#################################################################################################### #################################################

cat /etc/initramfs-tools/conf.d/resume

Code:
cat: /etc/initramfs-tools/conf.d/resume: No such file or directory
 
Old 04-05-2024, 05:19 PM   #9
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
It appears you have a linux system install on /dev/nvme0n1p3 and /dev/nvme0n1p5

These are the issues as I see them:
1. There is no /boot/grub.cfg on /dev/nvme0n1p5

2. The conflict of your lsblk post of the uuid of nvme0n1p3
Quote:
nvme0n1p3 ext4 1.0 b0825e55-50c0-4894-a431-8670abf4a3b4
versus the output of the boot-repair
Quote:
nvme0n1p3 ext4 80260417-5663-426b-b6c0-a7c6fc7c9a4e
3. The uuid in EFI/ubuntu/grub.cfg needs to match the correct uuid of /dev/nvme0n1p3 or the uuid of /dev/nvme0n1p5

Last edited by colorpurple21859; 04-05-2024 at 05:26 PM.
 
1 members found this post helpful.
Old 04-05-2024, 05:26 PM   #10
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
It appears you have a linux system install on /dev/nvme0n1p3 and /dev/nvme0n1p5

These are the issues as I see them:
1. The uuid in the EFI/ubuntu/grub.cfg on the efi partition needs to changed to the uuid of either /dev/nvme0n1p3 or /dev/nvme0n1p5

2. There is no grub.cfg in /boot of /dev/nvme0n1p5

3. The conflict of your post

versus the output of the boot-repair
The linux on /dev/nvme0n1p5 is my main system, this is the one I want to regain control of the boot partition. How do I do that?
 
Old 04-05-2024, 05:52 PM   #11
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
Boot into the system on /dev/nvme0n1p5, open a terminal,
Code:
sudo grub-install
sudo update-grub
If you still get a grub> open a termial,
change the uuid of /boot/efi/EFI/ubuntu/grub.cfg to the uuid /dev/nvme0n1p5: 0ca5353e-75f2-4bde-83a3-4163b5161c2d
Code:
sudo nano /boot/efi/EFI/ubuntu/grub.cfg

Last edited by colorpurple21859; 04-05-2024 at 05:57 PM.
 
1 members found this post helpful.
Old 04-07-2024, 06:16 AM   #12
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Boot into the system on /dev/nvme0n1p5, open a terminal,
Code:
sudo grub-install
sudo update-grub
If you still get a grub> open a termial,
change the uuid of /boot/efi/EFI/ubuntu/grub.cfg to the uuid /dev/nvme0n1p5: 0ca5353e-75f2-4bde-83a3-4163b5161c2d
Code:
sudo nano /boot/efi/EFI/ubuntu/grub.cfg

Thanks Colorpurple.

I've attempted some other ways of solving the problem and the outputs of previous commands may have changed. So I've rerun the commands and pasted the outputs below. I haven't rerun Boot-repair from a live USB because I don't want to break grub again.

From my experimenting, there seems to be some unresolvable problem between initramfs and available fonts.

Here are the outputs:

sudo grub-install:

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


sudo update-grub:

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 ...
/usr/sbin/grub-probe: error: failed to get canonical path of `/boot/grub/fonts/UbuntuMono32.pf2'.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.





**************************************************************************************************** **********
lsblk -f:


Code:
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
                                                                   0   100% /snap/bare/5
loop1
                                                                   0   100% /snap/chromium-ffmpeg/34
loop2
                                                                   0   100% /snap/chromium-ffmpeg/37
loop3
                                                                   0   100% /snap/core/16574
loop4
                                                                   0   100% /snap/core/16928
loop5
                                                                   0   100% /snap/core18/2796
loop6
                                                                   0   100% /snap/core18/2812
loop7
                                                                   0   100% /snap/core20/2105
loop8
     squash 4.0                                                    0   100% /snap/core20/2182
loop9
     squash 4.0                                                    0   100% /snap/core22/1033
loop10
     squash 4.0                                                    0   100% /snap/core22/1122
loop11
     squash 4.0                                                    0   100% /snap/dolphin/54
loop12
     squash 4.0                                                    0   100% /snap/dolphin/56
loop13
     squash 4.0                                                    0   100% /snap/eiskaltdcpp/319
loop14
     squash 4.0                                                    0   100% /snap/fslint-unofficial/73
loop15
     squash 4.0                                                    0   100% /snap/gnome-3-28-1804/198
loop16
     squash 4.0                                                    0   100% /snap/gnome-3-34-1804/93
loop17
     squash 4.0                                                    0   100% /snap/gnome-3-38-2004/143
loop18
     squash 4.0                                                    0   100% /snap/gnome-42-2204/141
loop19
     squash 4.0                                                    0   100% /snap/gnome-42-2204/172
loop20
     squash 4.0                                                    0   100% /snap/gtk2-common-themes/13
loop21
     squash 4.0                                                    0   100% /snap/gtk-common-themes/1535
loop22
     squash 4.0                                                    0   100% /snap/hello-world/29
loop23
     squash 4.0                                                    0   100% /snap/kf5-5-104-qt-5-15-8-core22/9
loop24
     squash 4.0                                                    0   100% /snap/kf5-5-108-qt-5-15-10-core22/5
loop25
     squash 4.0                                                    0   100% /snap/kf5-5-111-qt-5-15-11-core22/5
loop26
     squash 4.0                                                    0   100% /snap/kf5-5-110-qt-5-15-11-core22/3
loop27
     squash 4.0                                                    0   100% /snap/kf5-5-111-qt-5-15-11-core22/7
loop29
     squash 4.0                                                    0   100% /snap/opera/298
loop30
                                                                   0   100% /snap/telegram-desktop/5767
loop31
     squash 4.0                                                    0   100% /snap/skype/336
loop32
     squash 4.0                                                    0   100% /snap/slack/132
loop33
     squash 4.0                                                    0   100% /snap/slack/139
loop34
     squash 4.0                                                    0   100% /snap/snap-store/1113
loop35
     squash 4.0                                                    0   100% /snap/snap-store/959
loop36
                                                                   0   100% /snap/opera/300
loop37
     squash 4.0                                                    0   100% /snap/spotify/74
loop38
     squash 4.0                                                    0   100% /snap/telegram-desktop/5627
loop39
     squash 4.0                                                    0   100% /snap/spotify/75
loop40
                                                                   0   100% /snap/skype/340
sda                                                                         
└─sda1
     exfat  1.0         3931-3363                             115.2G    76% /media/user1/3931-3363
nvme0n1
│                                                                           
├─nvme0n1p1
│    vfat   FAT32       2B41-5D29                                           
├─nvme0n1p2
│    ext4   1.0         0ca5353e-55f2-4bde-85a3-4183a5361c2d   27.5G    64% /
├─nvme0n1p3
│    ext4   1.0         b5b94bdb-d97d-48d0-8f30-bcedf470b919                
└─nvme0n1p4
     crypto 2           14302805-d206-4b14-b600-3575cabd5f24                
  └─luks-14302805-d206-4b14-b600-3575cabd5f24
     ext4   1.0         57e7b57e-abcd-406f-9a5c-32d12bcf7c57  108.4G    61% /home
**************************************************************************************************** ************

cat /etc/fstab:


Code:
# <file system> <mount point> <type> <options> <dump> <pass>

UUID=0ca5353e-55f2-4bde-85a3-4183a5361c2d	/	ext4	noatime,errors=remount-ro	0	1
UUID=57e7b57e-abcd-406f-9a5c-32d12bcf7c57	/home	ext4	noatime,defaults	0	2
/swapfile	none	swap	sw	0	0
**************************************************************************************************** **********************************************

cat /etc/initramfs-tools/conf.d/resume:
Code:
cat: /etc/initramfs-tools/conf.d/resume: No such file or directory
 
Old 04-07-2024, 08:22 AM   #13
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
Quote:
I haven't rerun Boot-repair from a live USB because I don't want to break grub again.
I'd suggest you go back to the boot repair site (link below) and read through the 4th paragraph highlighted on that page where it explains that there is an option to gather information (Create Bootinfo Summary) to be used for people who are not familiar with Linux bootloader. If you select that option, it will gather information and will not make any changes and since you have run it several times, it is possible you crated additional problems.

https://help.ubuntu.com/community/Boot-Repair

I would suggest when you are modifying partitions that you keep detailed records/notes as to exactly what steps you take, how you took the steps (specific software used) so you have that information available if you have problems and need help.

How were you trying to reinstall Grub when you got the 'cannot find EFI directory' message? Booted from partition 5, partition 3, a live usb? Was your original install of Mint on partition 5 an EFI install? Your boot repair output shows 0ca5353e-55f2-4bde-85a3-4183a5361c2d as the UUID for partition 5. Your most recent output from lsblk shows b5b94bdb-d97d-48d0-8f30-bcedf470b919 as the UUID for partition 5 yet the grub.cfg file on your EFI partition shows it as 80260417-5663-426b-b6c0-a7c6fc7c9a4e. The UUID in the grub.cfg file on the EFI partition must have the correct UUID for the partition it is pointing to, 3 or 5 whichever you choose and that is not the case. Are you aware that every time you reinstall you get a new UUID for the partition you are using? Put the correct UUID in the grub.cfg file on the EFI partition as suggested previously, save the change and reboot.

Was your original install of Mint on partition 5 an EFI install? You are also using LVM, was that on the original Mint or the newer Mint or both? I don't use LVM so have no advice on that.

Last edited by yancek; 04-07-2024 at 12:23 PM.
 
1 members found this post helpful.
Old 04-07-2024, 09:19 AM   #14
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
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?
 
1 members found this post helpful.
Old 04-07-2024, 09:31 AM   #15
Frickymind
LQ Newbie
 
Registered: Apr 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I'd suggest you go back to the boot repair site (link below) and read through the 4th paragraph highlighted on that page where it explains that there is an option to gather information (Create Bootinfo Summary) to be used for people who are not familiar with Linux bootloader. If you select that option, it will gather information and will not make any changes and since you have run it several times, it is possible you crated additional problems.

I would suggest when you are modifying partitions that you keep detailed records/notes as to exactly what steps you take, how you took the steps (specific software used) so you have that information available if you have problems and need help.

How were you trying to reinstall Grub when you got the 'cannot find EFI directory' message? Booted from partition 5, partition 3, a live usb? Was your original install of Mint on partition 5 an EFI install? Your boot repair output shows 0ca5353e-55f2-4bde-85a3-4183a5361c2d as the UUID for partition 5. Your most recent output from lsblk shows b5b94bdb-d97d-48d0-8f30-bcedf470b919 as the UUID for partition 5 yet the grub.cfg file on your EFI partition shows it as 80260417-5663-426b-b6c0-a7c6fc7c9a4e. The UUID in the grub.cfg file on the EFI partition must have the correct UUID for the partition it is pointing to, 3 or 5 whichever you choose and that is not the case. Are you aware that every time you reinstall you get a new UUID for the partition you are using? Put the correct UUID in the grub.cfg file on the EFI partition as suggested previously, save the change and reboot.

Was your original install of Mint on partition 5 an EFI install? You are also using LVM, was that on the original Mint or the newer Mint or both? I don't use LVM so have no advice on that.
Hi Yancek,
Thanks for the help.
Here's the latest Boot Info summary run from within my main install: http://sprunge.us/1S5Jul
I got the 'cannot find EFI directory' message trying to install grub from with my main installation, which is now p4. I don't know if my original install of Mint on partition 5 was an EFI install. The machine originally had windows on it and I installed Linux Mint alongside that.

As per colorpurple21859's instructions, I have already put the correct (I think) UUID in grub.cfg and rebooted, to no obvious effect.
 
  


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 06:15 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