So I recently attempted dual booting Ubuntu with Windows 8.1 on a HP Pavilion G6. So far I've gotten everything working except whenever I turn on or restart my computer, it loads straight into windows. Currently the only way to get into Ubuntu is to get into my UEFI Firmware settings, entering Boot Device options and selecting Ubuntu. I've been researching for the past half an hour and I've tried the following:
Disabling fast boot
Running a boot repair in Ubuntu (Recommended settings)
Typing in cmd in windows
bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi
Nothing I do seems to work and windows just keeps on loading up.