Skip to content

Instantly share code, notes, and snippets.

@electron0zero
Created June 15, 2021 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electron0zero/8d9c399ae0413a836082e9f59084fd25 to your computer and use it in GitHub Desktop.
Save electron0zero/8d9c399ae0413a836082e9f59084fd25 to your computer and use it in GitHub Desktop.
Paste from boot-repair at Tue, 15 Jun 2021 09:18:33 +0000
boot-repair-4ppa130 [20210615_0915]
============================= Boot Repair Summary ==============================
Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
/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 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-sav/sda2/boot/efi
================= Reinstall the grub-efi-amd64-signed of sda2 ==================
grub-install --version
grub-install (GRUB) 2.04-1ubuntu45
efibootmgr -v from chroot before grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0005,0002,0003,0000,0001
Boot0000* Windows Boot Manager HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...K................
Boot0001* UEFI: BC511 NVMe SK hynix 512GB, Partition 1 HD(1,GPT,6569bf21-164f-455b-9414-b055a26df899,0x800,0x4b000)/File(EFIBootBootX64.efi)..BO
Boot0002* ubuntu HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(EFIubuntugrubx64.efi)
Boot0003* UEFI: CT500MX500SSD1, Partition 1 HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(EFIBootBootX64.efi)..BO
Boot0004* UEFI: SMI USB DISK 1100 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0x406eb0,0x7c00)..BO
Boot0005* UEFI: SMI USB DISK 1100, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,MBR,0x15f006ae,0x406eb0,0x1f00)..BO
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.
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/shimx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi
grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
efibootmgr -v from chroot after grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0002,0004,0005,0003,0000,0001
Boot0000* Windows Boot Manager HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...K................
Boot0001* UEFI: BC511 NVMe SK hynix 512GB, Partition 1 HD(1,GPT,6569bf21-164f-455b-9414-b055a26df899,0x800,0x4b000)/File(EFIBootBootX64.efi)..BO
Boot0002* ubuntu HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(EFIubuntugrubx64.efi)
Boot0003* UEFI: CT500MX500SSD1, Partition 1 HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(EFIBootBootX64.efi)..BO
Boot0004* UEFI: SMI USB DISK 1100 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0x406eb0,0x7c00)..BO
Boot0005* UEFI: SMI USB DISK 1100, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,MBR,0x15f006ae,0x406eb0,0x1f00)..BO
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.11.0-18-generic
Found initrd image: /boot/initrd.img-5.11.0-18-generic
Found linux image: /boot/vmlinuz-5.11.0-17-generic
Found initrd image: /boot/initrd.img-5.11.0-17-generic
Found linux image: /boot/vmlinuz-5.8.0-53-generic
Found initrd image: /boot/initrd.img-5.8.0-53-generic
Found linux image: /boot/vmlinuz-5.0.0-1062-oem-osp1
Found initrd image: /boot/initrd.img-5.0.0-1062-oem-osp1
Found linux image: /boot/vmlinuz-5.0.0-1020-oem-osp1
Found initrd image: /boot/initrd.img-5.0.0-1020-oem-osp1
Found linux image: /boot/vmlinuz-4.15.0-45-generic
Found initrd image: /boot/initrd.img-4.15.0-45-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
Unhide GRUB boot menu in sda2/boot/grub/grub.cfg
An error occurred during the repair.
You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Ubuntu 21.04 entry (sda1/EFI/ubuntu/shimx64.efi file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
============================ Boot Info After Repair ============================
=> Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector
2048 of the same hard drive for core.img, but core.img can not be found at
this location.
sda1: __________________________________________________________________________
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: /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/MokManager.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Dell/SOS/bootx64.efi
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 21.04
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sdb: ___________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.
================================ 1 OS detected =================================
OS#1: Ubuntu 21.04 on sda2
============================ 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 disabled.
efibootmgr -v
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0005,0002,0003,0000,0001
Boot0000* Windows Boot Manager HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...K................
Boot0001* UEFI: BC511 NVMe SK hynix 512GB, Partition 1 HD(1,GPT,6569bf21-164f-455b-9414-b055a26df899,0x800,0x4b000)/File(\EFI\Boot\BootX64.efi)..BO
Boot0002* ubuntu HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(\EFI\ubuntu\grubx64.efi)
Boot0003* UEFI: CT500MX500SSD1, Partition 1 HD(1,GPT,2c863e22-6d78-44bf-b9ee-3b563e42afc2,0x800,0x1f4000)/File(\EFI\Boot\BootX64.efi)..BO
Boot0004* UEFI: SMI USB DISK 1100 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0x406eb0,0x7c00)..BO
Boot0005* UEFI: SMI USB DISK 1100, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,MBR,0x15f006ae,0x406eb0,0x1f00)..BO
This session has been detected as 'live' because df -Th / contains overlay
ce4cbbb3600d4dcd3914f6e97bbc46f1 sda1/Boot/bkpbootx64.efi
ce4cbbb3600d4dcd3914f6e97bbc46f1 sda1/Boot/bootx64.efi
70e6762d5a857c9a46b29d4faa537753 sda1/Boot/fbx64.efi
64a633007e3d5a9a5943e417442548d6 sda1/Boot/grubx64.efi
6c5448e8165a27b1b1ea9af6cce7c961 sda1/Boot/mmx64.efi
ce4cbbb3600d4dcd3914f6e97bbc46f1 sda1/ubuntu/grubx64.efi
6c5448e8165a27b1b1ea9af6cce7c961 sda1/ubuntu/mmx64.efi
01256bc72578b55a13a802849c425fd1 sda1/ubuntu/MokManager.efi
fc580a1e0f74d5732c398955bdbef157 sda1/ubuntu/shimx64.efi
d915eb8cadb0d4961970aa031c7f984a sda1/Dell/SOS/bootx64.efi
65ad5b21d383bf7e929b760c0365e892 sda1/Microsoft/Boot/bootmgfw.efi
6ac6140f2977efdbfe2c6b6e8e832495 sda1/Microsoft/Boot/bootmgr.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-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: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: AFBFE761-29B8-408E-B151-D072DE64865C
Start End Sectors Size Type
sda1 2048 2050047 2048000 1000M EFI System
sda2 2050048 976773119 974723072 464.8G Linux filesystem
Disk sdb: 15 GiB, 16106127360 bytes, 31457280 sectors
Disk identifier: 0x15f006ae
Boot Start End Sectors Size Id Type
sdb1 * 0 5303231 5303232 2.5G 0 Empty
sdb2 4222640 4230575 7936 3.9M ef EFI (FAT-12/16/32)
sdb3 5304320 31457279 26152960 12.5G 83 Linux
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:4096:gpt:ATA CT500MX500SSD1:;
1:1049kB:1050MB:1049MB:fat32:bootloader:boot, esp;
2:1050MB:500GB:499GB:ext4:Linux:;
sdb:16.1GB:scsi:512:512:unknown:SMI USB DISK:;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat B618-1A0E 2c863e22-6d78-44bf-b9ee-3b563e42afc2 ESP bootloader
└─sda2 ext4 9968b23e-9423-4ec3-8cad-cc9e4e591309 d3585776-5251-4a1e-a7e4-7a4e58b9cf7b Linux
sdb iso9660 2020-04-23-07-51-42-00 Ubuntu 20.04 LTS amd64
├─sdb1 iso9660 2020-04-23-07-51-42-00 15f006ae-01 Ubuntu 20.04 LTS amd64
├─sdb2 vfat 1AC3-20ED 15f006ae-02
└─sdb3 ext4 bdf53812-c66c-4b00-aa7d-4404124568b4 15f006ae-03 writable
df (filtered): _________________________________________________________________
Avail Use% Mounted on
disk/by-label/writable[/install-logs-2021-06-15.0/crash] 11.5G 0% /var/crash
disk/by-label/writable[/install-logs-2021-06-15.0/log] 11.5G 0% /var/log
sda1 951M 5% /mnt/boot-sav/sda1
sda2 106.5G 72% /mnt/boot-sav/sda2
sdb1 0 100% /cdrom
Mount options: __________________________________________________________________
disk/by-label/writable[/install-logs-2021-06-15.0/crash] rw,relatime
disk/by-label/writable[/install-logs-2021-06-15.0/log] rw,relatime
sda1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2 rw,relatime
sdb1 ro,noatime,nojoliet,check=s,map=n,blocksize=2048
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 9968b23e-9423-4ec3-8cad-cc9e4e591309 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu 9968b23e-9423-4ec3-8cad-cc9e4e591309
Ubuntu, with Linux 5.11.0-18-generic 9968b23e-9423-4ec3-8cad-cc9e4e591309
Ubuntu, with Linux 5.11.0-17-generic 9968b23e-9423-4ec3-8cad-cc9e4e591309
Ubuntu, with Linux 5.8.0-53-generic 9968b23e-9423-4ec3-8cad-cc9e4e591309
Ubuntu, with Linux 5.0.0-1062-oem-osp1 9968b23e-9423-4ec3-8cad-cc9e4e591309
Ubuntu, with Linux 5.0.0-1020-oem-osp1 9968b23e-9423-4ec3-8cad-cc9e4e591309
Ubuntu, with Linux 4.15.0-45-generic 9968b23e-9423-4ec3-8cad-cc9e4e591309
Windows Boot Manager (on sda1) osprober-efi-B618-1A0E
### 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/sda10 during installation
# /boot/efi was on /dev/sda1 during installation
/swapfile none swap sw 0 0
/dev/disk/by-uuid/9968b23e-9423-4ec3-8cad-cc9e4e591309 / ext4 defaults 0 1
UUID=B618-1A0E /boot/efi vfat defaults 0 1
======================= sda2/etc/default/grub (filtered) =======================
GRUB_DEFAULT="0"
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
GRUB_CMDLINE_LINUX=""
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
0.977554321 = 1.049640960 boot/grub/grub.cfg 1
295.475635529 = 317.264547840 boot/vmlinuz 1
94.852436066 = 101.847027712 boot/vmlinuz-4.15.0-45-generic 1
88.016906738 = 94.507433984 boot/vmlinuz-5.0.0-1020-oem-osp1 2
8.165428162 = 8.767561728 boot/vmlinuz-5.0.0-1062-oem-osp1 2
349.717819214 = 375.506649088 boot/vmlinuz-5.11.0-17-generic 1
295.475635529 = 317.264547840 boot/vmlinuz-5.11.0-18-generic 1
392.170093536 = 421.089431552 boot/vmlinuz-5.8.0-53-generic 1
349.717819214 = 375.506649088 boot/vmlinuz.old 1
8.165428162 = 8.767561728 vmlinuz 2
117.882507324 = 126.575378432 boot/initrd.img 8
350.517936707 = 376.365768704 boot/initrd.img-4.15.0-45-generic 1
350.506061554 = 376.353017856 boot/initrd.img-5.0.0-1020-oem-osp1 2
350.455421448 = 376.298643456 boot/initrd.img-5.0.0-1062-oem-osp1 1
79.889373779 = 85.780561920 boot/initrd.img-5.11.0-17-generic 9
117.882507324 = 126.575378432 boot/initrd.img-5.11.0-18-generic 8
8.790035248 = 9.438228480 boot/initrd.img-5.8.0-53-generic 6
79.889373779 = 85.780561920 boot/initrd.img.old 9
350.455421448 = 376.298643456 initrd.img 1
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18151 Mar 30 10:55 10_linux
-rwxr-xr-x 1 root root 43031 Mar 30 10:55 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Mar 30 10:55 20_linux_xen
-rwxr-xr-x 1 root root 12059 Mar 30 10:55 30_os-prober
-rwxr-xr-x 1 root root 1424 Mar 30 10:55 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mar 30 10:55 40_custom
-rwxr-xr-x 1 root root 216 Mar 30 10:55 41_custom
drwxr-xr-x 4 root root 4096 Jun 13 11:13 backup
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown BootLoader on sdb
00000000 45 52 08 00 00 00 90 90 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |..D.....f@.....f|
000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 c4 20 40 00 00 00 00 00 ae 06 f0 15 00 00 80 00 |. @.............|
000001c0 01 00 00 a1 e0 fe 00 00 00 00 c0 eb 50 00 00 fe |............P...|
000001d0 ff ff ef fe ff ff b0 6e 40 00 00 1f 00 00 00 2d |.......n@......-|
000001e0 64 4a 83 1f f9 a6 00 f0 50 00 00 10 8f 01 00 00 |dJ......P.......|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment