LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-01-2005, 12:48 PM   #1
madrat
LQ Newbie
 
Registered: Oct 2003
Location: Birmingham
Distribution: Redhat 9
Posts: 17

Rep: Reputation: 0
How can I fix the bootloader?


Hi All

I have a dual boot machine XP/RH Fedora with grub (recent install) as the boot loader. Grub crashes on system restart and I suspect there is a problem with the MBR...

The first time I installed RHF I tried to have Grub installed on the first partition... that didnt work so the second time I installed RHF I chose the MBR. That hasnt worked either...

I have used the boot floppy to get into Linux and have typed: "grub-install /dev/hda"

yeilding an error message: "The file /boot/grub/stage1 not read correctly"

What can I do to get the bootloader to work?

C


============================
= If you define things you limit them =
============================
 
Old 06-01-2005, 02:03 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
What version of grub do you have?
 
Old 06-01-2005, 02:21 PM   #3
madrat
LQ Newbie
 
Registered: Oct 2003
Location: Birmingham
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
GNU GRUB 0.93


I have used the XP CD to get FixMbr to rewrite the MBR... this gives me a menu of options on startup... XP and Grub... grub still crashes but I can get back into XP.

I restarted using the RHF boot disk and this gets me into linux fine... now I would like to fix the boot loader. grub-install is still giving the stage 1 error message... the grub version is GNU GRUB 0.93
 
Old 06-01-2005, 02:31 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I'm up to version grub (GNU GRUB 0.95) so maybe you would benifit from a yum update or similar.
 
Old 06-01-2005, 02:44 PM   #5
madrat
LQ Newbie
 
Registered: Oct 2003
Location: Birmingham
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
This may sound idiotic but could you point me in the direction of a step by step guide to yum updates.

cheers...
 
Old 06-01-2005, 03:43 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I'm guessing that you have Fedora 3 which is slightly different than for Redhat versions.

Fedora 3 comes with yum so all you need to do is get a nice list of places to get the downloads and put that info in your /etc/yum.repos.d
Then you import a GPG key to use with that repo .

For example:
Here are three repo files and the commands to import the GPG keys ...
Code:
rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
rpm --import http://download.fedora.redhat.com/pu...-Fedora-Extras
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
fedora.repo
Code:
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
fedora extras.repo
Code:
[extras]
name=Fedora Extras - $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgcheck=1
livan repo
Code:
[livna-stable]
name=Fedora Extras
baseurl=http://rpm.livna.org/fedora/3/i386/RPMS.stable
enabled=1
gpgcheck=1

[livna-unstable]
name=Fedora Extras
baseurl=http://rpm.livna.org/fedora/3/i386/RPMS.unstable
enabled=1
gpgcheck=1
Then you can run the command: yum update or yum install some-software-name
The yum update will take awhile the first time around and hopefully, you have a fast connection.

Last edited by homey; 06-01-2005 at 03:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Bootloader problem. I know how it was caused, but I dont know how to fix it! Eerath Linux - General 1 07-24-2005 10:30 AM
IPAQ 3970 - damaged bootloader - how to fix it ? ds2k4 Linux - Laptop and Netbook 4 12-29-2004 10:29 AM
Can I Use knoppix to fix Mandrake bootloader? esj Linux - Newbie 25 01-16-2004 07:01 PM
Fix the Bootloader or Reinstall the System? Sadie Newlinux Mandriva 6 08-26-2003 10:44 PM

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

All times are GMT -5. The time now is 07:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration