[LINUX] Fixed a way to force Windows to boot in UEFI

Introduction

Windows Boot Manager will be forcibly started on the manufacturer's PC that adopts UEFI. I will show you how to forcibly hide Windows Boot Manager from UEFI menu to fix it

environment

Linux

command

If efibootmgr is not included

# apt install efibootmgr
# yum install efibootmgr
# pacman -S efibootmgr
# efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0003,3003,0004,2001,2002,2004,0002
Boot0002* Notebook Hard Drive - WDC PC SN520 SDAPNUW-256G-1006
Boot0003* Windows Boot Manager
Boot0004* ubuntu
Boot2001* EFI USB Device
Boot3003* Internal Hard Disk or Solid State Disk

If this is left as it is, Windows will start.

# efibootmgr --inactive --bootnum 'Entry number'

Now, if Windows Boot Manager disappears from the UEFI Boot device or UEFI Boot manager, it's successful. This method is less risky because you don't have to mess with the efi partition.

How to return

# efibootmgr --active --bootnum 'Entry number'

I still want to start Windows! If

Using grub-customizer etc.

/EFI_ROOT/Microsoft/Boot/bootmgfw.efi

Let's chainload

chainloader /EFI/Microsoft/Boot/bootmgfw.efi

Let's add this to /boot/grub/grub.cfg Then you will be able to boot windows from grub

Verification

# ls -al /boot/efi/EFI

Quote

https://kledgeb.blogspot.com/2015/11/efibootmgr-3.html

At the end

Thank you for reading

Recommended Posts

Fixed a way to force Windows to boot in UEFI
A clever way to time processing in Python
Force luigi to do parallel processing in windows environment
A simple way to avoid multiple for loops in Python
Use MeCab to translate sloppy sentences in a "slow" way.
A standard way to develop and distribute packages in Python
Introducing a good way to manage DB connections in Python
Hit a command in Python (Windows)
The simplest way to build a Spleeter usage environment using Windows
What is the fastest way to create a reverse dictionary in python?
I want to print in a comprehension
[Python] [Windows] Take a screen capture in Python
How to get a stacktrace in python
Easy way to use Wikipedia in Python
[V11 ~] A memorandum to put in Misskey
A way to understand Python duck typing
What I was addicted to when creating a web application in a windows environment
I tried to implement what seems to be a Windows snipping tool in Python
Instructions for connecting Google Colab. To the local runtime in a Windows environment
Try to calculate a statistical problem in Python
How to clear tuples in a list (Python)
Open a ZIP created on Windows in Linux
How to embed a variable in a python string
Add Windows to the Linux OS boot menu
How to implement a gradient picker in Houdini
Steps to develop a web application in Python
Set a fixed IP in the Linux environment
To add a module to python put in Julialang
How to notify a Discord channel in Python
How to live a decent life on 2017 Windows
[Python] How to draw a histogram in Matplotlib
Tips for using ElasticSearch in a good way
How to create a Rest Api in Django
How to write a named tuple document in 2020
How to count numbers in a specific range
How to read a file in a different directory
A supplement to "Camera Calibration" in OpenCV-Python Tutorials
How to Mock a Public function in Pytest
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
A real way for people using python 3.8.0-2 from windows to work with multibyte characters
How to create a USB that Linux and Win10 installer and winpe can boot UEFI