装完双系统的时候, grub里面有Windows和Ubuntu, 但是重启之后(忘了重启了几次)只剩下了Ubuntu. 于是我就从Grub里修复了Windows的引导.
修复方式
先放上修复方式:
在/etc/grub.d/40_custom里加入非#部分的代码
### BEGIN /etc/grub.d/40_custom ###
# 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.
if [ "${grub_platform}" == "efi" ]; then
menuentr