LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2007, 04:08 AM   #1
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Rep: Reputation: 16
Recover grub after winXP installation in Fedora Core 5


HI !

I am using Fedora Core 5 and recently i had to reinstall Winxp on my system.

I tried to recover the grub using following method.

1. Boot off the FC5 first CD.
2. At the boot prompt, type 'linux resucue' & enter.
3. continue with the default options through the prompts.
4. when bash prompt appeard, type 'chroot /mnt/sysimage'.
5. After, type '/sbin/grub-install /dev/hda'.

When the 5th statement excecuted it returnes that there is no devices in /dev.

when I type ls in that directory it returns null.

but there are devices in before chroot.

Any suggestions.

Thanx in advance.

Buddhike G.
 
Old 08-27-2007, 05:45 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
At step 1, does Fedora first cd offer you the option of 'boot from hard drive' or something similar?

If so, choose that option. Once booted, skip down to step 5 to re-install grub first stage to the MBR.

Last edited by bigrigdriver; 08-27-2007 at 05:46 AM.
 
Old 08-28-2007, 10:47 PM   #3
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Original Poster
Rep: Reputation: 16
Hi !

I went through all the links which appears in the interface when booted using the first CD. But I was unable to find a link related to 'boot from hard drive' or something similer.

Buddhike G
 
Old 08-29-2007, 02:26 AM   #4
socceroos
Member
 
Registered: Aug 2005
Location: Australia
Distribution: Ubuntu, FreeBSD, Fedora
Posts: 125

Rep: Reputation: 16
Hello,

The problem you're having is that when you chroot, you are loosing access to the /dev/hda device. Sounds pretty obvious, I know.

I've run across this problem before in Ubuntu. The way I fixed it was to follow similar steps to yours, EXCEPT I skipped doing the 'chroot' command. I just went straight to the command that reinstalls grub to the mbr of your device (hda).

Just before you do the grub-install command, make sure that 'hda' is infact the right hard drive to be installing grub to. The easiest way would be to do one of the following:

Option 1: # ls /dev (then check to see if 'hda' exists)
Option 2: # df (this should show which hard drives are mounted and the device that they are called. this will only work if the fedora cd has automatically mounted the hard drive.)

Anyway, tell me how you go. If you need better explanations then post here again!

Regards,

Socceroos
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New fedora core 6 installation, messed up grub abstracted Fedora - Installation 5 05-10-2007 07:23 AM
fedora core 5 and windows xp (two SATA drives), grub won't boot winXP lankydenny Linux - Newbie 20 06-13-2006 12:48 AM
fedora core 5 and windows xp (two SATA drives) , grub won't boot winXP lankydenny General 4 06-11-2006 02:14 PM
Fedora Core 2 installation first boot problem with GRUB King-BoB Fedora - Installation 8 06-20-2005 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration