grub引導Windows啓動

PC機上裝多個系統時,安裝完Linux後,引導管理程序grub中丟失Windows的啓動項,採用如下方法找回。

root權限打開 /boot/grub/grub.cfg文件,例如運行命令 # nano /boot/grub/grub.cfg

加入如下內容:


##

menuentry 'Windows'{
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
chainloader +1
}
##


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章