I have a very broken Fedora 22 install.Everything was working absolutely fine until I decided to dual boot F22 and Linux Mint MATE. I had Fedora installed on an SSD, and I installed LM on a different hard drive. After a while, I decided Linux Mint was not right for me, so I deleted all the LM partitions (I know I deleted all of them correctly; they were in a separate drive), and then, to remove the LM entries from the boot menu (or so I thought), I ran grub2-mkconfig -o /boot/grub2/grub.cfg. I restart my system, and wonder of wonders, I get: error: no such device: XXXXXXXXX..., and a grub-rescue> prompt.Ideally, this question would have been helpful, but Fedora uses LVM.How can I get a normal grub boot screen back? Or, how can I get my Fedora installation back?Thanks!Note: I would gladly post command outputs, but I don't know enough about any of this to know what would be useful.
How to fix a very broken grub?
fedora;grub2
It seems likely that Linux Mint's GRUB is still installed to the MBR, while its /boot partition got deleted. Thus the grub-rescue prompt, which appears when GRUB can't load its stage2 from the filesystem. Things to try, in order:It's possible that the Mint GRUB was in the MBR of the Mint disk, and the old (Fedora) GRUB is still in the MBR of the Fedora disk. To check this, go to the BIOS boot menu and try booting from the SSD which Fedora is on (assuming the current default boot device is the Mint HDD). If this works, it should just drop you back into a standard GRUB, hopefully with the options to boot Fedora already selected.If this isn't the case, you should try to bootstrap from the grub-rescue into your Fedora install. Then you can run grub2-install to make the Fedora GRUB boot again. To do this, you need to tell grub-rescue where Fedora's /boot is (I'm assuming it's on a separate partition, since that's the Fedora default), then bootstrap into normal.Try ls from the grub-rescue> prompt; it'll give you a list of devices like (hd0,msdos1) and so on. You can list an individual device by saying ls (hd0,msdos1)/ (note the trailing slash); the one you want is the one with a grub2 subdirectory and a bunch of initramfs and vmlinuz files.Once you've found the right device (of the form (hd<n>,msdos<m>) or maybe (hd<n>,gpt<m>)), you run set prefix=(<device>)/grub2 and set root=(<device>). Then you can:insmod normalnormalinsmod linuxAt this point, you should be back at the standard grub> prompt. Here you need to boot the OS normally, which depends on your setup. But you can run cat (<device>)/grub2/grub.cfg, which will give you the commands Fedora runs normally, and hopefully duplicate those.The prior procedure is long, complicated and sensitively dependent on your exact setup. If it fails, you can boot from a LiveCD (Fedora preferably), then run grub2-install from there. The command line in the referenced answer is a good starting place.