Created
June 29, 2021 20:46
-
-
Save dayjaby/581544254106c30b52c96f9d9d7e4cb6 to your computer and use it in GitHub Desktop.
Rescue my system after stupid windows update
This file contains 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
sudo fdisk -l /dev/sda | |
# /dev/sdaX -> EFI partition | |
# /dev/sdaY -> Ubuntu partition | |
sudo mount /dev/sdaY /mnt | |
sudo mount /dev/sdaX /mnt/boot/efi | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
sudo 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