Add Windows to the Linux OS boot menu

Add Windows to the Linux OS boot menu

vi /ect/grub.d/40_custom
menuentry "Windows 7" {
    set root='(hd0,1)'
    chainloader +1
}
grub2-mkconfig -o /boot/grub2/grub.cfg

Set Windows as the default boot OS in the Linux OS boot menu

vi /etc/default/grub
GRUB_DEFAULT=1
grub2-mkconfig -o /boot/grub2/grub.cfg
sudo shutdow -r now

Recommended Posts

Add Windows to the Linux OS boot menu
[Windows] RDP to Windows via Linux
After all, the story of returning from Linux to Windows
If you want Linux to boot even if the disk mount fails, add the nofail option to fstab.
[linux] kill command to kill the process
How to check Linux OS version
[Windows] Transfer event logs to Linux
[Linux] How to use the echo command
How to use the Linux grep command
[linux] Split files to the specified size
In Jupyter, add IPerl to the kernel.
How to operate Linux from the console
How to install Windows Subsystem For Linux
Arch Linux install to BIOS boot system
The story of switching the Azure App Service web system from Windows to Linux
Just add the python array to the json data
MeCab: Add new words to user-defined dictionary (Windows)
How to operate Linux from the outside Procedure
Leading engineers stick to the Mac menu bar
How to add Anaconda Powershell Prompt to Windows Terminal?
Arch Linux install to RAID1 storage (BIOS boot)
[Wagtail] Add a login page to the Wagtail project
[Linux] Introduction to Linux
Investigate the add_metric method to add arbitrary metrics to pycaret
Add information to the bottom of the figure with Matplotlib
Just add the driver to the shape key with blender
Linux user addition, how to use the useradd command
How to create a local repository for Linux OS
Comparison of Windows Server and Free Linux to Commercial Linux
Fixed a way to force Windows to boot in UEFI
(Remember quickly) How to use the LINUX command line
Let's add it to the environment variable from the command ~