getting error "GRUB Hard Disk Error"

Issues related to hardware problems

getting error "GRUB Hard Disk Error"

Postby kollolbiswas » 2012/03/27 08:15:16

Hi,

I have installed Centos 5.2 on my local server where the partitions has been created on two hdd (sda and hde). There is another hdd (sdb) which contains few data. The third hdd was connected after installation and it was there connected till now. now on #fdisk -l I get the following.

Code: Select all
Disk /dev/hde: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1          25      200781   83  Linux
/dev/hde2              26        1330    10482412+  83  Linux
/dev/hde3            1331        1852     4192965   82  Linux swap / Solaris
/dev/hde4            1853        4870    24242085    5  Extended
/dev/hde5            1853        4870    24242053+  83  Linux

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      121601   976760001   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         522     4192933+  82  Linux swap / Solaris
/dev/sdb2             523      121601   972567067+  83  Linux
[Moderator edit: Added code tags to preserve formatting.]

Now I need the third hdd but if i remove that I get "GRUB hard Disk Error" whereas no system file is associated with sdb and it is not mounted at all.

Please suggest how I can get that third hdd without hampering my running system.

Regards,
Kollol
kollolbiswas
 
Posts: 12
Joined: 2011/09/26 14:01:54

getting error "GRUB Hard Disk Error"

Postby gerald_clark » 2012/03/27 13:24:39

Try changing the HD drive order in the BIOS.
gerald_clark
 
Posts: 7166
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: getting error "GRUB Hard Disk Error"

Postby r_hartman » 2012/03/27 21:33:39

You may want to consider installing the current version (5.8) instead of ancient 5.2, which contains lots of bugs and security flaws that have been fixed since. By running ancient stuff you accept being vulnerable.
r_hartman
 
Posts: 701
Joined: 2009/03/23 15:08:11
Location: Netherlands

Re: getting error "GRUB Hard Disk Error"

Postby pschaff » 2012/03/27 22:06:48

You should be able to follow How to re-install bootstrap code (GRUB) to make it work, but it is not clear why the problem is happening if the 3rd disk was not there during the original install. See also Grub Installation for CentOS 5 and 6.

I endorse René's suggestion, but when updating from such an old release see the CentOS 5.6 Release Notes Section 4 for details on the recommended update procedure, and CentOS 5.8 Release Notes for other information.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: getting error "GRUB Hard Disk Error"

Postby kollolbiswas » 2012/03/30 12:39:59

Hi,

I followed you instruction and the process was successful. However the issue is still there.

Now if I remove the 3rd HDD it shows

Error 21

Is there anything else I can try or I must upgrade the server?

regards,
Kollol
kollolbiswas
 
Posts: 12
Joined: 2011/09/26 14:01:54

Re: getting error "GRUB Hard Disk Error"

Postby pschaff » 2012/03/30 17:35:50

Did you try reinstalling GRUB from rescue mode with the disk removed?
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: getting error "GRUB Hard Disk Error"

Postby kollolbiswas » 2012/03/31 08:40:12

Hi Phil,

yes tried that. Actually I tried two things,

1) I removed the 3rd one and tried

Code: Select all
#grub-install /dev/sda


grub-install was successful but at the booting got the same "Error 21"

2) Then I removed the other HDD and kept the hde HDD on which the "/" partition is mounted. and tried

Code: Select all
#grub-install /dev/hde


Then I attached the 2nd HDD and switched on but the situation remained same.

Thanks,
Kollol
kollolbiswas
 
Posts: 12
Joined: 2011/09/26 14:01:54

Re: getting error "GRUB Hard Disk Error"

Postby pschaff » 2012/03/31 15:10:10

Hard to guess the source of the issue without being hands-on to debug. Best I can suggest is to try things in TipsAndTricks/TroubleshootGRUB.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 5 - Hardware Support

Who is online

Users browsing this forum: No registered users and 0 guests