编辑文件:/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

 



相关文章: