I ran boot-repair from my LM21 USB stick, and I've rebooted it twice so far with no GRUB prompt. Maybe it fixed it? Thanks to everyone who helped!
Code: Select all
boot-repair-4ppa200 [20220816_0041]
============================= Boot Repair Summary ==============================
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda2,
using the following options: sda1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
rm /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
Mount sda1 on /mnt/boot-sav/sda2/boot/efi
Unhide GRUB boot menu in sda2/etc/default/grub
======================== Reinstall the grub-efi of sda2 ========================
chroot /mnt/boot-sav/sda2 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-41-generic
chroot /mnt/boot-sav/sda2 modprobe efivars
chroot /mnt/boot-sav/sda2 efibootmgr -v before grub install
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6 PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIubuntushimx64.efi)
chroot /mnt/boot-sav/sda2 uname -r
5.15.0-41-generic
chroot /mnt/boot-sav/sda2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/sda1
mv /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi
chroot /mnt/boot-sav/sda2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
chroot /mnt/boot-sav/sda2 efibootmgr -v after grub install
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6 PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIubuntushimx64.efi)
Warning: NVram was not modified.
chroot /mnt/boot-sav/sda2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-5.15.0-46-generic
Found initrd image: /boot/initrd.img-5.15.0-46-generic
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-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.
Unhide GRUB boot menu in sda2/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Linux Mint 21 Vanessa (21) entry (sda1/efi/ubuntu/grubx64.efi file) !
============================ Boot Info After Repair ============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi
/efi/BOOT/fbx64.efi /efi/BOOT/grubx64.efi
/efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 21
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb: ___________________________________________________________________________
File system: iso9660
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
sdb and looks at sector 0 of the same hard drive for
core.img, but core.img can not be found at this
location.
Mounting failed: mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.
================================ 1 OS detected =================================
OS#1: Linux Mint 21 Vanessa (21) on sda2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Iris Plus Graphics G1 (Ice Lake) from Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21, vanessa, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 1.23.0(1.23) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled - Please report this message to boot.repair@gmail.com.
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6 PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271 sda1/BOOT/fbx64.efi
8ed07d5ee4e5e1534bcf64037b7589ff sda1/BOOT/grubx64.efi
fdafb5eece6caeccb788c946a28e6872 sda1/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872 sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, not-far
sda4 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda4 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 9BE00FD9-248B-4EB8-B46A-333AC41C66CD
Start End Sectors Size Type
sda1 2048 1050623 1048576 512M EFI System
sda2 1050624 40112127 39061504 18.6G Linux filesystem
sda3 1945712640 1953523711 7811072 3.7G Linux swap
sda4 40112128 1945712639 1905600512 908.7G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 3.72 GiB, 3997171712 bytes, 7806976 sectors
Disk identifier: 7D7473EA-FCE2-4E11-B09B-A49D0A25CE4C
Start End Sectors Size Type
sdb1 64 4775311 4775248 2.3G Microsoft basic data
sdb2 4775312 4783807 8496 4.1M EFI System
sdb3 4784128 7806912 3022785 1.4G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM035-1RK1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:20.5GB:20.0GB:ext4::;
4:20.5GB:996GB:976GB:ext4::;
3:996GB:1000GB:3999MB:linux-swap(v1)::swap;
sdb:3997MB:scsi:512:512:gpt: USB DISK Pro:;
1:32.8kB:2445MB:2445MB::ISO9660:hidden, msftdata;
2:2445MB:2449MB:4350kB::Appended2:boot, esp;
3:2449MB:3997MB:1548MB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat C3E8-0C68 6ca085f9-6787-4d89-8daf-e1c638a6a5a7 EFI System Partition
├─sda2 ext4 fba1695b-e0a1-433c-a0f6-2c5c122acac3 84d2a2fc-9e36-4bc7-92d4-e5cdf2061163
├─sda3 swap cd29ac08-9f85-45e9-ba9d-fafef8346b64 6398d480-fbe0-4a0e-bec3-b535612ba3fb
└─sda4 ext4 c786c0c3-1d0e-46e7-9987-e2f3b0dfda93 1de8c5b3-425a-4805-949c-d066f68da4e9
sdb iso9660 2022-07-26-15-24-44-00 Linux Mint 21 Cinnamon 64-bit
├─sdb1 iso9660 2022-07-26-15-24-44-00 7d7473ea-fce2-4e11-b09a-a49d0a25ce4c Linux Mint 21 Cinnamon 64-bit ISO9660
├─sdb2 vfat 8D6C-A9F8 7d7473ea-fce2-4e11-b099-a49d0a25ce4c ESP Appended2
└─sdb3 ext4 64a481cc-e6cf-4856-b2a2-19ee2582df61 05af1615-e8b7-424e-bb28-2bde5bff8545 writable
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2022-08-16.0/log] 1.3G 0% /var/log
/dev/sda1 471.2M 8% /mnt/boot-sav/sda1
/dev/sda2 5.8G 63% /mnt/boot-sav/sda2
/dev/sda4 101.4G 84% /mnt/boot-sav/sda4
/dev/sdb1 0 100% /cdrom
Mount options (filtered): ______________________________________________________
/dev/disk/by-label/writable[/install-logs-2022-08-16.0/log] ext4 rw,relatime
/dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2 ext4 rw,relatime
/dev/sda4 ext4 rw,relatime
/dev/sdb1 iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid fba1695b-e0a1-433c-a0f6-2c5c122acac3 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu fba1695b-e0a1-433c-a0f6-2c5c122acac3
Ubuntu, with Linux 5.15.0-46-generic fba1695b-e0a1-433c-a0f6-2c5c122acac3
Ubuntu, with Linux 5.15.0-43-generic fba1695b-e0a1-433c-a0f6-2c5c122acac3
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sda2/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=fba1695b-e0a1-433c-a0f6-2c5c122acac3 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=C3E8-0C68 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda4 during installation
UUID=c786c0c3-1d0e-46e7-9987-e2f3b0dfda93 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=cd29ac08-9f85-45e9-ba9d-fafef8346b64 none swap sw 0 0
======================= sda2/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 splash pci=noaer ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"
GRUB_DISABLE_OS_PROBER=false
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
9.612865448 = 10.321735680 boot/vmlinuz 2
9.612865448 = 10.321735680 boot/vmlinuz-5.15.0-43-generic 2
8.128902435 = 8.728342528 boot/vmlinuz-5.15.0-46-generic 1
8.128902435 = 8.728342528 boot/vmlinuz.old 1
5.469963074 = 5.873328128 boot/initrd.img-5.15.0-43-generic 1
9.604049683 = 10.312269824 boot/initrd.img-5.15.0-46-generic 1
9.604049683 = 10.312269824 boot/initrd.img.old 1
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 224 Aug 12 17:13 06_notpm
-rwxr-xr-x 1 root root 18683 Apr 15 21:50 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 21:50 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 21:50 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 21:50 30_os-prober
-rwxr-xr-x 1 root root 1372 Apr 15 21:50 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Feb 19 13:21 35_fwupd
-rwxr-xr-x 1 root root 214 Apr 15 21:50 40_custom
-rwxr-xr-x 1 root root 215 Apr 15 21:50 41_custom
=========================== sda2/etc/grub.d/06_notpm ===========================
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
rmmod tpm
=========================== sda2/etc/grub.d/35_fwupd ===========================
#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
. /var/lib/fwupd/uefi_capsule.conf
if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
${grub_probe:?}
prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
chainloader ${EFI_PATH}
}
EOF
fi
fi