grub not working with windows 8.1 in hp laptop

Asked by Pawan

my laptop model HP-15 r014tx.
firstly it was dual booted then after few days there some problem arises in grub loader.
and only i can access windows 8.1 only and it is not showing any option to choose the windows and ubuntu

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ubfan (ubfan1) said :
#1

Sounds like Windows put itself back into first place in the boot order, which it does like to do. You can keep resetting the bootorder with bcdedit (Win) or efibootmgr (Ubuntu), or just use a function key (varies by machine) at power-up to select the boot device/OS. Other things to try would be to trick Windows by renaming the shim/grub bootloader to the Windows bootloader name (bootmgvw.efi) like boot-repair does (backing up the original Windows bootloader file first of course). In any case, it's good to have a fallback in place in case your nvram bootloader selection gets clobbered. On the hard disk, put a copy of shim.efi into the EFI partition (it gets mounted at /boot/efi) -- /boot/efi/EFI/Boot/bootx64.efi (the renamed shim.efi file). Also put a copy of the grubx64.efi bootloader there. Normally, these will never be run, but under certain error conditions, they may get run.

Revision history for this message
Ubfan (ubfan1) said :
#2

Sounds like Windows put itself back into first place in the boot order, which it does like to do. You can keep resetting the bootorder with bcdedit (Win) or efibootmgr (Ubuntu), or just use a function key (varies by machine) at power-up to select the boot device/OS. Other things to try would be to trick Windows by renaming the shim/grub bootloader to the Windows bootloader name (bootmgvw.efi) like boot-repair does (backing up the original Windows bootloader file first of course). In any case, it's good to have a fallback in place in case your nvram bootloader selection gets clobbered. On the hard disk, put a copy of shim.efi into the EFI partition (it gets mounted at /boot/efi) -- /boot/efi/EFI/Boot/bootx64.efi (the renamed shim.efi file). Also put a copy of the grubx64.efi bootloader there. Normally, these will never be run, but under certain error conditions, they may get run.

Can you help with this problem?

Provide an answer of your own, or ask Pawan for more information if necessary.

To post a message you must log in.