Hi
I have a mini PC, and ages ago installed Windows 11 onto the internal M.2 drive
AND Ubuntu 22.04 LTS onto an external USB drive. I don’t actually remember in which order I did this. The boot drive, and default boot, was Ubuntu 22.04, i.e. the external USB drive, which was first in the boot order in the AMI BIOS. grub was the bootloader, and offered me Ubuntu or Windows, on rare occasions I wanted to boot into windows I just selected it.
A while ago I physically moved the computer, and after moving it I did not use it for several weeks. Today I did use it, but forgot to connect the USB drive, forgot I had even used a USB drive, and the system would not boot. After a bit of confusion I (stupidly) reset BIOS to factory defaults. It did not help, and was likely unwise.
Then I remembered about the USB boot drive, connected it, and Ubuntu boots fine. The BIOS is in UEFI “boot mode”. As system had not been running for a while, there were loads of Ubuntu updates, whcih installed fine. This included kernel and grub updates.
On next boot I noticed Windows was no longer in boot menu. Curious …
Then in Ubuntu I noticed these errors from the M.2 drive:
Jan 2 13:40:01 u2023 kernel: [ 2.063562] nvme0n1: unable to read partition table
nvme0n1: unable to read partition table
Jan 2 13:40:01 u2023 kernel: [ 1.282679] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.328783] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.391818] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.437320] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.485396] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.530219] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.575634] Buffer I/O error on dev nvme0n1, logical block 0, async page read
Jan 2 13:40:01 u2023 kernel: [ 1.576149] Dev nvme0n1: unable to read RDB block 0
Looking at previous logs:
Oct 25 12:51:59 u2023 kernel: [ 1.184875] nvme nvme0: pci function 0000:01:00.0
Oct 25 12:51:59 u2023 kernel: [ 1.188952] nvme nvme0: missing or invalid SUBNQN field.
Oct 25 12:51:59 u2023 kernel: [ 1.198526] nvme nvme0: allocated 16 MiB host memory buffer.
Oct 25 12:51:59 u2023 kernel: [ 1.207461] nvme nvme0: 8/0/0 default/read/poll queues
Oct 25 12:51:59 u2023 kernel: [ 1.209318] nvme nvme0: Ignoring bogus Namespace Identifiers
Oct 25 12:51:59 u2023 kernel: [ 1.213962] nvme0n1: p1 p2 p3 p4 p5
Now I don’t think the M.2 drive is broken, I think I’ve somehow made it inaccessible by resetting the BIOS and losing some important setting(s)? But truly, though I understand Linux quite well, I dont understand UEFI topics well at all, so maybe the M.2 “drive” is indeed simply broken.
How to troubleshoot this?
I don’t have any other device that has a M.2 slot.
TIA for any advice, Kevin