Code:
boot-repair-4ppa125 [20200818_0118]
============================= Boot Repair Summary ==============================
/usr/share/boot-sav/bs-cmd_terminal.sh: line 177: warning: command substitution: ignored null byte in input
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi-amd64-signed of
sda2,
using the following options: sda1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file
/boot/efi added in sda2/fstab
Mount sda1 on /mnt/boot-sav/sda2/boot/efi
ls: cannot access '/mnt/boot-sav/sda2/boot/efi/efi': No such file or directory
No sda2/boot/efi/efi/ ubuntu/mint folder
Unhide GRUB boot menu in sda2/etc/default/grub
================= Reinstall the grub-efi-amd64-signed of sda2 ==================
grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.2
efibootmgr -v from chroot before grub install
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001
Boot0001* UEFI: VendorCoProductCode 2.00, Partition 1 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(7,0)/HD(1,GPT,43d91da7-d9b0-4a91-b077-51d10bc28555,0x800,0xeff7df)..BO
uname -r
5.4.0-42-generic
grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Exit code: 1
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/shimx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi
cp /mnt/boot-sav/sda2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/
grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Exit code: 1
---- Grub-install recheck
/sbin/grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot --recheck
Installing for x86_64-efi platform.
/sbin/grub-install: warning: Internal error.
/sbin/grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Exit code: 1
---- End of grub-install recheck
efibootmgr -v from chroot after grub install
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001
Boot0001* UEFI: VendorCoProductCode 2.00, Partition 1 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(7,0)/HD(1,GPT,43d91da7-d9b0-4a91-b077-51d10bc28555,0x800,0xeff7df)..BO
Error: NVram is locked (Ubuntu not found in efibootmgr).
chroot /mnt/boot-sav/sda2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
Adding boot menu entry for UEFI Firmware Settings
Unhide GRUB boot menu in sda2/boot/grub/grub.cfg
An error occurred during the repair.
Locked-NVram detected.
============================ Boot Info After Repair ============================
=> No boot loader is installed in the MBR of /dev/sda.
=> No known boot loader 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: /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: Ubuntu 20.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: 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
================================ 1 OS detected =================================
OS#1: Ubuntu 20.04.1 LTS on sda2
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.1 LTS, focal, x86_64)
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.
efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001
Boot0001* UEFI: VendorCoProductCode 2.00, Partition 1 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(7,0)/HD(1,GPT,43d91da7-d9b0-4a91-b077-51d10bc28555,0x800,0xeff7df)..BO
============================= 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, no-grubenv, 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: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: C71F4D8F-E050-4A96-83D6-994C194D2B18
Start End Sectors Size Type
sda1 2048 514047 512000 250M EFI System
sda2 514048 250068991 249554944 119G Linux filesystem
Disk sdb: 7.51 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: F59CF8D1-634D-47E1-8646-68B1FBCE8B7F
Start End Sectors Size Type
sdb1 2048 15728606 15726559 7.5G Microsoft basic data
parted -lm (filtered): _________________________________________________________
sda:128GB:scsi:512:512:gpt:ATA M4-CT128M4SSD2:;
1:1049kB:263MB:262MB:fat32::boot, esp;
2:263MB:128GB:128GB:ext4::;
sdb:8053MB:scsi:512:512:gpt:VendorCo ProductCode:;
1:1049kB:8053MB:8052MB:fat32:Main Data Partition:msftdata;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 8841-7B12 96e098e1-0067-47ec-b745-91354e6ba60e EFI
└─sda2 ext4 79e70783-ee8e-46df-9fbe-c417a3e46f9f 9aa442ef-44f5-4eea-b34c-1863f17229dd
sdb
└─sdb1 vfat 7692-9FCC 43d91da7-d9b0-4a91-b077-51d10bc28555 UBUNTU 20_0 Main Data Partition
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda1 235.5M 4% /mnt/boot-sav/sda1
sda2 103.4G 6% /mnt/boot-sav/sda2
sdb1 4.9G 35% /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
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 79e70783-ee8e-46df-9fbe-c417a3e46f9f root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu 79e70783-ee8e-46df-9fbe-c417a3e46f9f
Ubuntu, with Linux 5.4.0-42-generic 79e70783-ee8e-46df-9fbe-c417a3e46f9f
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### 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=79e70783-ee8e-46df-9fbe-c417a3e46f9f / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
/swapfile none swap sw 0 0
UUID=8841-7B12 /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.245121002 = 0.263196672 boot/grub/grub.cfg 1
4.427852631 = 4.754370560 boot/vmlinuz 1
4.427852631 = 4.754370560 boot/vmlinuz-5.4.0-42-generic 1
50.825092316 = 54.573027328 boot/initrd.img 2
50.825092316 = 54.573027328 boot/initrd.img-5.4.0-42-generic 2
50.825092316 = 54.573027328 boot/initrd.img.old 2
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 17123 Jul 31 00:34 10_linux
-rwxr-xr-x 1 root root 42128 Jul 31 00:34 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jul 31 00:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 31 00:34 30_os-prober
-rwxr-xr-x 1 root root 1424 Jul 31 00:34 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Jul 31 00:34 40_custom
-rwxr-xr-x 1 root root 216 Jul 31 00:34 41_custom
====================== sdb1/boot/grub/grub.cfg (filtered) ======================
Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings
========================= 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
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown MBR on /dev/sdb
00000000 41 4b 45 4f fc 31 c0 fa 8e d0 bc 00 7c fb 8e d8 |AKEO.1......|...|
00000010 bb 13 04 8b 07 83 e8 04 89 07 c1 e0 06 8e c0 b7 |................|
00000020 07 b8 7f 00 cd 10 31 db 31 c9 ba 4f 18 b8 00 06 |......1.1..O....|
00000030 cd 10 31 d2 b4 02 cd 10 b4 41 bb aa 55 cd 13 72 |..1......A..U..r|
00000040 27 81 fb 55 aa 75 21 f7 c1 01 00 74 1b 66 31 c0 |'..U.u!....t.f1.|
00000050 66 50 6a 22 06 66 50 6a 08 6a 10 89 e6 b4 42 cd |fPj".fPj.j....B.|
00000060 13 9f 83 c4 10 9e eb 0d b8 08 02 b9 23 00 ba 80 |............#...|
00000070 00 31 db cd 13 bb 07 00 72 0b 31 f6 8c c0 8e d8 |.1......r.1.....|
00000080 e8 3f 00 eb 06 be 17 7d e8 37 00 31 c0 8e d8 be |.?.....}.7.1....|
00000090 63 7d e8 2d 00 e8 1d 00 b4 01 cd 16 75 08 b4 02 |c}.-........u...|
000000a0 cd 16 24 04 74 f2 31 c0 8e d8 b8 34 12 a3 73 04 |..$.t.1....4..s.|
000000b0 ea 00 00 ff ff b4 01 cd 16 74 06 b4 00 cd 16 e2 |.........t......|
000000c0 f4 c3 ac 3c 00 74 4f 3c 0d 74 f7 3c 0a 75 10 53 |...<.tO<.t.<.u.S|
000000d0 b4 03 cd 10 fe c6 b2 00 b4 02 cd 10 5b eb e3 3c |............[..<|
000000e0 5c 75 1c b1 02 ac 3c 46 7f d8 2c 30 3c 09 7e 02 |\u....<F..,0<.~.|
000000f0 2c 07 c0 e3 04 24 0f 08 c3 fe c9 75 e8 eb c3 b9 |,....$.....u....|
00000100 01 00 b4 09 cd 10 53 31 db b4 03 cd 10 fe c2 b4 |......S1........|
00000110 02 cd 10 5b eb ac c3 0d 0a 20 20 20 20 20 20 20 |...[..... |
00000120 20 20 20 20 20 20 5c 30 34 2a 2a 2a 20 45 52 52 | \04*** ERR|
00000130 4f 52 3a 20 54 48 49 53 20 4d 45 44 49 41 20 43 |OR: THIS MEDIA C|
00000140 41 4e 4e 4f 54 20 42 4f 4f 54 20 49 4e 20 4c 45 |ANNOT BOOT IN LE|
00000150 47 41 43 59 20 4d 4f 44 45 20 2a 2a 2a 5c 30 37 |GACY MODE ***\07|
00000160 0d 0a 00 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 |....... |
00000170 20 20 20 20 5c 37 30 50 6c 65 61 73 65 20 72 65 | \70Please re|
00000180 6d 6f 76 65 20 74 68 69 73 20 6d 65 64 69 61 20 |move this media |
00000190 61 6e 64 20 70 72 65 73 73 20 61 6e 79 20 6b 65 |and press any ke|
000001a0 79 20 74 6f 20 72 65 62 6f 6f 74 5c 30 37 00 00 |y to reboot\07..|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001c0 02 00 ee fe ff d2 01 00 00 00 ff ff ff ff 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
=============================== StdErr Messages ================================
File descriptor 63 (pipe:[93097]) leaked on lvs invocation. Parent PID 13547: /bin/bash
Bookmarks