Fedora Linux Support Community & Resources Center
  #1  
Old 5th September 2014, 01:13 AM
babak.nourani Offline
Registered User
 
Join Date: Aug 2008
Location: Sydney, Australia
Age: 34
Posts: 32
linuxfirefox
Re-installing the boot loader of Fedora 20 - 64 bit

Hi


I have a dual boot system with Fedora 20 - 64 bit and Windows Server.

Everything was working well until I re-installed the Windows.
Now When I restart my computer it doesn't let me to choose Fedora. The Grub page doesn't come up to let me to do so. It goes straight to Windows.

I know that need to re-install the boot loader. I have a 500 mega byte /boot partition and I have root and /home partitions separated.

Would you please tell me what are the steps to re-install the grub? I can reboot my system with the live usb and see all of my installed files on the hard drive.

I couldn't find any man page for grub-install btw



Thank you

Bobby

Last edited by babak.nourani; 5th September 2014 at 02:11 AM.
Reply With Quote
  #2  
Old 5th September 2014, 01:51 AM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,562
windows_7chrome
Re: Re-installing the boot loader of Fedora 20 - 64 bit

Assuming both Windows and Fedora are installed on the same hdd (sda), boot into live CD, change to root user,
Code:
su
press ENTER alone when prompted for the password
grub2-install /dev/sda
On your next boot, you should get the grub2 menu. If for some reason Windows is not in the menu, then run, as root,
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
The above assumes your are using bios MBR install and not UEFI.
Reply With Quote
  #3  
Old 6th September 2014, 04:23 AM
babak.nourani Offline
Registered User
 
Join Date: Aug 2008
Location: Sydney, Australia
Age: 34
Posts: 32
linuxfirefox
Re: Re-installing the boot loader of Fedora 20 - 64 bit

Quote:
Originally Posted by PabloTwo View Post
Assuming both Windows and Fedora are installed on the same hdd (sda), boot into live CD, change to root user,
Code:
su
press ENTER alone when prompted for the password
grub2-install /dev/sda
On your next boot, you should get the grub2 menu. If for some reason Windows is not in the menu, then run, as root,
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
The above assumes your are using bios MBR install and not UEFI.

Thank you Pablo

I checked with gparted when I booted my system with the live usb, the name of my /boot partition is sda3 .

so should I put
Quote:
grub2-install /dev/sda3
instead of
Quote:
grub2-install /dev/sda
??



Best regards

Bobby
Reply With Quote
  #4  
Old 6th September 2014, 09:14 AM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,585
linuxfirefox
Re: Re-installing the boot loader of Fedora 20 - 64 bit

No, install it as Pablo stated, grub2-install /dev/sda (install bootloader to the MBR). If you run grub2-install /dev/sda3 it will install grub to the root of the OS partition.
__________________
Glenn
The Bassinator
© ®
Reply With Quote
  #5  
Old 7th September 2014, 03:04 AM
babak.nourani Offline
Registered User
 
Join Date: Aug 2008
Location: Sydney, Australia
Age: 34
Posts: 32
linuxfirefox
Re: Re-installing the boot loader of Fedora 20 - 64 bit

It returns
Quote:
Path ‘/boot/grub2’ is not readable by GRUB on boot. Installation is impossible. Aborting.
when I try
Quote:
grub2-install /dev/sda
Reply With Quote
  #6  
Old 7th September 2014, 04:32 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,421
linuxfirefox
Re: Re-installing the boot loader of Fedora 20 - 64 bit

You can try to give grub2-install more information by using one or more of its parameters.

For example, the "--boot-directory=" parameter tells it explicitly where your Fedora /boot directory is
located. If you have mounted Fedora's /boot under /mnt then the command would be:

Code:
grub2-install --boot-directory=/mnt/boot /dev/sda
The exact command depends on your Fedora setup - separate /boot partition? - and where you have mounted it.
*****
The Arch Wiki recommends invoking grub2-install this way for mbr setups:
Code:
# grub2-install --target=i386-pc --recheck --debug /dev/sda
https://wiki.archlinux.org/index.php...nstall_to_disk

Last edited by sonoran; 7th September 2014 at 04:38 AM.
Reply With Quote
  #7  
Old 7th September 2014, 05:26 AM
babak.nourani Offline
Registered User
 
Join Date: Aug 2008
Location: Sydney, Australia
Age: 34
Posts: 32
linuxfirefox
Thumbs up Re: Re-installing the boot loader of Fedora 20 - 64 bit

I tried
Quote:
grub2-install --boot-directory=/run/media/liveuser/Boot_Partition dev/sda
and it worked!

Beautiful.

Thank you all for your kind guides.

My issue perfectly solved.
Reply With Quote
Reply

Tags
bit , boot , fedora , grub , loader , reinstallation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installation error right after setting boot loader Cosmin3 Installation, Upgrades and Live Media 9 18th December 2012 01:02 PM
Dell N5010 - Fedora 13 64 bit installation issues on dual boot vijayjames Using Fedora 12 19th April 2011 08:06 PM
Manual kernel installation + boot loader Night Runner Using Fedora 22 13th July 2009 10:26 PM
Fedora 10 - Boot loader installation option missing auralish Installation, Upgrades and Live Media 0 27th November 2008 03:41 AM
Boot loader does not show up after installation squishface Installation, Upgrades and Live Media 2 4th March 2007 01:21 AM


Current GMT-time: 03:30 (Thursday, 19-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat