Not sure what I've done here, but I'm hoping someone can help. Currently can only boot to black screen with non-blinking cursor. I have tried various things from a live usb.
Following advice on UNIX Stackexchange I tried remounting filesystem to /mnt/boot and ESP to /mnt/boot/efi, then
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdx
update-grub
I also tried
sudo grub-install --boot-directory=/mnt/boot /dev/sda
and I tried
boot repair which also didn't work. The summary is pasted below:
including updating grub and into grub command line. I have tried boot repair to no avail.
Here is the boot reapir summary:
boot-repair-4ppa158 [20220112_0828]
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
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/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg /efi/HP/BIOSUpdate/CryptRSA.efi
/efi/HP/BIOSUpdate/HpBiosMgmt.efi
/efi/HP/BIOSUpdate/HpBiosUpdate.efi
/efi/HP/SystemDiags/CryptRSA.efi
/efi/HP/SystemDiags/HpSysDiags.efi
/efi/HP/SystemDiags/SystemDiags.efi
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /bootmgr /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 21.04
Boot files: /etc/fstab /etc/default/grub
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdc: ___________________________________________________________________________
File system: iso9660
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
sdc and looks at sector 0 of the same hard drive for
core.img, but core.img can not be found at this
location.
Mounting failed: mount: /mnt/BootInfo/FD/sdc: /dev/sdc already mounted or mount point busy.
================================ 2 OS detected =================================
OS#1: Ubuntu 21.04 on sda4
OS#2: Windows 8 or 10 on sda3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: GM107GL[QuadroK2200] from NVIDIA Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 21.04, hirsute, x86_64)
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.
efibootmgr -v
BootCurrent: 000D
Timeout: 0 seconds
BootOrder: 0014,000D,0013,000E,0010,0011,000F,0009,000A,000C,0000,0001,0002,0003,0004,0005,0006,0007,0008,000B,0012
Boot0000 Startup Menu FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)....ISPH
Boot00000013* MTFDDAK256MBF-1AN15ABHA PciRoot(0x0)/Pci(0x11,0x4)/Sata(0,0,0)N.....YM....R,Y.....ISPH
Boot0001 System Information FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0002 Bios Setup FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0003 3rd Party Option ROM Management FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0004 System Diagnostics FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0005 System Diagnostics FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0006 System Diagnostics FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0007 System Diagnostics FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0008 Boot Menu FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0009 CDROM: BBS(65535,,0x0)/PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)......ISPH
Boot000A* MTFDDAK256MBF-1AN15ABHA BBS(HD,Harddisk1,0x0)/PciRoot(0x0)/Pci(0x11,0x4)......ISPH
Boot000B Network Boot FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot000C* IBA GE Slot 00C8 v1550 BBS(Network,Network1,0x0)/PciRoot(0x0)/Pci(0x19,0x0)......ISPH
Boot000D* SanDisk Cruzer Blade 4C530011560211119455 PciRoot(0x0)/Pci(0x14,0x0)/USB(12,0)/USB(0,0)N.....YM....R,Y.....ISPH
Boot000E* hp DVDRW DU8A6SH PciRoot(0x0)/Pci(0x11,0x4)/Sata(2,0,0)N.....YM....R,Y.....ISPH
Boot000F* SanDisk Cruzer Blade 4C531001610122102475 BBS(USB,USB1,0x900)/PciRoot(0x0)/Pci(0x1d,0x0)......ISPH
Boot0010* IPV6 Network - Intel(R) Ethernet Connection (2) I218-LM PciRoot(0x0)/Pci(0x19,0x0)/MAC(480fcf4a57dc,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH
Boot0011* IPV4 Network - Intel(R) Ethernet Connection (2) I218-LM PciRoot(0x0)/Pci(0x19,0x0)/MAC(480fcf4a57dc,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.....ISPH
Boot0012 HP Recovery FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9d8243e8-8381-453d-aceb-c350ee7757ca)......ISPH
Boot0013* Windows Boot Manager HD(1,GPT,5ee2dffa-d74a-40f3-bb10-ce382562ac65,0x800,0x32000)/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.}........................ISPH
Boot0014* ubuntu HD(1,GPT,5ee2dffa-d74a-40f3-bb10-ce382562ac65,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
728124f6ec8e22fbdbe7034812c81b95 sda1/Boot/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271 sda1/Boot/fbx64.efi
fdafb5eece6caeccb788c946a28e6872 sda1/Boot/mmx64.efi
ce4cbbb3600d4dcd3914f6e97bbc46f1 sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872 sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
6488d391f74263c9da3c3d47dffa6212 sda1/HP/BIOSUpdate/CryptRSA.efi
d6ca5dd199691bca38c3c36cf61e9144 sda1/HP/BIOSUpdate/HpBiosMgmt.efi
6595055a1121d5baa2ed44826ffb9ef6 sda1/HP/BIOSUpdate/HpBiosUpdate.efi
6488d391f74263c9da3c3d47dffa6212 sda1/HP/SystemDiags/CryptRSA.efi
bc30228f32f160786c7ea3d70f7ec1fa sda1/HP/SystemDiags/HpSysDiags.efi
f0a9012be2cb849350c34348865ad5cf sda1/HP/SystemDiags/SystemDiags.efi
d38dda077adfd657c88631a5a9edc462 sda1/Microsoft/Boot/bootmgfw.efi
4a45f6fd4be5761b077f5369d368611c sda1/Microsoft/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sdb : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda4 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, no-grubenv, update-grub, farbios
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot
sda4 : isnotESP, fstab-has-goodEFI, 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, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda4 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, 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: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: F0E07E71-958C-4E5B-8EF9-C2710550373B
Start End Sectors Size Type
sda1 2048 206847 204800 100M EFI System
sda2 206848 239615 32768 16M Microsoft reserved
sda3 239616 191876947 191637332 91.4G Microsoft basic data
sda4 191876948 500118158 308241211 147G Linux filesystem
Disk sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 8775DF37-E67A-473E-A19F-9140D2011962
Start End Sectors Size Type
sdb1 2048 3907028991 3907026944 1.8T Linux filesystem
Disk sdc: 29.11 GiB, 31260704768 bytes, 61056064 sectors
Disk identifier: 8738F492-86F4-4DBB-B157-993956F84852
Start End Sectors Size Type
sdc1 64 7958199 7958136 3.8G Microsoft basic data
sdc2 7958200 7968239 10040 4.9M EFI System
sdc3 7968240 7968839 600 300K Microsoft basic data
sdc4 7970816 61056000 53085185 25.3G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:256GB:scsi:512:512:gpt:ATA MTFDDAK256MBF-1A:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:98.2GB:98.1GB:ntfs:Basic data partition:msftdata;
4:98.2GB:256GB:158GB:ext4::;
sdb:2000GB:scsi:512:4096:gpt:ATA ST2000DM008-2FR1:;
1:1049kB:2000GB:2000GB:ext4:2TB Storage HDD:;
sdc:31.3GB:scsi:512:512:gpt:SanDisk Cruzer Blade:;
1:32.8kB:4075MB:4075MB::ISO9660:hidden, msftdata;
2:4075MB:4080MB:5140kB::Appended2:boot, esp;
3:4080MB:4080MB:307kB::Gap1:hidden, msftdata;
4:4081MB:31.3GB:27.2GB:ext4::;
Free space (filtered): _________________________________________________________
sda:244198MiB:scsi:512:512:gpt:ATA MTFDDAK256MBF-1A:;
1:0.02MiB:1.00MiB:0.98MiB:free;
sdb:1907729MiB:scsi:512:4096:gpt:ATA ST2000DM008-2FR1:;
1:0.02MiB:1.00MiB:0.98MiB:free;
1:1907729MiB:1907729MiB:0.07MiB:free;
sdc:29813MiB:scsi:512:512:gpt:SanDisk Cruzer Blade:;
1:3891MiB:3892MiB:0.96MiB:free;
gdisk (filtered): ______________________________________________________________
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 500118192 sectors, 238.5 GiB
Disk identifier (GUID): F0E07E71-958C-4E5B-8EF9-C2710550373B
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 4-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB EF00 EFI system partition
2 206848 239615 16.0 MiB 0C01 Microsoft reserved ...
3 239616 191876947 91.4 GiB 0700 Basic data partition
4 191876948 500118158 147.0 GiB 8300
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
Disk identifier (GUID): 8775DF37-E67A-473E-A19F-9140D2011962
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2157 sectors (1.1 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 3907028991 1.8 TiB 8300 2TB Storage HDD
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdc: 61056064 sectors, 29.1 GiB
Disk identifier (GUID): 8738F492-86F4-4DBB-B157-993956F84852
Partition table holds up to 248 entries
Main partition table begins at sector 2 and ends at sector 63
First usable sector is 64, last usable sector is 61056000
Partitions will be aligned on 8-sector boundaries
Total free space is 1976 sectors (988.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 64 7958199 3.8 GiB 0700 ISO9660
2 7958200 7968239 4.9 MiB EF00 Appended2
3 7968240 7968839 300.0 KiB 0700 Gap1
4 7970816 61056000 25.3 GiB 8300
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 8616-003B 5ee2dffa-d74a-40f3-bb10-ce382562ac65 EFI system partition
├─sda2 c81d4782-c903-4074-889b-39e4172c746e Microsoft reserved partition
├─sda3 ntfs CEDC1969DC194D59 d642e353-8c48-4e5e-b448-b16d97feadfb Basic data partition
└─sda4 ext4 9c7767e6-478c-4876-a873-dbb781d39803 a8a8e736-767f-3b4b-b4fd-048c13fe8a0f
sdb
└─sdb1 ext4 19f0db70-2d79-4e9f-a1d1-73913cfc58ee 5d5eb3d4-8239-4769-8e73-1dbaf85238d2 storage 2TB Storage HDD
sdc iso9660 2021-04-20-11-15-38-00 Ubuntu-Studio 21.04 amd64
├─sdc1 iso9660 2021-04-20-11-15-38-00 8738f492-86f4-4dbb-b156-993956f84852 Ubuntu-Studio 21.04 amd64 ISO9660
├─sdc2 vfat F940-6C0E 8738f492-86f4-4dbb-b155-993956f84852 ESP Appended2
├─sdc3 8738f492-86f4-4dbb-b154-993956f84852 Gap1
└─sdc4 ext4 07d69521-719b-4369-b02c-c8508ee001f8 4452aa0c-86a5-d247-b5af-a5b0bb42da9f writable
df (filtered): _________________________________________________________________
Avail Use% Mounted on
disk/by-label/writable[/install-logs-2022-01-12.0/crash] 23.4G 1% /var/crash
disk/by-label/writable[/install-logs-2022-01-12.0/log] 23.4G 1% /var/log
sda1 26.2M 73% /mnt/boot-sav/sda1
sda3 36.8G 60% /mnt/boot-sav/sda3
sda4 11G 87% /mnt/boot-sav/sda4
sdb1 1.6T 7% /mnt/boot-sav/sdb1
sdc1 0 100% /cdrom
Mount options: __________________________________________________________________
disk/by-label/writable[/install-logs-2022-01-12.0/crash] rw,relatime
disk/by-label/writable[/install-logs-2022-01-12.0/log] rw,relatime
sda1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda3 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4 rw,relatime
sdb1 rw,relatime
sdc1 ro,noatime,nojoliet,check=s,map=n,blocksize=2048
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 9c7767e6-478c-4876-a873-dbb781d39803 root hd0,gpt4
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
========================== sda4/etc/fstab (filtered) ===========================
UUID=9c7767e6-478c-4876-a873-dbb781d39803 / ext4 discard 0 1
UUID=19f0db70-2d79-4e9f-a1d1-73913cfc58ee /media/hdd ext4 defaults 0 0
/dev/sr0 /media/cdrom/ auto ro,noauto,user,exec 0 0
/dev/sr0 /media/cdrom/ auto ro,noauto,user,exec 0 0
UUID=8616-003B /boot/efi vfat defaults 0 1
======================= sda4/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sda4: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
206.242311478 = 221.450995712 boot/vmlinuz 1
136.101556778 = 146.137933824 boot/vmlinuz-5.11.0-25-lowlatency 1
203.250120163 = 218.238154752 boot/vmlinuz-5.11.0-41-lowlatency 1
206.242311478 = 221.450995712 boot/vmlinuz-5.11.0-44-lowlatency 1
203.250120163 = 218.238154752 boot/vmlinuz.old 1
212.783117294 = 228.474132480 boot/initrd.img 40
173.039533615 = 185.799784448 boot/initrd.img-5.11.0-25-lowlatency 3
173.320875168 = 186.101872640 boot/initrd.img-5.11.0-41-lowlatency 2
212.783117294 = 228.474132480 boot/initrd.img-5.11.0-44-lowlatency 40
173.320875168 = 186.101872640 boot/initrd.img.old 2
===================== sda4: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18151 Mar 30 2021 10_linux
-rwxr-xr-x 1 root root 43031 Mar 30 2021 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Mar 30 2021 20_linux_xen
-rwxr-xr-x 1 root root 12059 Mar 30 2021 30_os-prober
-rwxr-xr-x 1 root root 1424 Mar 30 2021 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mar 30 2021 40_custom
-rwxr-xr-x 1 root root 216 Mar 30 2021 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would purge (in order to unsign-grub) and reinstall the grub-efi of
sda4,
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 21.04 entry (sda1/efi//grub.efi (**** will be updated in the final message) 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*\grub*.efi (**** will be updated in the final message)