Ask Your Question

Fedora Boots to grub terminal

asked 2017-10-28 00:10:39 -0500

kanraj789 gravatar image

I have Windows and Fedora as my dual boot OS. Fedora is installed as UEFI system with entire fedora drives encrypted with LUKS. I am using Fedora 26. Something happened and now when I try to boot Fedora, it enters grub terminal. I read some instructions on the web on how to get past this screen( and now Fedora is stuck on "Entering emergency mode. Exit the shell to continue. Enter journalctl for system logs". What do I do now? Also please tell me am I entering the right commands in grub terminal to boot to fedora? I don't know the which digit should replace "root=/dev/sdaX" command on the above webpage and I've tried likely possible digits. Please help because I can't lose my data. When I view journalctl, it says "Failed to mount /sysroot" for some /dev/sdaX and "Failed to SwitchRoot" for some /dev/sdaX. In either case, I can't boot to Fedora desktop. Your kind help is appreciated.

edit retag flag offensive close merge delete


Before proceeding with this any further, since you've mentioned you have LUKS encrypted drive, I would recommend booting up live Fedora image and rescuing the data first by manually copying it to some external drive. After that you can experiment with grub reinstall or eventually booting into an older kernel if you do get the grub prompt but fails afterward.

masteroman gravatar imagemasteroman ( 2017-10-28 07:42:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-31 19:45:03 -0500

ssieb gravatar image

You can't just provide a root=/dev/sdaX option because you have an encrypted filesystem. The dracut boot system has to unlock it first before the kernel can mount it. It sounds like your grub.cfg file has been wiped out somehow. I would suggest testing with a live image to make sure your data is still ok and check the grub.cfg under /boot/efi/EFI/fedora. I don't know if the live image will mount it automatically, you might need to do it manually. Then you could try using the netinstall image to boot rescue mode, chroot to the system and run grub2-install -o /boot/efi/EFI/fedora/grub.cfg. i hope that the netinstall will be able to figure out the encrypted filesystems.

edit flag offensive delete link more


That's a lot of work for a complete NOOB! I've backed up my files using the live usb and all my files are OK. I'll just reinstall the whole system from scratch.

kanraj789 gravatar imagekanraj789 ( 2017-11-11 21:42:56 -0500 )edit

That's great! After you reinstall, make a backup of the /boot/efi/EFI/fedora/grub.cfg file and update that backup each time you upgrade the kernel.

ssieb gravatar imagessieb ( 2017-11-14 13:47:02 -0500 )edit

Question Tools

1 follower


Asked: 2017-10-28 00:10:39 -0500

Seen: 1,292 times

Last updated: Oct 31 '17