boot-repair-4ppa130 [20220518_1442] ============================= Boot Repair Summary ============================== Default settings: ______________________________________________________________ The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of sda2, using the following options: sda1/boot/efi, Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups Final advice in case of suggested repair: ______________________________________ Please do not forget to make your UEFI firmware boot on the Linux Mint 20.3 Una (20.3) entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) ! User settings: _________________________________________________________________ The settings chosen by the user will purge (in order to unsign-grub) and 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 /boot/efi added in sda2/fstab 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/efi chroot /mnt apt-get -y update Purge the GRUB of sda2 grub-efi available The following additional packages will be installed: grub-common grub-efi-amd64 grub-pc-bin grub2-common Suggested packages: multiboot-doc grub-emu xorriso desktop-base The following packages will be REMOVED: grub-gfxpayload-lists grub-pc The following NEW packages will be installed: grub-efi grub-efi-amd64 The following packages will be upgraded: grub-common grub-pc-bin grub2-common 3 upgraded, 2 newly installed, 2 to remove and 306 not upgraded. DEBCHECK debOK, grub-efi DEBCHECK debOK shim-signed available Please type: sudo chroot "/mnt" dpkg --configure -ansudo chroot "/mnt" apt-get install -fynsudo chroot "/mnt" apt-get purge --allow-remove-essential -y grub*-common shim-signed Then type: sudo chroot "/mnt" apt-get install -y grub-efi Unhide GRUB boot menu in sda2/etc/default/grub ======================== Reinstall the grub-efi of sda2 ======================== grub-install --version grub-install (GRUB) 2.04-1ubuntu26.15 efibootmgr -v from chroot before grub install BootCurrent: 0006 Timeout: 0 seconds BootOrder: 0007,0008,0006,0003,0004,0005 Boot0000 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9) Boot0001 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf) Boot0002 Diagnostic Splash FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380) Boot0003* SATA 0: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600) Boot0004* SATA 1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601) Boot0005* PXE LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803) Boot0006* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803) Boot0007* USB FDC: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49) Boot0008* USB CD-ROM: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55) uname -r 5.4.0-91-generic grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-uefi-secure-boot Installing for x86_64-efi platform. grub-install: warning: Cannot set EFI variable Boot0009. grub-install: warning: vars_set_variable: write() failed: Invalid argument. grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: No such file or directory. grub-install: error: failed to register the EFI boot entry: No such file or directory. Exit code: 1 df /dev/sda1 mv /mnt/boot/efi/EFI/Boot/bootx64.efi /mnt/boot/efi/EFI/Boot/bkpbootx64.efi cp /mnt/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot/efi/EFI/Boot/bootx64.efi grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-uefi-secure-boot Installing for x86_64-efi platform. grub-install: warning: Cannot set EFI variable Boot0009. grub-install: warning: vars_set_variable: write() failed: Invalid argument. grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: No such file or directory. grub-install: error: failed to register the EFI boot entry: No such file or directory. Exit code: 1 ---- Grub-install recheck /sbin/grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-uefi-secure-boot --recheck Installing for x86_64-efi platform. /sbin/grub-install: warning: Cannot set EFI variable Boot0009. /sbin/grub-install: warning: vars_set_variable: write() failed: Invalid argument. /sbin/grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: No such file or directory. /sbin/grub-install: error: failed to register the EFI boot entry: No such file or directory. Exit code: 1 ---- End of grub-install recheck efibootmgr -v from chroot after grub install BootCurrent: 0006 Timeout: 0 seconds BootOrder: 0007,0008,0006,0003,0004,0005 Boot0000 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9) Boot0001 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf) Boot0002 Diagnostic Splash FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380) Boot0003* SATA 0: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600) Boot0004* SATA 1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601) Boot0005* PXE LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803) Boot0006* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803) Boot0007* USB FDC: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49) Boot0008* USB CD-ROM: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55) Error: NVram is locked (Linuxmint not found in efibootmgr). chroot /mnt update-grub Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/50_linuxmint.cfg' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.4.0-91-generic Found initrd image: /boot/initrd.img-5.4.0-91-generic File descriptor 63 (pipe:[68146]) leaked on lvs invocation. Parent PID 38217: /bin/sh Unhide GRUB boot menu in sda2/boot/grub/grub.cfg An error occurred during the repair. Locked-NVram detected. Please disable SecureBoot in the BIOS. Then try again. ============================ Boot Info After Repair ============================ => No boot loader is installed in the MBR of /dev/sda. => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb. sda1: __________________________________________________________________________ File system: vfat Boot sector type: FAT32 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files: sda2: __________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Linux Mint 20.3 Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub sdb1: __________________________________________________________________________ File system: vfat Boot sector type: SYSLINUX 6.04 Boot sector info: Syslinux looks at sector 32776 of /dev/sdb1 for its second stage. The integrity check of Syslinux failed. No errors found in the Boot Parameter Block. Operating System: Boot files: /boot/grub/grub.cfg /syslinux.cfg /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi /ldlinux.sys ================================ 1 OS detected ================================= OS#1: Linux Mint 20.3 Una (20.3) on sda2 ============================ Architecture/Host Info ============================ CPU architecture: 64-bit Live-session OS is Linuxmint 64-bit (Linux Mint 20.3, una, x86_64) ===================================== UEFI ===================================== BIOS is EFI-compatible, and is setup in EFI-mode for this live-session. efibootmgr -v BootCurrent: 0006 Timeout: 0 seconds BootOrder: 0007,0008,0006,0003,0004,0005 Boot0000 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9) Boot0001 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf) Boot0002 Diagnostic Splash FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380) Boot0003* SATA 0: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600) Boot0004* SATA 1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601) Boot0005* PXE LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803) Boot0006* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803) Boot0007* USB FDC: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49) Boot0008* USB CD-ROM: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55) This session has been detected as 'live' because /proc/cmdline contains (boot=casper) This session has been detected as 'live' because df -Th / contains overlay 728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/bootx64.efi 85fa9d77b929ec4231aba29476574eb6 sda1/BOOT/fbx64.efi fa1bf1a7f90a852abe0bdbd089b7f1b0 sda1/BOOT/grubx64.efi 469e608783843a701d172242f016c79c sda1/BOOT/mmx64.efi fa1bf1a7f90a852abe0bdbd089b7f1b0 sda1/ubuntu/grubx64.efi 469e608783843a701d172242f016c79c 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, 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, 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 Partitions info (3/3): _________________________________________________________ sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda sda2 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda fdisk -l (filtered): ___________________________________________________________ Disk sda: 232.91 GiB, 250059350016 bytes, 488397168 sectors Disk identifier: 1A790C5E-BC50-453C-AFE5-9CC816ECDD39 Start End Sectors Size Type sda1 2048 1050623 1048576 512M EFI System sda2 1050624 488396799 487346176 232.4G Linux filesystem Disk sdb: 7.51 GiB, 8053063680 bytes, 15728640 sectors Disk identifier: 0x002d733c Boot Start End Sectors Size Id Type sdb1 * 2048 15728639 15726592 7.5G c W95 FAT32 (LBA) parted -lm (filtered): _________________________________________________________ sda:250GB:scsi:512:512:gpt:ATA WDC WD2500BEVT-2:; 1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp; 2:538MB:250GB:250GB:ext4::; sdb:8053MB:scsi:512:512:msdos:Generic Flash Disk:; 1:1049kB:8053MB:8052MB:fat32::boot, lba; blkid (filtered): ______________________________________________________________ NAME FSTYPE UUID PARTUUID LABEL PARTLABEL sda ├─sda1 vfat AD9A-D051 72661b5f-1a5f-4049-a492-364997d9ec11 EFI System Partition └─sda2 ext4 4fe064bf-48a2-4d83-a8f8-04724eea0fe0 2a392971-3221-480e-ae97-ae8db4ee2004 sdb └─sdb1 vfat 0071-19BF 002d733c-01 LINUX MINT df (filtered): _________________________________________________________________ Avail Use% Mounted on sda1 506.3M 1% /mnt/boot-sav/sda1 sda2 207.8G 4% /mnt sdb1 5.4G 28% /cdrom Mount options: __________________________________________________________________ sda1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro sda2 rw,relatime sdb1 ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro ====================== sda2/boot/grub/grub.cfg (filtered) ====================== Ubuntu 4fe064bf-48a2-4d83-a8f8-04724eea0fe0 Ubuntu, with Linux 5.4.0-91-generic 4fe064bf-48a2-4d83-a8f8-04724eea0fe0 ### 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=4fe064bf-48a2-4d83-a8f8-04724eea0fe0 / ext4 errors=remount-ro 0 1 # /boot/efi was on /dev/sda1 during installation /swapfile none swap sw 0 0 UUID=AD9A-D051 /boot/efi vfat defaults 0 1 ======================= sda2/etc/default/grub (filtered) ======================= GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" ==================== sda2: Location of files loaded by Grub ==================== GiB - GB File Fragment(s) 0.500980377 = 0.537923584 boot/grub/grub.cfg 1 5.079097748 = 5.453639680 boot/vmlinuz 2 5.079097748 = 5.453639680 boot/vmlinuz-5.4.0-91-generic 2 97.262660980 = 104.434987008 boot/initrd.img 3 97.262660980 = 104.434987008 boot/initrd.img-5.4.0-91-generic 3 97.262660980 = 104.434987008 boot/initrd.img.old 3 ===================== sda2: ls -l /etc/grub.d/ (filtered) ====================== -rwxr-xr-x 1 root root 18224 Jan 11 15:09 10_linux -rwxr-xr-x 1 root root 42359 Jan 11 15:09 10_linux_zfs -rwxr-xr-x 1 root root 12894 Jan 11 15:09 20_linux_xen -rwxr-xr-x 1 root root 12059 Jan 11 15:09 30_os-prober -rwxr-xr-x 1 root root 1424 Jan 11 15:09 30_uefi-firmware -rwxr-xr-x 1 root root 214 Jan 11 15:09 40_custom -rwxr-xr-x 1 root root 216 Jan 11 15:09 41_custom ====================== sdb1/boot/grub/grub.cfg (filtered) ====================== Start Linux Mint 20.3 Cinnamon 64-bit Start Linux Mint 20.3 Cinnamon 64-bit (compatibility mode) OEM install (for manufacturers) Check the integrity of the medium ========================= sdb1/syslinux.cfg (filtered) ========================= DEFAULT loadconfig LABEL loadconfig CONFIG /isolinux/isolinux.cfg APPEND /isolinux/ ==================== sdb1: Location of files loaded by Grub ==================== GiB - GB File Fragment(s) ?? = ?? boot/grub/grub.cfg 1 ================== sdb1: Location of files loaded by Syslinux ================== GiB - GB File Fragment(s) ?? = ?? syslinux.cfg 1 ?? = ?? ldlinux.sys 1 =============================== StdErr Messages ================================ File descriptor 63 (pipe:[68146]) leaked on lvs invocation. Parent PID 21148: /bin/bash |