I'm stuck at a grub prompt since installing Ubuntu 18.04. I have tried all the things I can find online but I'm stumped.
It was a clean install of Ubuntu 18.04 started from a USB stick. I had 17.10 installed but selected to overwrite my old installation during the new install. I also have a Windows 10 partition as I dual boot.
The install happened fine, but now when I boot my machine I end up at the grub> prompt.
If I type exit Ubuntu boots with no problems.
If I manually select the drive with Windows on from my BIOS it loads with no problems.
I tried using the grub-rescue disk tool but it says it can't run because it's not in EFI mode.
An output of the diagnostics from this shows:
=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub-efi-amd64-signed of nvme0n1p7, using the following options: nvme0n1p1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s fix-windows-boot use-standard-efi-file
I've tried installing grub using this:
sudo grub-install --efi-directory=/dev/nvme0n1p1/
But I get an error:
Installing for i386-pc platform.
grub-install: error: install device is not specified.
It's a nvmie drive. I'm a bit stumped. Any ideas of what else I can try?