解決:ArchLinux+Win10雙系統,Grub設置
原裝的Win10,裝完ArchLinux后,要進入Win10一段時間只能通過boot選擇。
Grub的菜單里並沒有。Grub安裝過程是參考wiki來安裝的。
今天仔細嘗試了下,終於解決。
編輯/etc/grub.d/40_custom
# nano /etc/grub.d/40_custom
修改成如下內容
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "System shutdown" { echo "System shutting down..." halt } menuentry "System restart" { echo "System rebooting..." reboot }
執行命令
# grub-mkconfig -o /boot/grub/grub.cfg
tips: 剛開始的時候,也是修改成wiki 多系統啟動中的內容,帶"Microsoft Windows 8.1"和“Microsoft Control Center”,后來發現執行完上述命令后,Grub菜單中自動多出來個“Windows Boot Manager”,而且可以進入Win10,於是把這兩項去掉重新嘗試了下,也可以成功。