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 273 times
0
-
Uhm... since when is Grub called "GNU GRUB"? Feeling I missed the memo... – MadMike Jan 12 '14 at 20:50
-
1@MadMike It always was. It shows GNU GRUB in the boot menu. http://www.gnu.org/software/grub/ – kiri Jan 12 '14 at 21:09
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
- 27,676
- 16
- 81
- 117