Howto rescue Fedora 22 LXDE x86_64 system with LUKS with corrupt boot sector?
The PC has Fedora 22 LXDE x86_64 installed from F22 LXDE Live usb-stick. The system was installed with LUKS encryption enabled. Otherwise the installation was automatic by the LXDE Live system install.
Needed to upgrade BIOS. Only way to do it was from Windows. Windows was now installed on extra partition. It overwrote MBR.
After this only Windows 7 boot.
How to rescue the Fedora 22 LXDE system now?
Booting with the install media, F22 LXDE Live-usb stick doesn't seem to have any rescue mode or selection.
Doing just "grub2-install /dev/sda" on the Live-usb system does not rescue the F22 system on the local hard drive. Now when booted from the hard drive: ". error: no such device: 05xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Entering rescue mode... grub rescue>"
I thought the install media, in this case F22 LXDE x86_64 Live usb-stick, would have tools and methods to easily rescue installs. It should have.
The /dev/sda1 has /boot (ext2) the /dev/sda6 has swap and /, but it is with LVM and LUKS-encryption. The system does not use UEFI.
So, did you have only Linux on the system before installing Windows in a dual-boot (?) arrangement in an attempt to address your motherboard BIOS update?
If we're sure Windows simply wrecked GRUB, you can can reinstall GRUB, but you'll need to configure it to chainload the Windows bootloader if you intend to keep dual-booting (as I presume you are?). I've always wanted to write up instructions to do that, but I haven't gotten around to it. If that's what needs to happen, I can at least point you at some helpful documentation.
Yes. It was an empty SSD (500G). II only intended to have and use Linux in it. But just in case, I had reserved 50 GB partition if I ever need to install something else. Then later, I wanted to upgrade RAM to this laptop, and because of that BIOS needed to be upgraded and HP provided only an .exe program which needed Windows underneath, so I then installed Windows. Yes, stupid me not to preserve MBR before that. I wrongly assumed Fedora22 install media would know how to rescue the system.