平时总是弄得grub出错进不来系统,给我来个grub-rescue,我用livecd的Ubuntu进入系统后,重新安装grub到mbr,方法如下:
grub-install --boot-directory=/mnt/boot /dev/sda
其中的boot目录就是挂载的boot分区,如果没有boot分区,那就是根目录
下面是安装文档的原文:
3.1 Installing GRUB using grub-install
For information on where GRUB should be installed on PC BIOS platforms,see BIOS installation.
In order to install GRUB under a UNIX-like OS (suchas gnu), invoke the programgrub-install (see