Fedora Linux Support Community & Resources Center
  #1  
Old 11th December 2011, 03:45 PM
jdc18 Offline
Registered User
 
Join Date: Apr 2009
Posts: 12
linuxfirefox
Installing grub2 on /dev/sdb after /dev/sda died

Hi,

I had 2 harddrives /dev/sda and /dev/sdb, in sda I had windows, and apparently that drive died.
So I removed /dev/sda, an booted with the fedora 16 DVD, chrooted to /mnt/sysimage, checked if everything in /etc/fstab was not pointing to /dev/sdb because my second harddrive should be now /dev/sda.
I checked /etc/default/grub and it seemed ok.
Then use grub2-mkconfig -o /boot/grub2/grub.cfg
Rebooted the computer but I just get a "-" flashing like grub is not recognized.
Reply With Quote
  #2  
Old 11th December 2011, 04:18 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,151
linuxredhatmozilla
Re: Installing grub2 on /dev/sdb after /dev/sda died

You have to install grub in the MBR of that disc. What you did was just update its configuration.
Return with the chroot, and do:
Code:
grub2-install /dev/sda
then reboot, it should be ok.
__________________
:confused:
Reply With Quote
  #3  
Old 11th December 2011, 04:19 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: Installing grub2 on /dev/sdb after /dev/sda died

after you boot with the Fedora DVD and do the chroot to /mnt/sysimage and running the grub2-mkconfig, did you run a grub2-install? That is what actually writes the bootloader code to the boot sector

Boot again with the DVD and go to the chroot again, then
Code:
grub2-install --force --no-floppy /dev/sda
Edit:
Looks like Skull One has faster fingers than I do.
Reply With Quote
  #4  
Old 11th December 2011, 05:31 PM
jdc18 Offline
Registered User
 
Join Date: Apr 2009
Posts: 12
linuxfirefox
Re: Installing grub2 on /dev/sdb after /dev/sda died

Thanks, I am not use to grub2 yet, I forgot about that part.
Reply With Quote
Reply

Tags
died, grub2, installing, or dev or sda, or dev or sdb

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
Grub2 glennzo Using Fedora 14 19th September 2012 12:39 AM
upgarade 15 to 16 was good before installing grub2 gnulinux Installation, Upgrades and Live Media 1 5th December 2011 10:31 PM
F16 and grub2 drnetsys F16 Development 1 7th October 2011 04:03 AM
[SOLVED] Help with GRUB2/MBR, Please sharp Using Fedora 0 26th July 2011 03:06 PM
[x86_64] Installing Grub2 on EFI Elv13 Mac Chat 1 24th March 2010 02:44 AM


Current GMT-time: 17:58 (Monday, 20-10-2014)

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
Trentola-Ducenta Photos on Instagram - Goyerkata Instagram Photos - Sitangkai Photos on Instagram