Support with booting from NVMe SSD


#1

Today I removed the stock 128GB ssd from a librem13v4 and added a NVMe PCIe M.2 SSD

I booted from a USB stick and installed the OS just fine. Grub did not complain when grub-install /dev/nvme0n1 but the laptop only boots into memtest.

seabios 1.11.1 shows:
“1. NVMe NS 1: 238 MiB (125026902 2-byte blocks + 3072-byte metadata)”

while when I boot via a USB stick and check on fdisk -l i get
“/dev/nvme0n1: 476.96 GiB 125026902 sectors”
It is formated with MBR and primary partitions, one set as boot. First partition starts at the default 256sect and is 1Gb. grub installed as i386-pc (no efi).

I have absolutely no idea why seabios shows that “238Mb”… doesn’t seem to match anything on the device.

How do I have it booting from the right place?

edit 1: Tried to install pureOS and let it use the entire disk with Erase option. Nothing changed.

edit 2: upgraded seaBios to 1.12.0. Nothing changed.


#2

sigh. installed pureOS on the original SSD.

coreboot/seabios is a crappy-fest!

No matter what i do to the NVMe (leave blank partitions with or without boot flag, wipe partitions, partition as gpt, dos) it will still always boot into memtest/sysinfo by default despite that being the 3rd option.

Why is that so? if boot option 1 fails, shouldn’t it boot from option 2 before option 3?

then manually selecting option 2 (ssd) is a 50/50 chance of seeing pureOS grub menu, or be stuck forever on a blank screen.


#3

meh. had to an SSD in the end just so i could boot consistently, after installing archlinux. no idea what’s up with pureOS’ flavor of grub.

now i have / on nvme0n1p1, and /boot on sda1. what a mess coreboot is.

at least booting from the pureOS live USB stick and running the coreboot updater script to change the boot order to the SSD to be the first option is “convenient”


#4

i guess grub on pureOS wasn’t the problem. it did had a higher failure rate though.

With archlinux’s grub (and same with latest grub from source) i get one failed boot every 5 or so. With pureOS it was 1 out of 2.

and that is using an ssd MBR for the boot stuff. only nvme access is on initrd to load kernel/root.


#5

Sorry you’ve been having issues. You might find these of help (provided you’re using a Librem):


#6

@gcb I’ve not seen any issues with SeaBIOS misidentifying or failing to boot from an NVMe drive since we issued a fix for some drives back in version 4.8.1-Purism-3. If you can provide more details (make, model, capacity, firmware version) of your drive then we can look into identifying and fixing the issue