如何在GRUB中恢复Windows XP菜单项?
我使用Lubuntu和双启动的WinXP几周。 今天我运行了更新,GRUB现在没有在GRUB中显示WinXP菜单项。
sudo update-grub没有找到Windows。
/boot/grub/menu.lst – 没有这样的文件。
对于Lubuntu 10.10,您需要安装os-prober
sudo apt-get install os-prober
然后再次更新grub
sudo update-grub
该网站应该为您提供所需的一切。
顺便说一句,如果您使用的是Ubuntu 10.04或10.10,您将看不到/boot/grub/menu.lst,因为这不再是grub使用的内容。
尝试添加
menuentry“Windows XP”{set root =’(hdX,X)’chainloader +1}
在boot / grub / grub.cfg到section
BEGIN /etc/grub.d/40_custom
END /etc/grub.d/40_custom
(hdX,X) – 用Windows XP驱动
样品:
`### BEGIN /etc/grub.d/40_custom###
menuentry“Windows XP”{
set root =’(hdX,X)’
chainloader +1
}
END /etc/grub.d/40_custom###`
也许帮助你:)找13个post
UPD1: grub2的完整插图指南
UPD2:
UPD3:grub.cfg的一些配置