grub2 – Ubuntu 20.04 LTS freezing at boot/startup

I was doing some machine learning with Nvidia GPU when I ran into an error that was CUDA related. I decided to reboot my computer to fix the error but when booting Ubuntu, my screen freezes. I opened up the GRUB console to see what was happening and it was freezing at

Starting GRUB failed boot detection
Starting Authorization Manager

I tried to reboot again, it was recovering journal and clearing orphaned inodes until this popped up

/dev/sda8: clean, 2757878/46759936 files 155438410/187020544  blocks

And then froze there, only being able to manually reboot my computer.

I then tried launching in recovery mode :Linux 5.8.0-63-generic
In the grub loader, this starts ubuntu, assigns my user, mounts, and flushes my journal to persistent storage, it outputs started Load/Save RF Kill Switch Status and then it freezes.
Doing it a second time caused it to get past that and output Finished Flush Journal to Persistent Storage. at which point nothing happens and I can’t do anything.

I have also tried following this article : https://itsfoss.com/fix-ubuntu-freezing/

I edited the params with nomodeset and this ended up freezing at

(   OK   ) Started Hostname Service. 
systemd-hostnamed.service

Trying nouveau.noaccel=1 ends up freezing on

(   OK   ) Started Authorization Manager.
systemd-user-sessions.service
polkit.service
          Starting Modem Manager...
          Starting Hold until boot process finishes up...
          Starting Hostname Service...

Finally replacing quiet splash with noapic noacpi nosplash irqpoll causes a black screen where nothing comes up after waiting 10 minutes.

An important note is that I had an update that I hadn’t applied yet.

Other things I have tried:

1.) Booting into rescue target (systemd.unit=rescue.target)

Result: Freezes at ```failed to start show plymouth boot screen```

2.) Booting into emergency target(systemd.unit=emergency.target)

Result: Message displays saying I am in emergency mode and asks for root password for 
maintenance or press Control-D To continue. Blinking typing sign shows up for a second and 
then dissapears. I cannot type or press Control-D and seems to be frozen.

I then finally tried booting with init=/bin/sh and I have access to an shell finally but I am at a loss at what I should start doing.

The top of my shell states /bin/sh: 0: can't access tty: job control turned off

I remounted my drive, and ran systemctl enable debug-shell.service which created a sym link and is supposed to give me access to a root shell from an early point so I can check systemctl logs. I also tried running fsck -f / and fsck -f /dev/sda8 to check my disk but it said

/dev/sda8 is mounted
e2fsck: cannot continue, aborting.

I reboot and boot in using the normal ubuntu and after pressing ctrl + alt + f9, a root shell comes up with my user but I only have a few seconds before it freezes entirely again.

What is causing this issue and any suggestions on fixing it?

grub2 – ZFS – grub zfs detection failed

I installed with my root pool as rpool before the installer had the option.

My main HDD bit the dust, so I’m now in the process of resilvering and in the meantime I am reinstalling grub on the new drive. Unfortunately I cannot get ZFS to be properly detected. I get the dreaded error: unknown filesystem. error from grub.

Note that I don’t think it has anything to do with resilvering because I am probing an existing (not new) device.

You’ll see that it passes all checks except #12 which seems to be the feature check. I don’t see any feature error in the log however. I have all the 0.8.3 features enabled.

Can I force it to detect as ZFS, or is there a way to fix grub?

Logs below:

root@ubuntu-server:~# grub-probe --device /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 -vvvvvvvvvv
grub-probe: info: cannot open `/boot/grub/device.map': No such file or directory.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 is not present.
grub-probe: info: Looking for /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/sdb is a parent of /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 starts from 1050624.
grub-probe: info: opening the device hostdisk//dev/sdb.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb' in open_device()
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb1' in open_device()
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb1'
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb1'
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb2' in open_device()
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/dfly.c:72: bad magic (found 0x20494645; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-probe: info: Partition 0 starts from 2048.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: Partition 1 starts from 1050624.
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 is present.
grub-probe: info: Looking for /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/sdb is a parent of /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 starts from 1050624.
grub-probe: info: opening the device hostdisk//dev/sdb.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb' in open_device()
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/dfly.c:72: bad magic (found 0x20494645; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-probe: info: Partition 0 starts from 2048.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: Partition 1 starts from 1050624.
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 is present.
grub-probe: info: Looking for /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/sdb is a parent of /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2.
grub-probe: info: /dev/disk/by-id/ata-ST2000DM001-1ER164_W4Z04ZJX-part2 starts from 1050624.
grub-probe: info: opening the device hostdisk//dev/sdb.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb' in open_device()
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb'
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/disk/diskfilter.c:137: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sdb.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sdb.
grub-probe: info: scanning hostdisk//dev/sdb for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hostdisk//dev/sdb.
grub-probe: info: no LVM signature found.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/dfly.c:72: bad magic (found 0x20494645; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-probe: info: Partition 0 starts from 2048.
grub-core/partmap/dfly.c:72: bad magic (found 0x0; wanted 0xc4464c59)
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552)
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-probe: info: Partition 1 starts from 1050624.
grub-core/kern/disk.c:295: Closing `hostdisk//dev/sdb'.
grub-probe: info: opening hostdisk//dev/sdb,gpt2.
grub-core/kern/disk.c:196: Opening `hostdisk//dev/sdb,gpt2'...
grub-probe: info: drive = 0.
grub-probe: info: the size of hostdisk//dev/sdb is 3907029168.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=1048576
grub-core/partmap/gpt.c:114: GPT entry 1: start=1050624, length=3905978368
grub-core/kern/fs.c:56: Detecting zfs...
grub-core/osdep/hostdisk.c:417: opening the device `/dev/sdb2' in open_device()
grub-core/fs/zfs/zfs.c:1196: label ok 0
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1011: check 2 passed
grub-core/fs/zfs/zfs.c:1022: check 3 passed
grub-core/fs/zfs/zfs.c:1029: check 4 passed
grub-core/fs/zfs/zfs.c:1039: check 6 passed
grub-core/fs/zfs/zfs.c:1047: check 7 passed
grub-core/fs/zfs/zfs.c:1058: check 8 passed
grub-core/fs/zfs/zfs.c:1068: check 9 passed
grub-core/fs/zfs/zfs.c:1090: check 11 passed
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1196: label ok 1
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1011: check 2 passed
grub-core/fs/zfs/zfs.c:1022: check 3 passed
grub-core/fs/zfs/zfs.c:1029: check 4 passed
grub-core/fs/zfs/zfs.c:1039: check 6 passed
grub-core/fs/zfs/zfs.c:1047: check 7 passed
grub-core/fs/zfs/zfs.c:1058: check 8 passed
grub-core/fs/zfs/zfs.c:1068: check 9 passed
grub-core/fs/zfs/zfs.c:1090: check 11 passed
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1196: label ok 2
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/fs/zfs/zfs.c:1196: label ok 3
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/kern/fs.c:78: zfs detection failed.
grub-core/kern/fs.c:56: Detecting xfs...
grub-core/fs/xfs.c:909: Reading sb
grub-core/fs/xfs.c:258: Validating superblock
grub-core/kern/fs.c:78: xfs detection failed.
grub-core/kern/fs.c:56: Detecting ufs2...
grub-core/kern/fs.c:78: ufs2 detection failed.
grub-core/kern/fs.c:56: Detecting ufs1_be...
grub-core/kern/fs.c:78: ufs1_be detection failed.
grub-core/kern/fs.c:56: Detecting ufs1...
grub-core/kern/fs.c:78: ufs1 detection failed.
grub-core/kern/fs.c:56: Detecting udf...
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/osdep/hostdisk.c:396: reusing open device `/dev/sdb2'
grub-core/kern/fs.c:78: udf detection failed.
grub-core/kern/fs.c:56: Detecting tarfs...
grub-core/kern/fs.c:78: tarfs detection failed.
grub-core/kern/fs.c:56: Detecting squash4...
grub-core/kern/fs.c:78: squash4 detection failed.
grub-core/kern/fs.c:56: Detecting sfs...
grub-core/kern/fs.c:78: sfs detection failed.
grub-core/kern/fs.c:56: Detecting romfs...
grub-core/kern/fs.c:78: romfs detection failed.
grub-core/kern/fs.c:56: Detecting reiserfs...
grub-core/kern/fs.c:78: reiserfs detection failed.
grub-core/kern/fs.c:56: Detecting procfs...
grub-core/kern/fs.c:78: procfs detection failed.
grub-core/kern/fs.c:56: Detecting odc...
grub-core/kern/fs.c:78: odc detection failed.
grub-core/kern/fs.c:56: Detecting ntfs...
grub-core/kern/fs.c:78: ntfs detection failed.
grub-core/kern/fs.c:56: Detecting nilfs2...
grub-core/kern/fs.c:78: nilfs2 detection failed.
grub-core/kern/fs.c:56: Detecting newc...
grub-core/kern/fs.c:78: newc detection failed.
grub-core/kern/fs.c:56: Detecting minix_be...
grub-core/kern/fs.c:78: minix_be detection failed.
grub-core/kern/fs.c:56: Detecting minix3_be...
grub-core/kern/fs.c:78: minix3_be detection failed.
grub-core/kern/fs.c:56: Detecting minix3...
grub-core/kern/fs.c:78: minix3 detection failed.
grub-core/kern/fs.c:56: Detecting minix2_be...
grub-core/kern/fs.c:78: minix2_be detection failed.
grub-core/kern/fs.c:56: Detecting minix2...
grub-core/kern/fs.c:78: minix2 detection failed.
grub-core/kern/fs.c:56: Detecting minix...
grub-core/kern/fs.c:78: minix detection failed.
grub-core/kern/fs.c:56: Detecting jfs...
grub-core/kern/fs.c:78: jfs detection failed.
grub-core/kern/fs.c:56: Detecting iso9660...
grub-core/kern/fs.c:78: iso9660 detection failed.
grub-core/kern/fs.c:56: Detecting hfsplus...
grub-core/kern/fs.c:78: hfsplus detection failed.
grub-core/kern/fs.c:56: Detecting hfs...
grub-core/kern/fs.c:78: hfs detection failed.
grub-core/kern/fs.c:56: Detecting fat...
grub-core/kern/fs.c:78: fat detection failed.
grub-core/kern/fs.c:56: Detecting f2fs...
grub-core/kern/fs.c:78: f2fs detection failed.
grub-core/kern/fs.c:56: Detecting ext2...
grub-core/kern/fs.c:78: ext2 detection failed.
grub-core/kern/fs.c:56: Detecting exfat...
grub-core/kern/fs.c:78: exfat detection failed.
grub-core/kern/fs.c:56: Detecting cpiofs_be...
grub-core/kern/fs.c:78: cpiofs_be detection failed.
grub-core/kern/fs.c:56: Detecting cpiofs...
grub-core/kern/fs.c:78: cpiofs detection failed.
grub-core/kern/fs.c:56: Detecting cbfs...
grub-core/kern/disk.c:421: Read out of range: sector 0xe902808e (attempt to read or write outside of partition).
grub-core/kern/fs.c:78: cbfs detection failed.
grub-core/kern/fs.c:56: Detecting btrfs...
grub-core/kern/fs.c:78: btrfs detection failed.
grub-core/kern/fs.c:56: Detecting bfs...
grub-core/kern/fs.c:78: bfs detection failed.
grub-core/kern/fs.c:56: Detecting afs...
grub-core/kern/fs.c:78: afs detection failed.
grub-core/kern/fs.c:56: Detecting affs...
grub-core/kern/fs.c:78: affs detection failed.
grub-probe: error: unknown filesystem.

grub2 – How to fully remove Ubuntu from UEFI boot menu

I recently uninstalled Ubuntu from my dual boot, so I could change some partition stuff, but even after deleting the ubuntu folder from the EFI folder, a blank entry still appeared on the boot menu. I tried to reinstall Ubuntu with my new partition setup, but it gave me an error relating to grub fails to install. I’m not sure why I got this error saying that I deleted it from the system partition. If I try to boot into the new Ubuntu boot entry I get greeted with the grub Bash, rather than a boot menu. Any ideas on how to fix this?

grub2 – My Ubuntu 18.04 LTS failed to boot

I made some research as im a new linux user and found some fixes for the GRUB which i did and successfully completed
sudo apt-add-repository ppa:yannubuntu/boot-repair sudo apt update sudo apt install -y boot-repair boot-repair

Everytime I start my computer it fails to load and opens a black screen with the following text/code Im not sure

/dev/mmcbIk0p1: clean, 170092/1908736 files, 2377271/7633408 blocks

i figured this might be a progressive process that I should wait to load but it just sits there on those numbers for hours till my battery dies.

When I did the GRUB repair i logged the process to pastebin link => https://paste.ubuntu.com/p/Z4Jz9SYsk3/

I still have the media I used to install ubuntu 18.04 LTS though I cannot afford to lose the data and therefore cant reinstall the OS until all options are exhausted

If anyone has had this erroe before and fixed it your assistance will be greatly appreciated

Thanks :] godspeed

grub2 – Need help to undersant the Boot Repair Summary

I have a dual-boot system with Ubuntu 20.04 lts and Windows 10, yesterday my Ubuntu stopped and every time I try to boot give me this error:

ext-fs error device sda 7 ext4_find_entry comm gdm3: reading directory iblock 0

I was trying to start ubuntu on an USB-live, install and run boot-ubuntu and on the first try I was not abble because Windows was hibernating, so I boot on windows, did some commands and shutdowned to not Hibernate.

But now I`m getting this error

https://paste.ubuntu.com/p/xskXbm7wrR/

IDK if have some relation, but my GParted is warning on /dev/sda2 Microsoft reserved partition

sudo fdisk -lu
Disk /dev/loop0: 1.99 GiB, 2109763584 bytes, 4120632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 218.102 MiB, 229629952 bytes, 448496 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 55.48 MiB, 58159104 bytes, 113592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 64.79 MiB, 67915776 bytes, 132648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 51.4 MiB, 53522432 bytes, 104536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 31.9 MiB, 32595968 bytes, 63664 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 223.58 GiB, 240057409536 bytes, 468862128 sectors
Disk model: SanDisk SDSSDA24
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D298BF4A-D171-4DF7-BF08-A9CF641DF200

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    206847    204800   100M EFI System
/dev/sda2     206848    239615     32768    16M Microsoft reserved
/dev/sda3     239616 162796915 162557300  77.5G Microsoft basic data
/dev/sda4  162797568 163839999   1042432   509M Windows recovery environment
/dev/sda5  163840000 468860927 305020928 145.5G Linux filesystem


Disk /dev/sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EARS-00Y
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 46BCB408-FC3B-47DD-95D9-38A42D5A371A

Device     Start        End    Sectors   Size Type
/dev/sdb1     34      32767      32734    16M Microsoft reserved
/dev/sdb2  32768 1953521663 1953488896 931.5G Microsoft basic data

Partition 1 does not start on physical sector boundary.


Disk /dev/sdc: 14.61 GiB, 15669919744 bytes, 30605312 sectors
Disk model: Cruzer Blade    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x002bff7d

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1  *     2048 30605311 30603264 14.6G  c W95 FAT32 (LBA)

grub2 – Ubuntu grub boot problem

I don’t know exactly what is happening but I have some ideas.

Yesterday my ubuntu start crashing during the boot, sometimes the crash happens during the boot, and sometimes after I select the user and type the Password, the Ubuntu prompt me with the select User again and crash.

I have a dual-boot system with Ubuntu 20.04 and Windows 10.

I already tryied to load ubuntu on recovery mode and put that ‘nomodeset’ thing, but nothing change.

So I did a bootable Ubuntu Usb and runned on Try Ubuntu to try install and run ubuntu-repair

I got to the part that instruct me to put some commands on the cli, but the repair failled.

That is the Error Url

https://paste.ubuntu.com/p/wPzxzPwCN9/

IDK more what to do.

grub2 – Cannot enable hybernation due to missing swap UUID

I have tried to follow the instructions mentioned here in order to activate hybernation on my Ubuntu 20.04.2 LTS system.

However, I could not do it because in my fstab file the swap line does not provide a uuid as you can see below:

  GNU nano 4.8                       /etc/fstab                                 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=86a29cef-7076-4d45-9d5c-08065fd3e3fb /boot           ext4    defaults     >
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6B80-CFF9  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0

  GNU nano 4.8                       /etc/fstab                                 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=86a29cef-7076-4d45-9d5c-08065fd3e3fb /boot           ext4    defaults     >
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6B80-CFF9  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0

Does anybody have recommendations?

grub2 – Ubuntu does not boot, kernel panic – not syncung: Fatal exeption in interrupt

My VM box all of a sudden stopped working. When I start the system the following message appears.

Then either initialization options retrieve the same error as bellow.

I suspect it is because I ran out of space on my VM box storage because I’d been receiving a notification telling on the short space (500mb left if I remember correctly) but unfortunately I could not make any remove command on the grub shell.

I do not mind losing the entire machine, apart from my www/ folder, so some possible solutions came to my mind and would be much appreciated:

Delete some files from the machine – restricted to the actions of the grub.
Manage to recover my www/ folder to another Linux ubuntu server.
Be able to get to cmd and perform the apt-get autoremove – or something similar.
Any other idea is also welcomed (given the desperation state I am in now)

grub2 – How to reinstall missing libraries to repair ubuntu 20.10 after stupidly purging some libraries and shutting down

I’m fairly new to linux and I was trying ti install samba in order to use to share files with a Windows 10 qemu/kvm virtual machine. Samba though wouldn’t be installed and I couldn’t figure out why. Searching through the forum I stupidly followed some guy’s instructions where he would autoremove some library but with the --purge flag.

Almost immediately I realized that wasn’t a wise move since it had started removing libs like pulse audio and gnome. I wasn’t worried because I found in the logs the libraries that had been removed and I was in the process of writing a mini C++ program to take the log file as input and generate a bash file to re-install thise libraries.

Meanwhile though I had to move to a different location, so I closed the lid of the laptop. And from there things went south. When I reopened the lid, the screen wouldn’t let me authenticate (keyboard was inaccessible and the login couldn’t receive any input), so I had to reboot, hoping for a miracle.

Needless to say that the miracle didn’t came. I’m in the process of taking a backup through the SupportAssist OS Recocery that Dell ships with. I also have access to grub.

Is there any way to save the situation without freshly reinstalling the OS?