Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th December 2006, 08:51 PM
Gualicho Offline
Registered User
 
Join Date: Jun 2006
Location: Argentina
Posts: 49
Question Windows removed my Grub!!

Hi! Here's my problem: I had Fedora 5 and Windows XP installed, whit grub as my boot manager... everything was working fine, but then I re-installed Windows XP, and of course my grub dissapeared form the MBR. Now I want to re-install grub, so I boot from the fedora cd and run linux rescue . I followed this steps:

linux rescue
After mounting the system image
chroot /mnt/sysimage
grub-install /dev/hda

But in /dev thre's no hda, theres a VolGroup00... so grub-install didn't work. Something about hda not found or not a block device.

I also tried instead of grub-install this:
grub
root (hda,0) and a few more numbers, i don't know where my /boot partition is, because fdisk -l doesn't find any partitions in /proc.
The last line threw me an Error 23: problem when pharsing number i think.

I would really like to fix this and not to re-install fedora all over again, any ideas? Thanks a lot, i hope i was clear enough.
Reply With Quote
  #2  
Old 27th December 2006, 08:56 PM
Jongi Offline
Registered User
 
Join Date: Oct 2005
Posts: 1,952
Can you post the output of:

# fdisk -l
# cat /boot/grub/device.map
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
Reply With Quote
  #3  
Old 27th December 2006, 08:57 PM
techmatt's Avatar
techmatt Offline
Registered User
 
Join Date: Nov 2005
Location: In My Head (I Think)
Posts: 932
if you a using SATA you CDRom my show has hda and the hard drive show as sda
therefore the command would be grub-install sda

if you are not using SATA then I hope some one more quilified can help you.
__________________
If you know how to do something in Fedora or how to do it better, please help us at Fedora Wiki.

Registered Linux user number 433760
Reply With Quote
  #4  
Old 27th December 2006, 09:27 PM
Gualicho Offline
Registered User
 
Join Date: Jun 2006
Location: Argentina
Posts: 49
Ok, I'm not using SATA so thanks anyway, and this is the output of fdisk -l after doing chroot /mnt/sysimage:

Cannot open /proc/partitions

And here's the output of /boot/grub/device.map :

(hd0) /dev/hda

thanks!
Reply With Quote
  #5  
Old 27th December 2006, 09:45 PM
Gualicho Offline
Registered User
 
Join Date: Jun 2006
Location: Argentina
Posts: 49
I fixed It! After some struggle, i could fix it... i realized that the command chroot /mnt/sysimage was bugging me. That command is not needed...so after entering linux rescue, i ran fdisk -l and found out that my /boot partition was located in HDA3 (that's hd0,2 for grub) so all i had to do was:

root (hd0,2)
setup

and done! All working just fine as before and of course with my old grub.conf. Thanks a lot!
Reply With Quote
Reply

Tags
grub, removed, windows

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
grub problem: sda fedora, sbd windows --> can't boot windows hdc Using Fedora 7 24th January 2009 10:28 PM
GRUB hang up on booting Windows (Installed for dual boot, now I cant launch Windows) ajray Using Fedora 0 15th May 2008 02:13 PM
Windows re-install removed Grub shain Using Fedora 1 5th September 2005 05:36 AM


Current GMT-time: 10:45 (Wednesday, 22-05-2013)

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