Code:
boot-repair-4ppa125 [20210206_1348]
============================= Boot Repair Summary ==============================
=================== /boot detected. Please check the options.
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi-amd64-signed of
sda1,
using the following options: sda6/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file
/boot/efi added in sda1/fstab
Mount sda6 on /mnt/boot-sav/sda1/boot/efi
Unhide GRUB boot menu in sda1/etc/default/grub
================= Reinstall the grub-efi-amd64-signed of sda1 ==================
grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.8
efibootmgr -v from chroot before grub install
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0005,0003,0004
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)AMGOAMNO........o.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a....................A...........................>..Gd-.;.A..MQ..L.1.S.A.3.8.6.F.E.0.B.1.0.X.8. . . . . . ......AMBOAMNO........o.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a....................A...........................>..Gd-.;.A..MQ..L.1.S.A.3.8.6.F.E.0.B.1.0.N.8. . . . . . ......AMBO
Boot0004* Hard Drive BBS(HD,,0x0)AMGOAMNO..........S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2....................A........................1.N........>.;.....................:..Gd-.;.A..MQ..L.S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2......AMBOAMNO..........S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2....................A........................1.N........>.;.....................:..Gd-.;.A..MQ..L.S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2......AMBO
Boot0005* UEFI: ASUS DRW-24F1ST a PciRoot(0x0)/Pci(0x1f,0x2)/Sata(4,65535,0)/CDROM(1,0xc16a5,0x1f00)AMBO
uname -r
5.4.0-26-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/sda6
mv /mnt/boot-sav/sda1/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda1/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda1/boot/efi/EFI/ubuntu/shimx64.efi /mnt/boot-sav/sda1/boot/efi/EFI/Boot/bootx64.efi
cp /mnt/boot-sav/sda1/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/sda1/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: 0005
Timeout: 1 seconds
BootOrder: 0005,0003,0004
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)AMGOAMNO........o.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a....................A...........................>..Gd-.;.A..MQ..L.1.S.A.3.8.6.F.E.0.B.1.0.X.8. . . . . . ......AMBOAMNO........o.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a....................A...........................>..Gd-.;.A..MQ..L.1.S.A.3.8.6.F.E.0.B.1.0.N.8. . . . . . ......AMBO
Boot0004* Hard Drive BBS(HD,,0x0)AMGOAMNO..........S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2....................A........................1.N........>.;.....................:..Gd-.;.A..MQ..L.S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2......AMBOAMNO..........S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2....................A........................1.N........>.;.....................:..Gd-.;.A..MQ..L.S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2......AMBO
Boot0005* UEFI: ASUS DRW-24F1ST a PciRoot(0x0)/Pci(0x1f,0x2)/Sata(4,65535,0)/CDROM(1,0xc16a5,0x1f00)AMBO
Error: NVram is locked (Ubuntu not found in efibootmgr).
chroot /mnt/boot-sav/sda1 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-26-generic
Found initrd image: /boot/initrd.img-5.4.0-26-generic
Adding boot menu entry for UEFI Firmware Settings
Unhide GRUB boot menu in sda1/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 ============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos6)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp fat part_msdos biosdisk
---------------------------------------------------------------------------
=> Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for /grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk search_fs_uuid
---------------------------------------------------------------------------
config script
---------------------------------------------------------------------------
search.fs_uuid ab34b4b4-72dd-4f56-8ecb-6f23fea2d37d root hd0,msdos1
set prefix=($root)'/grub'
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg
sda3: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda6: __________________________________________________________________________
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 /boot/grub/i386-pc/core.img
sda4: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 1 OS detected =================================
OS#1: Ubuntu 20.04 LTS on sda1
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04 LTS, focal, x86_64)
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot enabled.
efibootmgr -v
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0005,0003,0004
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)AMGOAMNO........o.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a....................A...........................>..Gd-.;.A..MQ..L.1.S.A.3.8.6.F.E.0.B.1.0.X.8. . . . . . ......AMBOAMNO........o.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a....................A...........................>..Gd-.;.A..MQ..L.1.S.A.3.8.6.F.E.0.B.1.0.N.8. . . . . . ......AMBO
Boot0004* Hard Drive BBS(HD,,0x0)AMGOAMNO..........S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2....................A........................1.N........>.;.....................:..Gd-.;.A..MQ..L.S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2......AMBOAMNO..........S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2....................A........................1.N........>.;.....................:..Gd-.;.A..MQ..L.S.T.1.0.0.0.D.X.0.0.1.-.1.C.M.1.6.2......AMBO
Boot0005* UEFI: ASUS DRW-24F1ST a PciRoot(0x0)/Pci(0x1f,0x2)/Sata(4,65535,0)/CDROM(1,0xc16a5,0x1f00)AMBO
2895d47544fd587b26c7e29be1295c27 sda6/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda6/BOOT/mmx64.efi
637fa7fabc8a2f70312edf2f15e275ff sda6/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sda6/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sda6/ubuntu/shimx64.efi
78415fb8fb9b909f8029858113f1335f sda6/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : notGPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, grubenv-ok, noupdategrub, farbios
sda5 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda6 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda5 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda6 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda2 : is-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda5 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda6 : not-sepboot, no-kernel, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sdb1 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 0x0009b5f7
Boot Start End Sectors Size Id Type
sda1 2048 266649599 266647552 127.2G 83 Linux
sda2 266649600 1350946815 1084297216 517G 83 Linux
sda3 1422628862 1953523711 530894850 253.2G 5 Extended
sda4 1350946816 1422626815 71680000 34.2G 82 Linux swap / Solaris
sda5 1432926208 1953523711 520597504 248.2G 83 Linux
sda6 * 1422628864 1432926207 10297344 4.9G ef EFI (FAT-12/16/32)
Partition table entries are not in disk order.
Disk sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 0x0007c84e
Boot Start End Sectors Size Id Type
sdb1 2048 1953523711 1953521664 931.5G 83 Linux
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:msdos:ATA ST1000DX001-1CM1:;
1:1049kB:137GB:137GB:ext4::;
2:137GB:692GB:555GB:ext4::;
4:692GB:728GB:36.7GB:linux-swap(v1)::;
3:728GB:1000GB:272GB:::;
6:728GB:734GB:5272MB:fat32::boot, esp;
5:734GB:1000GB:267GB:ext4::;
sdb:1000GB:scsi:512:4096:msdos:ATA ST1000DX001-1CM1:;
1:1049kB:1000GB:1000GB:ext4::;
sr0:1663MB:scsi:2048:2048:mac:ASUS DRW-24F1ST a:;
1:2048B:6143B:4096B::Apple:;
2:1622MB:1627MB:4063kB::EFI:;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ext4 687192f6-44d3-4c70-b89b-03fa3b0260ab 0009b5f7-01
├─sda2 ext4 14c4cb48-f927-426d-ac55-2836a6d88848 0009b5f7-02 Documents
├─sda3 0009b5f7-03
├─sda4 swap 8847cc1b-17ef-42a3-a851-dca1cd3b520f 0009b5f7-04
├─sda5 ext4 9783d144-806c-4951-8254-157164f5969d 0009b5f7-05 GAMES
└─sda6 vfat 1B76-D392 0009b5f7-06
sdb
└─sdb1 ext4 49edc58d-2c86-4524-b850-0b872ada1114 0007c84e-01 Tv and Video Rec
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda1 113G 4% /mnt/boot-sav/sda1
sda2 476.3G 1% /mnt/boot-sav/sda2
sda5 216.3G 6% /mnt/boot-sav/sda5
sda6 4.9G 0% /mnt/boot-sav/sda6
sdb1 869.2G 0% /mnt/boot-sav/sdb1
Mount options: __________________________________________________________________
sda1 rw,relatime
sda2 rw,relatime,stripe=32746
sda5 rw,relatime
sda6 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb1 rw,relatime
====================== sda1/boot/grub/grub.cfg (filtered) ======================
Ubuntu 687192f6-44d3-4c70-b89b-03fa3b0260ab
Ubuntu, with Linux 5.4.0-26-generic 687192f6-44d3-4c70-b89b-03fa3b0260ab
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda1/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=687192f6-44d3-4c70-b89b-03fa3b0260ab / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda6 during installation
# swap was on /dev/sda4 during installation
UUID=8847cc1b-17ef-42a3-a851-dca1cd3b520f none swap sw 0 0
UUID=1B76-D392 /boot/efi vfat defaults 0 1
======================= sda1/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=""
==================== sda1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
0.000980377 = 0.001052672 boot/grub/grub.cfg 1
100.135765076 = 107.519959040 boot/grub/i386-pc/core.img 1
2.418083191 = 2.596397056 boot/vmlinuz 1
2.418083191 = 2.596397056 boot/vmlinuz-5.4.0-26-generic 1
3.462127686 = 3.717431296 boot/initrd.img 2
3.462127686 = 3.717431296 boot/initrd.img-5.4.0-26-generic 2
3.462127686 = 3.717431296 boot/initrd.img.old 2
===================== sda1: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 17622 Jan 13 14:12 10_linux
-rwxr-xr-x 1 root root 42359 Jan 13 14:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Apr 15 2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 Apr 15 2020 30_os-prober
-rwxr-xr-x 1 root root 1424 Apr 15 2020 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 15 2020 40_custom
-rwxr-xr-x 1 root root 216 Apr 15 2020 41_custom
======================== sda2/grub/grub.cfg (filtered) =========================
Ubuntu acd94238-622c-41eb-9138-8cf7e9bd3606
Ubuntu, with Linux 5.8.0-41-generic acd94238-622c-41eb-9138-8cf7e9bd3606
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
355.773437500 = 382.008819712 grub/grub.cfg 2
127.801834106 = 137.226174464 vmlinuz 1
127.801834106 = 137.226174464 vmlinuz-5.8.0-41-generic 1
127.801834106 = 137.226174464 vmlinuz.old 1
127.881195068 = 137.311387648 initrd.img 2
127.881195068 = 137.311387648 initrd.img-5.8.0-41-generic 2
127.881195068 = 137.311387648 initrd.img.old 2
===================== sda6/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 687192f6-44d3-4c70-b89b-03fa3b0260ab root hd0,msdos1
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
==================== sda6: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/i386-pc/core.img 1
]
Bookmarks