Last active
July 10, 2024 01:42
-
-
Save hasbai/eb3adb5b440e789056144d00fd5dfc18 to your computer and use it in GitHub Desktop.
debian 修复 grub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount /dev/sda3 /mnt | |
mount /dev/sda1 /mnt/boot/efi | |
mount --rbind /dev /mnt/dev | |
mount --rbind /sys /mnt/sys | |
mount --rbind /proc /mnt/proc | |
chroot /mnt | |
grub-install /dev/sda | |
update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment