* Andrei Borzenkov <arvidjaar@gmail.com> [03-21-19 14:08]:
21.03.2019 16:18, Patrick Shanahan пишет:
* Andrei Borzenkov <arvidjaar@gmail.com> [03-21-19 09:03]:
On Thu, Mar 21, 2019 at 3:58 PM Patrick Shanahan <paka@opensuse.org> wrote:
[...]
actually referring to the replacement. how does one create the efi partition and put/write there what is needed (repopulate). I have built many systems but none with efi/esp. I am still using my last home-built box as my main workstation and it has been quite a few years.
You can create ESP using any tool you are familiar with - fdisk, gdisk, (g)parted, YaST. All offer mnemonic names for partitions so you do not need to remember EFI System Partition ID or GUID. Format it as FAT32, mount as /boot/efi. Then make sure you boot rescue medium in EFI mode, chroot, make sure you have all btrfs subvolumes mounted (mount -a -t btrfs) besides usual /sys, /dev, /proc and do "update-bootloader --reinit". Assuming bootloader configuration was correct previously, this should copy whatever files are necessary onto ESP and create NVRAM boot entry.
You can also use shim-install or grub2-install directly.
thanks all. I have a complete recovery from the failing/failed disk. the only bad sector happed to be on /dev/sda1, the EFI partition. used ddrescue to recreate the seven partitions (win10 included) to an attached usb3.1 drive using live leap 15.0 to boot replaced rust with ssd used dd to rewrite all partitions. deleted sda1 and recreated it. used above instructions from Andrei to chroot and then rewrite the EFI partiition, including shim-install and grub2-install last. provided bootable Tw system but no windows (not really a bad thing). booted manually into a win 10 install disk and recreated windows EFI boot entry in /dev/sda1 left me w/o Tw access. booted again with live leap 15.0 and created chroot. used efibootmgr to set Tw in front of windows. booted back successfully to Tw and used os-prober/grub2-mkconfig -o /boot/grub2/grub.cfg to successfully add window back to grub menu repeated both boots successfully. success. full recovery unless I see something I have not yet noticed. thanks all for your help, understanding and patience. was a learning experience I hope will not be repeated. but things happen :) -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org