Skip to content

Instantly share code, notes, and snippets.

@WillSams
Last active August 19, 2016 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillSams/19244399e5c11da3c50e9fcc01554fea to your computer and use it in GitHub Desktop.
Save WillSams/19244399e5c11da3c50e9fcc01554fea to your computer and use it in GitHub Desktop.
Fix GRUB2 on Debian
sudo mount /dev/sda1 /mnt
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo grub-install --root-directory=/mnt/ /dev/sda
sudo chroot /mnt
apt-get re-install 'linux-image-4.4*'
updateinitrams -u -k all
update-grub
exit
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment