On Tue, Nov 8, 2022 at 12:03 PM Felix Miata
I'm trying to make an upgraded NVME boot. Old was 120G. New is 500G. The ESP is giving me no apparent trouble, but booting from NVME normally from NVME instead of via rescue media is somehow being blocked by inability to create an EFI boot entry causing $SUBJECT message.
# grep DISTR /etc/default/grub GRUB_DISTRIBUTOR="opensusetw" # ls -1 /sys/firmware/efi/efivars | wc -l 82 # parted /dev/nvme0n1 print | grep -Ei 'p01|p07' 1 1049kB 337MB 336MB fat32 PNY5 p01 EFI System (ESP) boot, esp 7 29.3GB 37.7GB 8389MB ext4 PNY5 p07 openSUSE Tumbleweed # grep -E '0 1|boot/' /etc/fstab LABEL=PNY5P01ESP /boot/efi vfat codepage=437 0 0 LABEL=pny5p07stw / ext4 noatime 0 1 # ls -gG /boot/efi/EFI/opensusetw/ -rwxr-xr-x 1 143360 Sep 19 18:55 grubx64.efi # ls -gG /sys/firmware/ drwxr-xr-x 6 0 Nov 7 23:14 acpi drwxr-xr-x 3 0 Nov 7 23:14 dmi drwxr-xr-x 7 0 Nov 7 23:14 efi drwxr-xr-x 27 0 Nov 8 03:27 memmap # mount | grep nvme0 /dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) /dev/nvme0n1p7 on / type ext4 (rw,noatime) # ls -Gg /boot | grep '5.19' | grep -E 'vmlinuz|initrd' lrwxrwxrwx 1 24 Oct 9 23:10 initrd -> initrd-5.19.13-1-default -rw------- 1 14166604 Oct 9 23:10 initrd-5.19.13-1-default lrwxrwxrwx 1 25 Oct 9 23:10 vmlinuz -> vmlinuz-5.19.13-1-default lrwxrwxrwx 1 44 Oct 9 23:10 vmlinuz-5.19.13-1-default -> ../usr/lib/modules/5.19.13-1-default/vmlinuz # efibootmgr
Output of lonely efibootmgr is usually useless. Show "efibootmgr -v". Always.
BootCurrent: 0007 Timeout: 1 seconds BootOrder: 0003,0004,0007 Boot0003* Hard Drive Boot0004* CD/DVD Drive Boot0007* UEFI: USB DISK 3.2 PMAP, Partition 2
Are you sure your firmware is capable of booting from NVMe directly?
# lsblk -f | grep nvme0 nvme0n1 ├─nvme0n1p1 vfat FAT32 PNY5P01ESP 4C58-8D7E 294.1M 8% /boot/efi ├─nvme0n1p7 ext4 1.0 pny5p07stw ae6c138b-f360-45e7-a43c-188fcd3b3f07 2.7G 60% / # blkid | grep nvme0 /dev/nvme0n1p1: LABEL_FATBOOT="PNY5P01ESP" LABEL="PNY5P01ESP" UUID="4C58-8D7E" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="PNY5 p01 EFI System (ESP)" PARTUUID="6369e907-1e83-4df5-8574-d6d1d34e9b7e" /dev/nvme0n1p7: LABEL="pny5p07stw" UUID="ae6c138b-f360-45e7-a43c-188fcd3b3f07" BLOCK_SIZE="2048" TYPE="ext4" PARTLABEL="PNY5 p07 openSUSE Tumbleweed" PARTUUID="6369ef77-a213-4df5-8bfd-cd881d32e345" # efibootmgr -c -L "opensusetw" -l '\EFI\opensusetw\grubx64.efi' # lower case EL, not one Could not prepare Boot variable: No medium found
A web search found me zero hits for
"Could not prepare Boot variable: No medium found"
What medium is missing from where?
This is simply the standard error string for ENOMEDIUM. Programs are free to return any error code they deem appropriate. Failure to resolve the path to this device via UEFI would certainly qualify for this error code. The ultimate way is to boot into EFI Shell and check which devices are available.
What's necessary to fix this (make efibootmgr -c work)? -- Evolution as taught in public schools is, like religion, based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata