1. 程式人生 > >How to Reins GRUB After the New Update of WINDOWS

How to Reins GRUB After the New Update of WINDOWS

smo 文件 自己 重建 orm date ans 輸入 div

la ji windows

OK 現在我的輸入法也裝好了,再說一遍,垃圾windows

這次大更新又把我的GRUB搞崩了

這次沒有像以前一樣用chroot重建grub馬上搞定,所以記一下網上找到的方案:

1.  先找到linux的根分區,我的在/dev/sda5, 如果語句正確,會顯示 /boot/grub 下的文件

grub rescue>ls (hd0,5)/boot/grub

2.  然後用以下命令臨時進入系統

grub rescue>set root=(hd0,5)
grub rescue>set prefix=(hd0,5)/boot/grub
grub rescue>insmod normal
grub rescue>normal

3.  最後用你自己系統的grub修復語句,這裏是arch的

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
# grub-mkconfig -o /boot/grub/grub.cfg

  轉載自https://www.jianshu.com/p/d4475ea2064e

How to Reins GRUB After the New Update of WINDOWS