Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have mistakenly deleted all the grub entries while customizing grub using "Grub Customizer". Now whenever Im trying to boot into Fedora Linux a black screen is coming up only with "grub>" prompt.

How can I fix this problem ? I have other two OSs installed side-by-side. Fedora is on "sda3"

share|improve this question
add comment

3 Answers

No need to change as sda3; use /dev/sda. Then use the command

grub2-mkconfig -o /boot/grub2/grub.cfg
share|improve this answer
add comment

This solution in this link will also solve your problem:-

http://www.abouthack.com/articles/linux/reinstall-grub-2-in-fedora-17.html

In your case it will be /dev/sda3 and not /dev/sda.

share|improve this answer
add comment

Luckily the Fedora Wiki covers this topic! Seems you can just reinstall GRUB very easily, just using a live CD.

  1. Boot the system from an installation boot medium. (live CD/USB)

  2. Type linux rescue at the installation boot prompt to enter the rescue environment.

  3. Type chroot /mnt/sysimage to mount the root partition.

  4. Type /sbin/grub-install bootpart to reinstall the GRUB boot loader, where bootpart is the boot partition (typically, /dev/sda). (in your case, sda3 perhaps)

  5. Review the /etc/grub.d/10_linux file, as additional entries may be needed in the /etc/grub.d/40_custom for GRUB to control additional operating systems.

  6. Reboot the system.

These instructions are straight from the Wiki.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.