I am frustrated beyond belief and hope somebody else that has experience could help work through this. I have a Lenovo Helix that I want to reinstall Windows 8 on; Linux is just not ready to be a full tablet system and I do not want to install Android x86. I left the recovery partition alone and it still exists; however, I cannot get grub2 to see it at all.
I have searched these forums, the Internet and Ubuntu’s site. Anything dealing with Debian is a no-go as they have a script called “update-grub” that will implement changes made in /etc/grub.d/.
After reading many posts, I created the following:
/etc/grub.d/11_Windows
#!/bin/bash -e
echo "Adding Windows">&2
cat<<EOF
menuentry "Lenovo Recovery" {
set root=(hd0,5)
chainloader +1
}
EOF
I then run the command:
grub2-efi-mkconfig -o /boot/grub2-efi/grub.cfg
and receive the following:
Generating grub.cfg ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-3.7.10-1.16-desktop
Found initrd image: /boot/initrd-3.7.10-1.16-desktop
Found linux image: /boot/vmlinuz-3.7.10-1.1-desktop
Found initrd image: /boot/initrd-3.7.10-1.1-desktop
Adding Windows
No volume groups found
done
gparted shows:
/dev/sda2 fat16 /boot/efi 260.00 MiB
/dev/sda1 crypt-luks 2.00 GiB [This is my swap space]
/dev/sda3 ext-4 / 40.30 GiB
/dev/sda4 crypt-luks /home 107.00 GiB
/dev/sda5 ntfs /mnt/ntfs 10.14 GiB
unallocated 7.00 GiB
I mounted the ntfs partition and re-ran
grub2-efi-mkconfig -o /boot/grub2-efi/grub.cfg
And it still did not find the Windows Recovery partition.
Grub used to be wonderfully useful and intuitive; or, if not intuitive, at least easy to learn; adding a Windows partition to grub2 seems to take some voodoo as I cannot find a straight example anywhere.
Any help is much appreciated, thank you.