新随笔  :: 联系 :: 订阅 订阅  :: 管理

更新系统引导项

Posted on 2013-02-19 13:29  张贺  阅读(429)  评论(0编辑  收藏  举报

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