Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What I did to get the F22 system booted:

Boot with USB-stick, which had F22 LXDE Live. Open Command Window.

su -
fdisk -l /dev/sda
# Noticed the LUKS partition was /dev/sda6 and /boot partition /dev/sda1
cryptsetup luksOpen /dev/sda6 fedora
password: <gave the LUKS password>
mkdir /mnt/root
mount /dev/mapper/fedora_hostname-root /mnt/root
mount /dev/sda1 /mnt/root/boot/
mount -o bind /dev /mnt/root/dev
mount -o bind /proc /mnt/root/proc
mount -o bind /sys /mnt/root/sys
mount -o bind /run /mnt/root/run
chroot /mnt/root
grub2-install --no-floppy --recheck /dev/sda
# Complained, there should be GRUB_ENABLE_CRYPTOSYSTEM=y in /etc/default/grub
echo "GRUB_ENABLE_CRYPTOSYSTEM=y" >>/etc/default/grub
grub2-install --no-floppy --recheck /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
/sbin/shutdown -r now
# Booted (But not to the Fedora system, but just to Grub prompt.)
# Asked LUKS password already in this stage.
# Went to the GRUB2 normal prompt. (not just Grub2 rescue prompt anymore)
grub> ls
# shows also LVM partitions inside LUKS-partition
set root=(hd0,msdos1)
configfile /grub2/grub.cfg

Now I got the normal Grub boot menu, where also were Linux kernels, Linux-rescue kernel and Windows 7.