sh 如何修复Windows更新后的grub故障又称grub救援问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 如何修复Windows更新后的grub故障又称grub救援问题相关的知识,希望对你有一定的参考价值。

# boot from live cd with compatibility mode
# open terminal
sudo fdisk -l
# get the linux partition => /dev/nvme0n1p4
# count the partitions, better make a screenshot of it
mkdir mnt
sudo mount /dev/nvme0n1p4 mnt
ls mnt/boot
# does grub exists? Good, we need that information
# ----------------
# restart pc and enter grub rescue mode
ls 
# are there as many partitions as you saw running the fdisk -l ? Good -> it is the 4th partition
set prefix=(hd0,gpt4)/boot/grub
set root=(hd0,gpt4)
insmod linux
insmod normal
normal
# grub bootloader should appear - boot linux
# ----------------
# update grub 
sudo update-grub
# restart, does the grub rescue mode appear? repeat the last section and re-install grub
# ----------------
sudo grub-install /dev/nvme0n1p4



以上是关于sh 如何修复Windows更新后的grub故障又称grub救援问题的主要内容,如果未能解决你的问题,请参考以下文章

CentOS 6 系统无法开机故障修复

修复GRUB引导故障

Win10更新故障修复之路!

Linux中如何修复GRUB引导故障

安装Windows与Linux双系统后MBR及GRUB2修复

linux命令:grub 文件详解及grub修复,系统常见故障修复