# Fix GRUB Bootloader not showing up after Windows upgrade

If you are dual booting Windows with Linux, it is a common problem for many users that after upgrading Windows to a new version it will reset the bootloader to Windows Boot Manager which will cause Grub not to load anymore and therefore not possible to choose another OS to boot from.

### Here we have a fix for you!


1- In Windows, go to start menu:

![WinStartEdge.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601824559473/ouhnY3Hod.png)


2- Open Windows command line as administrator:

![WinCmd.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601824568259/omGossqId.png)

3- Enter this command:
 
- Ubuntu
```=powershell
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
```
 
- Other distributions:
```=powershell
bcdedit /set {bootmgr} path \EFI\"distro name"\grubx64.efi
```
Change "distro name" with the codename of your Linux distro, for exemple:
 
`Debian = debian`</br>
`Arch = arch`</br>
`Fedora = fedora` or use `bcdedit /set {bootmgr} path \EFI\fedora\shim.efi`

### Didn't work?

Reset the registry key to default by doing so:

```=powershell
bcdedit /deletevalue {bootmgr} path \EFI\ubuntu\grubx64.efi
```
Even if the above command for deleting value didn't work, set the key back to boot into Windows normally.
```=powershell
bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
```

