Skip to content

Instantly share code, notes, and snippets.

@alperyilmaz
Last active April 9, 2021 02:14
Show Gist options
  • Save alperyilmaz/3bef09c3cf70003556f91a22447ec3d6 to your computer and use it in GitHub Desktop.
Save alperyilmaz/3bef09c3cf70003556f91a22447ec3d6 to your computer and use it in GitHub Desktop.
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
@alperyilmaz
Copy link
Author

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