Ubuntu/Windows 10 Dualboot - Grub missing
Oddly enough, none of the responses posted worked for me. However, for whatever reason, after installing a bunch of updates on Windows 10 (to the latest build, 1607) everything fixed itself...
The one key thing I noticed was that 'Windows Boot Manager' was once again shown in the boot order (previously missing, for reasons unknown). I am not sure why updating Windows would have had such an effect -- running windows boot repair via the USB did nothing to help (it would exit with an error indicating boot repair is not possible).
Afterward, I was able to install Ubuntu without any issues whatsoever. Wish I knew exactly what happened and why, but it seems this will have to be one of those happy accident situations.
Related videos on Youtube
mdobrenko
Updated on September 18, 2022Comments
-
mdobrenko over 1 year
I previously installed a standalone copy of Windows 10 on my Microsoft Surfacebook. I intend to set up Ubuntu dual-boot alongside it. Unfortunately, after installation following these instructions, it seems that Windows still boots over Ubuntu -- the GRUB loader is ignored?
I have tried the following:
- Running boot repair from Live Ubuntu USB. This apparently runs and does some things, which prevents both Windows and Ubuntu from booting altogether -- gets stuck with the Surfacebook loading animation, screen flashes, goes into UEFI.
- Going into windows and trying to change the boot according to this post (Running bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi).
- Installing Ubuntu by itself -- for some reason, the GRUB refuses to show up, and no boot-repair operations are of any help.
- Disabling fast boot and hibernation
Here is the info output of my boot-repair program: https://pastebin.com/N1J4H9eF
Tried running this command to rename the boot entry:
sudo efibootmgr -c -L "UEFI hard drive" -l "\EFI\Boot\bootx64.efi" -d /dev/nvme0n1 -p 2
Which gave this error
Could not prepare Boot variable: No space left on device
Here is sudo efibootmgr -c (Which I think may be pertinent):
GUID Partition Table Header signature is wrong: 0 != 5452415020494645 GUID Partition Table Header signature is wrong: 0 != 5452415020494645 GUID Partition Table Header signature is wrong: 0 != 5452415020494645 GUID Partition Table Header signature is wrong: 0 != 5452415020494645 GUID Partition Table Header signature is wrong: 0 != 5452415020494645 GUID Partition Table Header signature is wrong: 0 != 5452415020494645 Could not prepare Boot variable: No space left on device
Here is a screenshot of GParted
Any help would be greatly appreciated. Been wrestling with this problem for more than a few days now, and just can't figure it out... would prefer not to do backend development on Windows!
-
Drako almost 7 yearsI don't really get why people keep creating problems to themselves by using dual boot. For me everything works on VMs for years, and what is most fun you can do it both ways - host windows and VMs whatever or host NIX and VMs - again whatever. Yes may be some one-time issues when setting up for first time if want to use intensive graphics and need to buy a graphics card that supports virtualization, but after that - no stupid reboots to switch between machines and you can have hundreds of them on one pc for each task different.
-
mdobrenko almost 7 years@Drako Because it is painfully slow, depending on what you are doing. I would actually prefer to just run Ubuntu, but for some reason, it just refuses to do so (I get similar errors with EFI's missing, etc)
-
mdobrenko almost 7 yearsUnfortunately, this gives me the following error: pastebin.com/58WcY55r
-
Rafed Muhammad Yasir almost 7 yearsTry sudo update-grub. If no package was still not found, try it after an apt-get update. Also, are you doing this from the live usb?
-
Rafed Muhammad Yasir almost 7 yearsYou could also try grub if grub2 is not available.
-
mdobrenko almost 7 yearsGot the following errors running various commands (after apt-get update, upgrade) pastebin.com/rPCDPSpa. I am indeed running these commands on a live USB
-
Hey almost 7 yearsThen install grub-efi-amd64 like suggested. This should work.