Solved

Unrecognized Hard Drive after removing Linux

Posted on 1998-12-02
13
349 Views
Last Modified: 2010-04-20
I am having a hard time with a IDE hard drive not being recognized during boot.  I
installed Linux Slackware on the drive and then removed it and installed it on another
computer.  The drive is recognized by the BIOS, but when I try to boot from a Win95
boot disk, I get a Primary Hard Drive Failure.  DOS Fdisk can not find the drive, but
when I tried the Linux Fdisk, it recognized it.  I tried to setup a Bootable DOS Parttion
using the Linux Fdisk, but had no luck there either.  Any suggestions?
benjamin@ebicom.net

Thank you all for your help.


0
Comment
Question by:bwf
  • 4
  • 3
  • 2
  • +4
13 Comments
 
LVL 3

Expert Comment

by:mhomann
ID: 1638695
if there is no more data aon that disk which you will need, just remove ALL partitions on that drive with linux fdisk and try again... or try 'remove non-dos-partition' from dos-fdisk.
0
 

Author Comment

by:bwf
ID: 1638696
I have tried the above before and it did not work.  DOS Fdisk will not even recognize a hard drive.  It gives me an error - no fixed disks attached.  However, I know the hard drive is good and I know that it is installed correctly.  Thank you for your quick response Mhomann, but I have already tried your suggestion.  
0
 
LVL 4

Expert Comment

by:mcdonc
ID: 1638697
You can't remove Linux ext2 partition(s) with DOS fdisk.  Use Linux fdisk to remove the partitions.

In order to do this, boot with a Linux rescue floppy or with the slackware boot/root combo and get to a shell prompt.  Then use fdisk.

0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

Author Comment

by:bwf
ID: 1638698
I have tried this also.  I removed all partitions with Linux Fdisk, This did not accomplish anything.  DOS Fdisk still did not recognized the hard drive.  I also tried to create a bootable DOS Partition using Linux Fdisk and this failed also.  Thank you for your quick response, but I am still were I started.
0
 
LVL 3

Expert Comment

by:mhomann
ID: 1638699
how big is the disk? what about PIO modes etc in bios settings, LBA mode and all that stuff????

bye
0
 

Author Comment

by:bwf
ID: 1638700
It is a 119 MB IDE Drive.  BIOS is AMI - there is no option to set LBA.  With this small of a drive, i should not have any problmes.  Cyl -872 HD -8 Sec -35 Size -119
0
 

Expert Comment

by:schneider1978
ID: 1638701
I solved this problem on the machine of a friend a few days ago. What you got to do is make a bootable floppy disk containing fdisk, botting the machine with this disk and in the DOS prompt type:

FDISK /MBR

This will restore the Master Boot Record of your machine and then after another reboot, FDISK should recognize the device correctly allowing you to create a new partition. Good luck!
0
 

Author Comment

by:bwf
ID: 1638702
This option does not work either.  DOS Fdisk will not recognize the Drive.  When I tried your suggestion, I still got the no fixed disks present error.  
0
 

Accepted Solution

by:
schneider1978 earned 210 total points
ID: 1638703
Which brand is your hard drive? You can get the tools from the disks that come together or download them from the brand's website. Most brands of HDs provide some tools that can make a physical format on your HD. I tried this once and worked. You can also make a physical format by plugging the HD in an old machine, such as a 386, that came with such tool on their BIOS setup.
0
 
LVL 3

Expert Comment

by:mhomann
ID: 1638704
are all jumpers on the drive correct? is it connected to the right controller (first or second ide) and the right connectors on the cable?
0
 

Expert Comment

by:hpesoj
ID: 1638705
The following will solve your problem. Assuming there are no physical problems with your hard drive.  Since it appears that you don't care about the data on the drive.  Go to the hard drive's manufacturer web site and download their low level format utility.  Most of the time you can just extract it to a bootable floppy and run it from there.  After you low level format the drive any traces of any partitions will be gone and your drive will be as good as new.  Try this, it never fails.
Some motherboards also have Low level format utilities in their BIOS.  Try this, if it doesn't work let me know.

hpesoJ a.k.a Joseph
0
 
LVL 1

Expert Comment

by:zblaxell
ID: 1638706
Boot Linux, figure out which disk is your hard drive (probably /dev/hda; I assume that you know which one it really is because you've fdisked it).  Then execute:

dd if=/dev/zero of=/dev/hda bs=512 count=1

This will completely erase the MBR, after which DOS fdisk should be happy.  This takes a lot less time than a low-level format.
0
 
LVL 1

Expert Comment

by:NakedTimeMan
ID: 1638707
When you check out this message,  please check the suggestion that schneider1978 has for you and if it doesnt work let me know... I think I got the fix for your problem.

Later

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question