LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   Getting Grub to work (https://www.linuxquestions.org/questions/fedora-installation-39/getting-grub-to-work-251583/)

r0wb0t 11-05-2004 03:45 PM

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

aus9 11-05-2004 09:42 PM

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.

r0wb0t 11-10-2004 09:53 AM

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

marghorp 11-10-2004 09:59 AM

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.

aus9 11-10-2004 05:47 PM

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.

r0wb0t 11-12-2004 06:35 AM

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


All times are GMT -5. The time now is 05:52 AM.