Andrei Borzenkov composed on 2022-11-08 12:15 (UTC+0300):
Felix Miata wrote:
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. ... Are you sure your firmware is capable of booting from NVMe directly?
4 year old *NVME* /is 120G. New *NVME* is 500G. It was able to initialize boot into the new ESP using the efibootmgr-created entry I made to test with before populating the TW system partition with rsync from the old NVME, but there just wasn't any /boot/grub2 directory tree from which to load normal, custom.cfg or grub.cfg from. ...
# 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.
Is that some different EFI shell from the rescue shell that is presented booting without the USB stick? After doing the latter, following: error: symbol 'grub_is_lockdown' not found. Entering rescue mode... grub rescue> ls is included: 6 partitions on the Ventoy rescue boot media containing a TW20220925 .iso from which I booted the installed system on nvme0n1p7. ((hd0) (hd1) (hd2) ... (hd5)) (hd6) 16 partitions on the old NVME ((hd6,gpt16) (hd6,gpt15) ... (hd6,gpt1)) (hd7) 18 partitions on the new NVME ((hd7,gpt18) (hd7,gpt17) ... (hd7,gpt1)) What is the "Boot variable" it could not prepare using efibootmgr -c? For similar reasons several days ago I searched for symbol 'grub_is_lockdown' not found without finding a useful hit. On that PC I solved the problem by an (ASUS) BIOS change: enabling legacy booting. That didn't help in the instant situation. -- 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