Ask Your Question

Need Help with Grub Recovery

asked 2017-12-18 04:15:11 -0500

Hello. First, I'll say that I'm a complete beginner and have just downloaded Fedora 26 yesterday. I installed it on my computer (not the one I'm writing on now), but made the mistake of pulling the flash drive out before rebooting after the installation. I was met with an error screen, and when I turned the computer off and back on, this is what I see:

Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.


From a bit of research, I was able to figure out that this is a fairly common grub problem and that it has a solution, but I couldn't quite understand what text I need to type since it seems like each situation is unique. I also learned that the response to the ls command has something to do with what I'm supposed to type. Here's the response I get to the ls command:

grub> ls
(hd0) (hd0,gpt7) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)

Please help me figure out what to do next

edit retag flag offensive close merge delete


Welcome to ask.fedora. What you're seeing is a list of your hard disks (only one, here) and the various partitions on it. If you know which one contains /boot, you can mount it and use it to boot, although I don't remember the commands. Try booting from a LiveUSB, looking at the partitions and find out just where /boot is. Once you have that, it may be possible to recover. Good luck, and keep us informed.

sideburns gravatar imagesideburns ( 2017-12-18 14:10:39 -0500 )edit

I've found some instructions for getting your system booted (maybe). They're at an Ubuntu site, but work for any modern version of Linux.

sideburns gravatar imagesideburns ( 2017-12-18 14:44:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-18 12:46:47 -0500

cmurf gravatar image

The simplest option is to just reinstall, and if you use automatic partitioning, you'll be given an option to delete partitions used exclusively by Fedora (in a default installation it will be two partitions, a 1G boot, and the rest of whatever free space you had at the time of installation is used for LVM which contains root, swap, and home). An alternative is to download a netinstall image from getfedora, create install media, boot it, and at the boot menu choose Troubleshooting, then choose Rescue a Fedora system, then wait for the system to boot and at the next screen choose option 1. And then:

chroot /mnt/sysimage
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-12-18 04:15:11 -0500

Seen: 154 times

Last updated: Dec 18 '17