English
Ask Your Question
1

Reinstall Grub2 26/Gnome

asked 2017-07-15 18:44:15 +0000

x27qb8 gravatar image

I have a Windows 7 / Fedora 26 Dual Boot system.

I recently had to repair Windows Startup & Performed an Inplace Upgrade, because the upgrades were failing. Now grub2 has been overwritten. I laumched a Live version of Gparted and verified that my Fedora partition is still there and I assume unharmed. I suspect I'm going to have to reinstall grub from a Live distro; but I've never done this before.

Can someone explained the proceedure and where to get the correct files?

Thanks

edit retag flag offensive close merge delete

Comments

I read that there is a RESCUE BOOT OPTION available on the LIVE DVD. Is this is true, would it apply to my situation; and is this the best and safest place to start? Also, should I launch GPARTED LIVE and look for the boot flag? Would this tell me anything about GRUB in a Win / Fed dual boot system? Also, should I drill down and look at FSTAB?

Let's suppose I bootup and am staring at GRUB RESCUE> or something similar, what info do I need to have before I can proceed?

x27qb8 ( 2017-07-18 05:03:11 +0000 )edit

That is a lot of what ifs. Surely if you run Arch you are familiar with reading the documentation. First step - take a deep breath. Second step decide with distro you want to use to boot your system (each system has files in /boot used by grub to boot). If you use Fedora follow the instructions you have been given and post back if you have a problem. If you still have questions about grub on fedora see https://fedoraproject.org/wiki/GRUB_2 . The fedora DVD is a large download for this sort of fix and as such I have no personal experience with the rescue boot option. No better or worse.

bodhi.zazen ( 2017-07-19 03:49:44 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-18 13:02:39 +0000

cmurf gravatar image

The easiest way to fix this is download a Fedoa 26 netinstall, and from the Troubleshooting menu, choose Rescue a Fedora system. This will help assemble your Fedora installation at /mnt/sysimage. Then:

chroot /mnt/sysimage
grub2-install
grub2-mkconfig -o /boot/grub2/grub.cfg

More details here. The above is for BIOS systems, which I'm assuming since it's Windows 7. But if the firmware is UEFI you need to use different commands.

https://docs.fedoraproject.org/en-US/...

https://docs.fedoraproject.org/en-US/...AdministratorsGuide/sec-ReinstallingGRUB2.html

edit flag offensive delete link more

Comments

Thank you sir,

Solid rescue. Simple and to the point. This was all I was looking for.

I did however get a little nervous during the first boot, when I received the following message:

*Warning --SELinux targeted policy relabel is required.

This quickly passed; and I was up and running in no time.

x27qb8 ( 2017-07-19 12:14:05 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-07-15 18:44:15 +0000

Seen: 265 times

Last updated: Jul 18