I have a laptop, with installations of Ubuntu 12.10, and Windows 8.Windows 8 was first installed on the system, and Ubuntu was installed afterwards.During the Ubuntu installation, the installer recognized that there are existing partitions, but failed to see any OS on them. I created another ext4 partition in the free space, and installed Ubuntu. Initially grub only added the entry for Ubuntu, and Ubuntu works ok.Now I wanted to enter w8 settings to Grub manually, and modified /etc/grub.d/40_custom:#!/bin/bashexec tail -n +3 $0# This file provides an easy way to add custom menu entries.  Simply type the# menu entries you want to add after this comment.  Be careful not to change# the 'exec tail' line above.menuentry Windows 8 {    insmod part_gpt    insmod fat    insmod search_fs_uuid    insmod chain    #set root='(hd0,gpt1)'    search --fs_uuid --no-floppy --set=root --hint-bios=hd0,gpt2 --hint efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2    chainloader /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi}The search string (second to last) I found with this command: sudo grub-probe --target=hints_string /boot/efi/EFI/Microsoft/Boot/bootmgfw.efiNow after updating grub config, rebooting and selecting windows 8 entry, it complains: error: unspecified search typeerror: file '/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi' not foundPress any key to continueIn Ubuntu however, if I do ls /boot/efi/EFI/Microsoft/Boot/b*/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi/boot/efi/EFI/Microsoft/Boot/bootmgr.efi/boot/efi/EFI/Microsoft/Boot/boot.stl/boot/efi/EFI/Microsoft/Boot/bg-BG:bootmgfw.efi.muibootmgr.efi.muiNow, if I press e to edit the Windows 8 entry, and then select F2 to enter grub shell, indeed if I try to run ls /boot/efi, no files are shown.Funnily enough, if at this point I just type exit, windows 8 will boot up.fdisk -l gives me that it recognizes /dev/sda1 as GPT partitionAny ideas what I should do to get grub working right out of the menu?
Dual booting Ubuntu and Windows 8. w8 boots through grub shell, but not from menu
windows;dual boot;grub2;gpt;uefi