Last active
April 9, 2021 02:14
-
-
Save alperyilmaz/3bef09c3cf70003556f91a22447ec3d6 to your computer and use it in GitHub Desktop.
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 mount /dev/sda3 /mnt | |
sudo mount /dev/sda1 /mnt/boot/efi | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
sudo cp /etc/resolv.conf /mnt/etc/ | |
sudo chroot /mnt | |
apt install --reinstall linux-generic linux-headers-generic | |
update-initramfs -c -k all | |
exit | |
sudo bootctl --path=/mnt/boot/efi install |
Restart the PC, then press F12 (Fn+F12) to boot from USB disk.
in case of mount complain about "can't read superblock"
sudo fsck -p /dev/sda3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
taken from https://support.system76.com/articles/bootloader/