Perhaps someone on here can save me from a nervous breakdown. The more I try and research Grub and it's internals, the more of a black art it seems to be. No definitive answers on anything, anywhere.
I was trying to create a UEFI bootable USB key and during this progress, got a bit careless on the command line and typed grub2-install and accidenttally hit enter without any parameters. Of course grub2install did it's thing and I got a mesaage telling me that it was successfully installed for target x86_64-efi. I thought nothing of it. All I have done, I thought, was simply reinstall grub with it's current settings. How wrong could I possibly be. Now on boot, I just get a plain dumb grub> prompt. I can load in the config file with
Code: Select all
configfile (hd0,gpt1)/EFI/redhat/grub.cfg
and boot the system. No matter what I do with the parameters in grub2-install I have the same result. This is a UEFI 64 bit system. I am a bit confused with the file layout in the ESP partition. It seems to create a "redhat" directory, along with loads of firmware boot files and my grub.cfg, but also a "scientific" dir with a couple of random fw files, although this seems to be normal according to the fresh install I have done on a VM trying to work this out. I have no doubt this mess can be fixed with a simple command line, but I just don't have a clue any more. Like I say, it seems to be a complete black art. I can't be the only idiot in the world to have made this fateful (or shouldn't have been fateful) mistake. Please help!