LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 11-05-2004, 03:45 PM   #1
r0wb0t
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Getting Grub to work


Hi,

I just installed Fedora 2 on a new hard drive, the 2nd in the computer. Everything went ok until reboot when Grub came up with Error 21: Hard disk error. I've been playing around with the rescue disk trying various combinations with the grub interpreter and grub-install but all I get is Error 21 or 22. My /boot partition is on (hd1,0) and I think I should be doing:

grub-install (hd0)

because hd0 is my BIOS boot drive right? Is there an obvious reason I'd be getting these errors? Any help is greatly appreciated.

Rowan
 
Old 11-05-2004, 09:42 PM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...hreadid=237511

1) terminals give better feedback so its
open a terminal
su and your root passwd
grub
root (hd1,0)
setup (hd0)

2) whats on drive 1? if its windows read the top about the FC2 bug

3) also consider any errors you get with (1) as grub likes to go from ide to scsi or ide to sata you may need to change the hd number if you don't want to change your /boot/grub/device.map file

4) the consensus solution for newbies for dual boot with faulty FC2 is now to use a independent partition tool like qtparted or fdisk or cfdisk on a cd like knoppix or sysresccd OR toms floppy.
 
Old 11-10-2004, 09:53 AM   #3
r0wb0t
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Hi, thanks for the reply. I worked out what was going wrong. My zip drive was being recognised as an extra hard disk. Now, Fedora (and the grub shell) were saying it was the 3rd hard disk so I was right in saying my boot partition was (hd1,0). But when I looked in the BIOS it had the zip drive as the 2nd bootable disk. So when grub was trying to access my boot partition it was actually looking at the zip drive. Swapping the order in the BIOS fixed the problem and now both Windows and Fedora boot fine.

The only problem is that whenever Fedora boots the order in the BIOS gets reset for some reason. So the next time I reboot grub stage 2 fail to load again and I have to manually do the BIOS thing all over again. This doesn't happen with Windows. Any idea why Fedora would change the BIOS settings?

Rowan
 
Old 11-10-2004, 09:59 AM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Try setting up grub on the right place the MBR, and try to use the settings from bios. No problem if hd1,0 is actually hd2,0 just make the correct settings.
 
Old 11-10-2004, 05:47 PM   #5
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled
I put that down to an incorrect /boot/grub/device.map file.

assuming your bios was reset to windows then linux then zip
post your /etc/fstab and your /boot/grub/device.map file

We did not discuss whether hd0 was primary controller 1 and hd1 was slave controller 1 .....or on controller 2 but thats how linux translate the hda hdc stuff.

You don't need to mount your windows at boot in your linux /etc/fstab so if its not there don't be concerned.
 
Old 11-12-2004, 06:35 AM   #6
r0wb0t
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Yes! You got it aus. I put the zip drive in as (hd1) in the devive.map and moved the 2nd hardisk up to (hd2) like it is in the BIOS. And now eveything's working!

Many thanks,
Rowan
 
  


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
Get GRUB to work Ephracis Linux - Software 3 04-17-2006 07:53 PM
Grub won't work bstopp Linux - Newbie 4 11-11-2004 09:46 AM
My Grub loader doesn't work....help hmingjun Linux - Newbie 2 08-09-2004 03:25 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 04:36 AM
Getting GRUB to work linuxnewbie001 Linux - Software 1 08-01-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 07:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration