编辑文件:/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 "Windows 7 " {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
chainloader +1
}

更新引导

sudo update-grub

查看是否更新成功

vi /boot/grub/grub.cfg

 



相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2021-12-05
  • 2021-11-08
  • 2021-11-19
  • 2021-07-09
  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2021-05-30
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-12-19
  • 2022-01-30
相关资源
相似解决方案