LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2008, 04:09 PM   #1
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Rep: Reputation: 15
GRUB Hard Disk Error


I am trying to totally wipe out my old Windows NTFS hard drive, install XP first, and then re-partition it to do a dual boot XP / Fedora 8. The drive I have is a 80 GB IDE hard drive that previously had grub on it to dual boot a 2 hd system.

The first time I plugged it in and booted I immediately get "GRUB Hard Disk Error"

I managed to access it and read/write the contents by putting in a boot CD with Knoppix and booting with that. The strange thing is even when the boot order was set to CD first then Hard Disk it still gave me "GRUB Hard Disk Error". The only way I got Knoppix to work was to unplug the power cable to the hard drive, boot off the CD, then plug the power back in on the hard drive.

After that I tried using a Windows (XP?) boot CD to restore the partition table. I ran fdisk removed all the partitions and set one active fat32 partition to take up the full 80GB. Rebooted and got, "GRUB Hard Disk Error". At this point I am wondering what the boot disk really did if it did anything.

It seems like no matter what I do I can't wipe out the partition table information on this disk. Anyone have any idea why GRUB still thinks it is installed, or what I can do to kill it? My goal is just to get the disk to the point where GRUB wont complain and I can install XP on it.
 
Old 03-16-2008, 05:00 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try this from a Knoppix terminal
Code:
dd if=/dev/zero of=/dev/sda count=1
That will trash the MBR and the partition table.
XP installer will see it as an uninitialized disk, and will offer to use it and write a disk ID to it. If it sees the disk as hda, modify the command appropriately.

Last edited by syg00; 03-16-2008 at 09:17 PM. Reason: wrong input (pseudo-)device
 
Old 03-16-2008, 05:07 PM   #3
pjbgravely
Member
 
Registered: Mar 2004
Location: USA
Distribution: Aptosid, Ubuntu server, DSL
Posts: 53

Rep: Reputation: 16
One part of GRUB is in the master boot record. It then must find another part on a hard drive. When it can't find that other part then it gives the disk error.

The fact that you have to trick the computer into booting off of CD, points to a motherboard problem. Also do you have a GRUB floppy disk in the floppy drive? If not try resetting the BIOS to defaults and see if that helps.

Reinstalling windows first should remove GRUB completely from the hard drive. If it doesn't it is possible that hard drive maybe bad.

Paul
 
Old 03-16-2008, 11:39 PM   #4
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Original Poster
Rep: Reputation: 15
Quote:
The fact that you have to trick the computer into booting off of CD, points to a motherboard problem. Also do you have a GRUB floppy disk in the floppy drive? If not try resetting the BIOS to defaults and see if that helps.
pjbgravely I think you were on the right path. After you had mentioned it I recalled that I had seen "BIOS Checksum failed reverting to default configuration" after that error I had gone in and added my HD and DVD drive to the configuration and did a "save & exit" and assumed all was well.

I tried again just now, only I did the save first, then hit save and exit. Now it boots from the CD! It was the BIOS all mucked up.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Hard disk error santana Linux - Embedded & Single-board computer 5 01-17-2008 11:30 PM
GRUB hard disk error NinjaGeek Linux - Software 2 04-11-2007 10:57 AM
GRUB hard disk error 0perat0r Linux - Newbie 3 02-24-2005 12:17 AM
grub hard disk error gtanghookup Linux - Software 7 04-24-2004 12:33 AM
GRUB Hard Disk Error joe_wilkins2001 Linux - General 1 01-25-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:29 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
Open Source Consulting | Domain Registration