I was trying to dual boot elementary os with windows on my laptop (Asus Zenbook UX305). To do that I shrank the windows partition using the windows disk manager, and then used the Elementary installer's install alongside windows option to set up the linux partitions automatically. When I rebooted after installing I was put into the grub console. I was able to boot linux manually with the commandsgrub> set root=(hd0,gpt4)grub> linux /boot/vmlinuz-3.19.0-26-generic root=/dev/sda4grub> initrd /boot/initrd.img-3.19.0-26-genericgrub> boot  and I found that running the commandgrub> configfile (hd0,gpt4)/boot/grub/grub.cfgwould load the normal grub menu as is supposed to happen - so there don't seem to be any problems with the config file itself. I also found that the root and prefix are on (hd0,gpt1), so runninggrub> set root=(hd0,gpt4)grub> set prefix=(hd0,gpt4)/boot/grubgrub> insmod normalgrub> normalalso loaded the normal grub menu. So possibly the problem is that grub is looking on the wrong partition?In my BIOS, I have a choice between using grub and the windows bootloader to boot. Selecting the windows bootloader boots me directly into windows without any problems.However, I can't find any way to get any fixes to stick after a reboot. I've tried rerunning grub-install /dev/sda, recreating the config file with grub-mkconfig, and using the Ubuntu boot repair gui tool - none of these have worked. Is there any way to fix this short of reinstalling either or both OSs? I'd rather not have to reinstall windows if possible.
Grub not loading config file or booting into linux automatically
ubuntu;boot;grub2;dual boot;elementary os