I accidentally changed my GRUB options to boot from memtest instead of the correct linux kernel. Holding shift, esc, arrow keys, and every other combination will not bring up the GNU GRUB as desired. Is there any other option besides reinstalling and starting over with a new linux version?
Asked
Active
Viewed 288 times
1 Answers
0
- You need to boot from a LiveCD/USB.
- Locate your original root partition using GParted. take note of it's name (e.g.:
/dev/sda1). Run these commands, replace
$PARTITIONwith your partition (noted above)sudo mkdir /mnt sudo mount "$PARTITION" /mnt sudo -H gedit /mnt/etc/default/grubA text editor will open the GRUB configuration file. Correct any problems, e.g.:
GRUB_DEFAULT, then save and close the window.Run these commands in a terminal:
for i in sys proc run dev; do sudo mount --bind "/$i" "/mnt/$i"; done sudo chroot /mnt update-grub exitAt this point your GRUB should be fixed.
kiri
- 28,986