UNABLE TO NORMAL LOGIN AFTER REINSTALL UBUNTU 18.04 LTS
PLEASE HELP
BOOT REPAIR ERROR AND DETAIL OF MY SYSTEM
Paste from boot-repair 02 October 2021 6:49 +0000
Syntax highlighting: bash
View raw
boot-repair-4ppa130 [20211002_0605]
============================= Boot Repair Summary ==============================
Default settings: ______________________________________________________________
The default repair of the Boot-Repair utility would purge (in order to sign-grub) and 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
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 18.04.6 LTS entry (sda1/efi//shim.efi (**** will be updated in the final message) file) !
User settings: _________________________________________________________________
Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
/usr/share/boot-sav/bs-cmd_terminal.sh: line 177: warning: command substitution: ignored null byte in input
Warning: this will install necessary packages from Ubuntu-21.04 repositories. Please backup your data before this operation.
The settings chosen by the user will purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
sda2,
using the following options: uncomment-gfxmode --disk-module=ata sda1/boot/efi, add-kernel-option (acpi=off),
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
chroot /mnt/boot-sav/sda2 apt-get -y update
Purge the GRUB of sda2
grub-efi-amd64-signed available
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
DEBCHECK debOK, grub-efi-amd64-signed
DEBCHECK debOK
shim-signed available
Please type: sudo chroot “/mnt/boot-sav/sda2” dpkg --configure -ansudo chroot “/mnt/boot-sav/sda2” apt-get install -fynsudo chroot “/mnt/boot-sav/sda2” apt-get purge --allow-remove-essential -y grub*-common shim-signed
shim-signed available
linux-headers-generic available
linux-signed-generic available
Then type: sudo chroot “/mnt/boot-sav/sda2” apt-get install -y grub-efi-amd64-signed shim-signed linux-headers-generic linux-signed-generic
Unhide GRUB boot menu in sda2/etc/default/grub
Uncommented GRUB_GFXMODE in sda2/etc/default/grub
add_kernel_option CHOSEN_KERNEL_OPTION is : acpi=off
Added kernel options in sda2/etc/default/grub
========== Reinstall the grub-efi-amd64-signed shim-signed linux-headers-generic linux-signed-generic of sda2 ==========
grub-install --version
grub-install (GRUB) 2.02-2ubuntu8.23
efibootmgr -v from chroot before grub install
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,3000,2001,2002,2004
Boot0000* ubuntu HD(1,GPT,8ad24d81-9cf6-498f-9633-eaeede907eb8,0x800,0xee000)/File(EFIubuntushimx64.efi)RC
Boot0001* USB Hard Drive (UEFI) - KingstonDataTraveler G2 (KingstonDataTraveler G2) PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot3000* Internal Hard Disk or Solid State Disk RC
uname -r
5.4.0-84-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
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.
Installation finished. No error reported.
efibootmgr -v from chroot after grub install
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,3000,2001,2002,2004
Boot0000* ubuntu HD(1,GPT,8ad24d81-9cf6-498f-9633-eaeede907eb8,0x800,0xee000)/File(EFIubuntushimx64.efi)
Boot0001* USB Hard Drive (UEFI) - KingstonDataTraveler G2 (KingstonDataTraveler G2) PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot3000* Internal Hard Disk or Solid State Disk RC
chroot /mnt/boot-sav/sda2 update-grub
Sourcing file `/etc/default/grub’
Generating grub configuration file …
Found linux image: /boot/vmlinuz-5.4.0-87-generic
Found initrd image: /boot/initrd.img-5.4.0-87-generic
Found linux image: /boot/vmlinuz-5.4.0-84-generic
Found initrd image: /boot/initrd.img-5.4.0-84-generic
Found linux image: /boot/vmlinuz-4.15.0-159-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Adding boot menu entry for EFI firmware configuration
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 18.04.6 LTS entry (sda1/EFI/ubuntu/shimx64.efi file) !
============================ Boot Info After Repair ============================
=> No boot loader is installed in the MBR of /dev/sda.
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/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 18.04.6 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb: ___________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 1 OS detected =================================
OS#1: Ubuntu 18.04.6 LTS on sda2
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 18.04.6 LTS, bionic, x86_64)
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.
efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,3000,2001,2002,2004
Boot0000* ubuntu HD(1,GPT,8ad24d81-9cf6-498f-9633-eaeede907eb8,0x800,0xee000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0001* USB Hard Drive (UEFI) - KingstonDataTraveler G2 (KingstonDataTraveler G2) PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot3000* 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
5dabe049a4dad758d975dc2e60a7f00e sda1/BOOT/fbx64.efi
621356d82b109cd860ad92cdf241c58b sda1/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270 sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/BOOTX64.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-ng, 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: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: F55DA0A0-BEDE-4DCC-AFC0-89C07E7B69DE
Start End Sectors Size Type
sda1 2048 976895 974848 476M EFI System
sda2 976896 1952149503 1951172608 930.4G Linux filesystem
sda3 1952149504 1953523711 1374208 671M Linux swap
Disk sdb: 7.5 GiB, 8005787648 bytes, 15636304 sectors
Disk identifier: 0x4c050c47
Boot Start End Sectors Size Id Type
sdb1 * 0 4910399 4910400 2.3G 0 Empty
sdb2 4840192 4844991 4800 2.4M ef EFI (FAT-12/16/32)
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010B7:;
1:1049kB:500MB:499MB:fat32::boot, esp;
2:500MB:1000GB:999GB:ext4::;
3:1000GB:1000GB:704MB:linux-swap(v1)::;
sdb:8006MB:scsi:512:512:unknown:Kingston DataTraveler G2:;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat B489-E160 8ad24d81-9cf6-498f-9633-eaeede907eb8
├─sda2 ext4 f0524776-246e-4a72-88a1-fcd637882b07 5eacb2e1-a7a0-4e72-b8f5-f322943b2d77
└─sda3 swap 7105c1b7-3f78-44a8-86b4-c08f1d414c12 f82452d7-8e0a-40ad-a5ee-e05ac106567b
sdb iso9660 2021-09-15-20-41-59-00 Ubuntu 18.04.6 LTS amd64
├─sdb1 iso9660 2021-09-15-20-41-59-00 4c050c47-01 Ubuntu 18.04.6 LTS amd64
└─sdb2 vfat 7E74-30B0 4c050c47-02 Ubuntu 18.04.6 LTS amd64
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda1 468.1M 1% /mnt/boot-sav/sda1
sda2 862G 1% /mnt/boot-sav/sda2
sdb 0 100% /cdrom
Mount options: __________________________________________________________________
sda1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2 rw,relatime
sdb ro,noatime,nojoliet,check=s,map=n,blocksize=2048
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid f0524776-246e-4a72-88a1-fcd637882b07 root hd0,gpt2
set prefix=($root)’/boot/grub’
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu f0524776-246e-4a72-88a1-fcd637882b07
Ubuntu, with Linux 5.4.0-87-generic f0524776-246e-4a72-88a1-fcd637882b07
Ubuntu, with Linux 5.4.0-84-generic f0524776-246e-4a72-88a1-fcd637882b07
Ubuntu, with Linux 4.15.0-159-generic f0524776-246e-4a72-88a1-fcd637882b07
END /etc/grub.d/30_os-prober
System setup uefi-firmware
END /etc/grub.d/30_uefi-firmware
========================== sda2/etc/fstab (filtered) ===========================
/ was on /dev/sda2 during installation
UUID=f0524776-246e-4a72-88a1-fcd637882b07 / ext4 errors=remount-ro 0 1
/boot/efi was on /dev/sda1 during installation
swap was on /dev/sda3 during installation
UUID=7105c1b7-3f78-44a8-86b4-c08f1d414c12 none swap sw 0 0
UUID=B489-E160 /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 acpi=off”
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE=640x480
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
0.465827942 = 0.500178944 boot/grub/grub.cfg 1
4.333065033 = 4.652593152 boot/vmlinuz-4.15.0-159-generic 1
2.911128998 = 3.125800960 boot/vmlinuz-5.4.0-84-generic 2
3.498069763 = 3.756023808 boot/vmlinuz-5.4.0-87-generic 1
2.911128998 = 3.125800960 vmlinuz 2
3.895503998 = 4.182765568 boot/initrd.img-5.4.0-84-generic 3
4.407222748 = 4.732219392 boot/initrd.img-5.4.0-87-generic 3
3.895503998 = 4.182765568 initrd.img 3
3.895503998 = 4.182765568 initrd.img.old 3
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 12808 Feb 25 2021 10_linux
-rwxr-xr-x 1 root root 11298 Feb 25 2021 20_linux_xen
-rwxr-xr-x 1 root root 12059 Feb 25 2021 30_os-prober
-rwxr-xr-x 1 root root 1418 Feb 25 2021 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Feb 25 2021 40_custom
-rwxr-xr-x 1 root root 216 Feb 25 2021 41_custom
====================== sdb/boot/grub/grub.cfg (filtered) =======================
Try Ubuntu without installing
Install Ubuntu
OEM install (for manufacturers)
Check disc for defects
==================== sdb: Location of files loaded by Grub =====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
======================== 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 08 0d 4a 00 00 00 00 00 47 0c 05 4c 00 00 80 00 |…J…G…L…|
000001c0 01 00 00 95 e0 fe 00 00 00 00 40 ed 4a 00 00 fe |…@.J…|
000001d0 ff ff ef fe ff ff 00 db 49 00 c0 12 00 00 00 00 |…I…|
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 ================================