Skip to content

Instantly share code, notes, and snippets.

@torgeir
Created October 27, 2019 09:26
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 torgeir/cbdd7a6a2cdd11a1460073763902fd85 to your computer and use it in GitHub Desktop.
Save torgeir/cbdd7a6a2cdd11a1460073763902fd85 to your computer and use it in GitHub Desktop.
Fix grub config gone bad ubuntu
# make the bios boot from a live usb stick
# mount the filesystem and change to it
sudo mkdir /mnt/root
sudo mount /dev/sd2 /mnt/root
sudo mount -t proc none /mnt/root/proc
sudo mount -o bind /dev /mnt/root/dev
sudo chroot /mnt/root /bin/bash
# fix the issues
sudo vim /etc/default/grub
sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment