Difference between revisions of "Windows Stuff"

From wiki.N4VX.net
Jump to navigation Jump to search
Line 3: Line 3:
 
I just had to run this in Windows as an administrator:
 
I just had to run this in Windows as an administrator:
  
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
+
<code>bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi</code>
  
 
Or, if you are using PowerShell:
 
Or, if you are using PowerShell:
  
bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi
+
<code>bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi</code>
  
 
GRUB appears fine on boot and I can boot into Ubuntu and Windows 10 fine.
 
GRUB appears fine on boot and I can boot into Ubuntu and Windows 10 fine.
Line 13: Line 13:
 
As pointed out in the comments (by David Faure), the final argument to this command depends on your particular system configuration. You can use this command to determine the correct path for your system:
 
As pointed out in the comments (by David Faure), the final argument to this command depends on your particular system configuration. You can use this command to determine the correct path for your system:
  
bcdedit /enum firmware
+
<code>bcdedit /enum firmware</code>
  
 
This will list all the installed boot managers and associated EFI paths, and grub should be somewhere in the list.
 
This will list all the installed boot managers and associated EFI paths, and grub should be somewhere in the list.

Revision as of 23:17, 11 December 2020

Dual Boot GRUB Fix

Repairing GRUB after installing W10 on top of *nix
I just had to run this in Windows as an administrator:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

Or, if you are using PowerShell:

bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi

GRUB appears fine on boot and I can boot into Ubuntu and Windows 10 fine.

As pointed out in the comments (by David Faure), the final argument to this command depends on your particular system configuration. You can use this command to determine the correct path for your system:

bcdedit /enum firmware

This will list all the installed boot managers and associated EFI paths, and grub should be somewhere in the list.