Created
October 27, 2019 09:26
-
-
Save torgeir/cbdd7a6a2cdd11a1460073763902fd85 to your computer and use it in GitHub Desktop.
Fix grub config gone bad ubuntu
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
# 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