Somehow the boot process got corrupted in my Ubuntu 20.04. I tried to recover via GRUB but could not managed to find /dev/sd... also I decided to use Boot Repair: https://sourceforge.net/p/boot-repair-cd/home/Home/ but got an error, please find below, could you advise?
====================
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
boot-repair-4ppa130 [20210711_0936]
============================= 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
sdb2,
using the following options: sdb1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
/boot/efi added in sdb2/fstab
rm /mnt/boot-sav/sdb1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sdb1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sdb1/efi/Boot/bootx64.efi
Mount sdb1 on /mnt/boot-sav/sdb2/boot/efi
================= Reinstall the grub-efi-amd64-signed of sdb2 ==================
grub-install --version
grub-install: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by grub-install)
efibootmgr -v from chroot before grub install
uname -r
grub-install --uefi-secure-boot
grub-install: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by grub-install)
Exit code: 1
df /dev/sdb1
mv /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sdb2/boot/efi/EFI/ubuntu/shimx64.efi /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/bootx64.efi
grub-install --uefi-secure-boot
grub-install: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by grub-install)
Exit code: 1
---- Grub-install recheck
/usr/sbin/grub-install --uefi-secure-boot --recheck
/usr/sbin/grub-install: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/sbin/grub-install)
Exit code: 1
---- End of grub-install recheck
efibootmgr -v from chroot after grub install
/usr/bin/python3: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/bin/python3) /usr/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /usr/bin/python3)
/usr/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.25' not found (required by /usr/bin/python3) /usr/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.26' not found (required by /usr/bin/python3)
/usr/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /usr/bin/python3)
Error: NVram is locked ( not found in efibootmgr).
chroot /mnt/boot-sav/sdb2 update-grub
/usr/share/boot-sav/gui-actions-grub.sh: line 783: 13947 Segmentation fault LANGUAGE=C LC_ALL=C $CHROOTCMD${UPDATEGRUB_OF_PART[$USRPART]}$UPDATEYES
An error occurred during the repair.
Locked-NVram detected.
============================ Boot Info After Repair ============================
=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdc.
sda1: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb1: __________________________________________________________________________
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
sdb2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.2 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sdc1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 6.03
Boot sector info: Syslinux looks at sector 32784 of /dev/sdc1 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 /ldlinux.sys
================================ 1 OS detected =================================
OS#1: Ubuntu 20.04.2 LTS on sdb2
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.
efibootmgr -v
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 2001,3000,3001,3002,3003,3004,3006,2002,2003
Boot0000* ubuntu HD(1,GPT,2f2d8b6f-bd97-44e6-a426-aaca791683c9,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* Ubuntu HD(1,GPT,2f2d8b6f-bd97-44e6-a426-aaca791683c9,0x800,0xee000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0002* ubuntu HD(1,GPT,2f2d8b6f-bd97-44e6-a426-aaca791683c9,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)
Boot0003* ubuntu HD(1,GPT,2f2d8b6f-bd97-44e6-a426-aaca791683c9,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* ubuntu HD(1,GPT,2f2d8b6f-bd97-44e6-a426-aaca791683c9,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)
Boot0005* USB Hard Drive (UEFI) - UFD 2.0 Silicon-Power8G PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(1,MBR,0x93cc299,0x800,0xe6c200)RC
Boot0006* ubuntu HD(1,GPT,2f2d8b6f-bd97-44e6-a426-aaca791683c9,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* USB Drive (UEFI) RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot3001* Internal Hard Disk or Solid State Disk RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Boot3003* Internal Hard Disk or Solid State Disk RC
Boot3004* Internal Hard Disk or Solid State Disk RC
Boot3006* Internal Hard Disk or Solid State Disk RC
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
78415fb8fb9b909f8029858113f1335f sdb1/BOOT/bkpbootx64.efi
78415fb8fb9b909f8029858113f1335f sdb1/BOOT/bootx64.efi
2895d47544fd587b26c7e29be1295c27 sdb1/BOOT/fbx64.efi
fa1bf1a7f90a852abe0bdbd089b7f1b0 sdb1/BOOT/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sdb1/BOOT/mmx64.efi
fa1bf1a7f90a852abe0bdbd089b7f1b0 sdb1/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sdb1/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sdb1/ubuntu/shimx64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
sdb : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sdb2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, not-far
Partitions info (2/3): _________________________________________________________
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda2 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sdb1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
sdb2 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 6EE082A9-C769-4420-B224-57708B555BF0
Start End Sectors Size Type
sda1 2048 11718655 11716608 5.6G Linux swap
sda2 11718656 976771071 965052416 460.2G Linux filesystem
Disk sdb: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Disk identifier: 13E46542-245F-44B0-9C35-D0B1B326A508
Start End Sectors Size Type
sdb1 2048 976895 974848 476M EFI System
sdb2 976896 62531583 61554688 29.4G Linux filesystem
Disk sdc: 7.2 GiB, 7743995904 bytes, 15124992 sectors
Disk identifier: 0x093cc299
Boot Start End Sectors Size Id Type
sdc1 * 2048 15124991 15122944 7.2G c W95 FAT32 (LBA)
Disk zram0: 730.2 MiB, 765677568 bytes, 186933 sectors
Disk zram1: 730.2 MiB, 765677568 bytes, 186933 sectors
Disk zram2: 730.2 MiB, 765677568 bytes, 186933 sectors
Disk zram3: 730.2 MiB, 765677568 bytes, 186933 sectors
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:4096:gpt:ATA Hitachi HTS54505:;
1:1049kB:6000MB:5999MB:linux-swap(v1)::;
2:6000MB:500GB:494GB:ext4::;
sdb:32.0GB:scsi:512:512:gpt:ATA SAMSUNG MZMPC032:;
1:1049kB:500MB:499MB:fat32::boot, esp;
2:500MB:32.0GB:31.5GB:ext4::;
sdc:7744MB:scsi:512:512:msdos:UFD 2.0 Silicon-Power8G:;
1:1049kB:7744MB:7743MB:fat32::boot, lba;
zram3:766MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:766MB:766MB:linux-swap(v1)::;
zram1:766MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:766MB:766MB:linux-swap(v1)::;
zram2:766MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:766MB:766MB:linux-swap(v1)::;
zram0:766MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:766MB:766MB:linux-swap(v1)::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 swap d61b2941-8eef-4f97-b876-51aa9a3f9f79 a38824bd-b38c-4ade-afac-ab763bb19e53
└─sda2 ext4 64d10c20-5bec-4b89-b10c-428a7ec77d9b 8f08f2b4-b162-42ed-b57c-7bb19a28c5eb
sdb
├─sdb1 vfat C361-8FC5 2f2d8b6f-bd97-44e6-a426-aaca791683c9
└─sdb2 ext4 c5234dab-8813-4f20-b88b-acb481e9a133 5d8e921c-6e17-40cc-8ee4-0c13e74fc59b
sdc
└─sdc1 vfat FC6D-D744 093cc299-01 BOOT-REPAIR
zram0
zram1
zram2
zram3
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda2 207.2G 49% /mnt/boot-sav/sda2
sdb1 464.3M 2% /mnt/boot-sav/sdb1
sdb2 5.9G 74% /mnt/boot-sav/sdb2
sdc1 6.3G 12% /cdrom
Mount options: __________________________________________________________________
sda2 rw,relatime
sdb1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb2 rw,relatime
sdc1 ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
===================== sdb1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid c5234dab-8813-4f20-b88b-acb481e9a133 root hd1,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
Debian GNU/Linux 607682b9-4c9e-423e-8253-190ad461c02b
Debian GNU/Linux, with Linux 3.16.0-4-amd64 607682b9-4c9e-423e-8253-190ad461c02b
FreeDOS (on sda1) B824-81B9
FreeDOS (on sda2) 6024-F42A
END /etc/grub.d/30_os-prober
END /etc/grub.d/30_uefi-firmware
========================== sdb2/etc/fstab (filtered) ===========================
/ was on /dev/sdb1 during installation
UUID=607682b9-4c9e-423e-8253-190ad461c02b / ext4 errors=remount-ro 0 1
swap was on /dev/sdb5 during installation
UUID=cb0b7a66-bb3d-4d7d-b264-cd89b6093047 none swap sw 0 0
UUID=C361-8FC5 /boot/efi vfat defaults 0 1
======================= sdb2/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="quiet"
GRUB_CMDLINE_LINUX=""
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
2.618053436 = 2.811113472 boot/grub/grub.cfg 1
2.620552063 = 2.813796352 boot/grub/i386-pc/core.img 1
21.562713623 = 23.152787456 boot/vmlinuz 2
4.516838074 = 4.849917952 boot/vmlinuz-3.16.0-4-amd64 1
15.770503998 = 16.933449728 boot/vmlinuz-5.4.0-73-generic 2
21.562713623 = 23.152787456 boot/vmlinuz-5.4.0-74-generic 2
15.770503998 = 16.933449728 boot/vmlinuz.old 2
26.449523926 = 28.399960064 boot/initrd.img 6
0.940612793 = 1.009975296 boot/initrd.img-3.16.0-4-amd64 2
6.362041473 = 6.831190016 boot/initrd.img-5.4.0-73-generic 5
26.449523926 = 28.399960064 boot/initrd.img-5.4.0-74-generic 6
6.362041473 = 6.831190016 boot/initrd.img.old 5
===================== sdb2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 12261 Jul 9 06:01 10_linux
-rwxr-xr-x 1 root root 42359 Oct 1 2020 10_linux_zfs
-rwxr-xr-x 1 root root 11082 Jul 9 06:01 20_linux_xen
-rwxr-xr-x 1 root root 11692 Jul 9 06:01 30_os-prober
-rwxr-xr-x 1 root root 1416 Jul 9 06:01 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Jul 9 06:01 40_custom
-rwxr-xr-x 1 root root 216 Jul 9 06:01 41_custom
====================== sdc1/boot/grub/grub.cfg (filtered) ======================
Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)
========================= sdc1/syslinux.cfg (filtered) =========================
DEFAULT loadconfig
LABEL loadconfig
CONFIG /isolinux/isolinux.cfg
APPEND /isolinux/
==================== sdc1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================== sdc1: Location of files loaded by Syslinux ==================
GiB - GB File Fragment(s)
?? = ?? syslinux.cfg 1
?? = ?? ldlinux.sys 1
=============================== StdErr Messages ================================
File descriptor 63 (pipe:[48439]) leaked on lvs invocation. Parent PID 4107: /bin/bash