reinstating boot/efi partition lost on a fried SSD
by gumb from LinuxQuestions.org on (#4SX7D)
One of my SSDs failed and I lost the data on it. I've installed a new one but need to reconstruct the lost /boot/efi partition, and get it and the original root partition talking to each other.
The machine has two SSDs. The M.2 drive (sdb) holds the root partition (sdb1), which is still intact, whilst the SATA drive which failed (sda) held the boot/efi partition in addition to the /home partition. (Since this is a 'new' secondhand laptop I hadn't got around to doing a backup yet, so my last backup is my old laptop).
After installing a replacement SATA SSD, I booted the openSUSE Leap 15.1 rescue system from a USB stick, changed root to the original oS installation on sdb1 and then, from within the YaST Partitioner, created a new /boot/efi partition (sda1) and /home (sda2) on the new disk.
Everything is mounted by UUID, and fstab contains the new /boot/efi partition, but it appears that it is empty and I don't know how to fill it with the necessary files and link it to the root partition. Currently if I reboot I get the error:
no such device: /efi/boot/fallback.efi
I've tried forcibly reinstalling the package grub2-x86_64-efi from the USB stick (I don't know how to get network from the rescue system) and after some random googling have tried the command
Code:efibootmgr -c --disk /dev/sda --part 1 as well as openSUSE's grub update command
Code:grub2-mkconfig -o /boot/grub2/grub.cfgwhich both looked to have done whatever they're required to do, but I'm just grabbing at straws and there's other missing link(s) in the chain to get this install back up and running. Any ideas?


The machine has two SSDs. The M.2 drive (sdb) holds the root partition (sdb1), which is still intact, whilst the SATA drive which failed (sda) held the boot/efi partition in addition to the /home partition. (Since this is a 'new' secondhand laptop I hadn't got around to doing a backup yet, so my last backup is my old laptop).
After installing a replacement SATA SSD, I booted the openSUSE Leap 15.1 rescue system from a USB stick, changed root to the original oS installation on sdb1 and then, from within the YaST Partitioner, created a new /boot/efi partition (sda1) and /home (sda2) on the new disk.
Everything is mounted by UUID, and fstab contains the new /boot/efi partition, but it appears that it is empty and I don't know how to fill it with the necessary files and link it to the root partition. Currently if I reboot I get the error:
no such device: /efi/boot/fallback.efi
I've tried forcibly reinstalling the package grub2-x86_64-efi from the USB stick (I don't know how to get network from the rescue system) and after some random googling have tried the command
Code:efibootmgr -c --disk /dev/sda --part 1 as well as openSUSE's grub update command
Code:grub2-mkconfig -o /boot/grub2/grub.cfgwhich both looked to have done whatever they're required to do, but I'm just grabbing at straws and there's other missing link(s) in the chain to get this install back up and running. Any ideas?