1. Grub2 Boot window.
---------------------Step 1---------------------------------
Vim/etc/grub.d/40_custom
----------------------Step 2-----------------------------------
Press I to enter edit mode and add the following:
Menuentry "Window8.1" { Insmod NTFS Set root= (HD0,MSDOS1) Chainloader +1 } |
Press ESC to exit edit mode, enter: Wq Save to exit vim
---------------------Step 3--------------------------------------
Vim/etc/default/grub
Modify grub_default=2 =>2 as the default startup as the 3rd startup item
---------------------Step 4--------------------------------------
Update Grub.cfg
Grub2-mkconfig–o/boot/grub2/grub.cfg
--------------------Step 5--------------------------------------
Last reboot
Reboot
2.Window Boot Linux
If you want to boot with window without the window option, you can use the following method to enter window first
--------------------Step 1--------------------------------------
Start the computer, press C to enter grub when the boot option appears
--------------------Step 2--------------------------------------
Use the Ls–l command to see where the window is installed. The general situation is: MSDOS1
--------------------Step 3--------------------------------------
Set root= (HD0,MSDOS1) Chainloader +1 Boot |
--------------------Step 4--------------------------------------
After entering window, open EASYBCD 2.2 software
- Add a new entry →linux/bsd→ type select GRUB2 and click Add Entry
- BCD deployment →MBR configuration options → re-create/restore boot file, point to execute action
- Win+r input msconfig, select Boot tab, modify timeout: 10, also on when Startup tab countdown 10 seconds
- Restarting the machine
02_ windows and Linux dual boot