• 方法一:直接安装grub
1)先把MBR拷贝一份
dd if=/dev/sda of=/tmp/mbr count=1 bs=512
 
2)然后再破坏
dd if=/dev/zero of=/dev/sda count=1 bs=100
sync
 
3)重新安装grub程序
grub-install --root-directory=/ /dev/sda

方法二:进入救援模式,安装grub

1)导入一张光盘
2)进入rescue模式
3)登入shell程序
4)切换自己的根
chroot /mnt/sysimage
5)安装grub程序,退出到救援模式
grub-install --root-directory=/ /dev/sda
exit
6)reboot

相关文章:

  • 2022-02-24
  • 2021-12-08
  • 2022-02-11
  • 2022-01-13
  • 2021-12-02
  • 2021-08-11
  • 2021-08-15
  • 2021-05-18
猜你喜欢
  • 2021-11-28
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2022-02-25
  • 2021-04-05
相关资源
相似解决方案