LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-27-2004, 10:38 PM   #1
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
Question How do I tell if a hard disk is no good?


Today my computer crashed (Mandrake Linux 9.2) and when I rebooted, no matter how many times reieserfsck ran, and how many times I rebuilt the trees I couldn't get my distro to reboot without finding more errors on it. Finally, after I tried deleting a single partition using fdisk (because it was ext2 from a botched attempt at installing Linux From Scratch) my computer rebooted to a blank hard disk (Or at least it appeared blank when I looked at it from Knoppix).

I've got a good chunk of my data backed up so although this is traumatic it hasn't killed me. I've reloaded 9.2 on another hard drive. My question is how do I know if I can trust the old hard drive? I'd like to put it back in my machine, because this hard drive belongs to another computer, but I am afraid that it will go down again and take important data with it.

Is there an easy way to check whether or not the hard drive is bad?
 
Old 01-27-2004, 11:00 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
If you hear any clicking or threashing nioses from the drive, it's probably kaput.

After recovering what you can from the good partitions, you could try zeroing out the drive and see if you get any errors.

dd if=/dev/zero of=/dev/hd<X> bs=512

If no errors result, repartition, format and try some heavy file transfers.

From a hard drive faq I found:
Quote:
06. CLICK CLICK CLICK or GRIND GRIND GRIND! Whats wrong???
Backup Your data NOW! Noises such as these means that your drive has failed, or is about to.

07. My hard drive has developed Bad sectors! What should i do?
Firstly backup all your critical data fast! Then you have a choice. You can reformat the drive using the manufacturers diagnostic utility which marks bad sectors as bad and no longer uses them to store data. This however does not prevent further bad sectors from developing. And its almost guaranteed that you will get more at a later date. The better solution is to replace the drive, or send it back (RMA it) if it is still under warantee.

Last edited by fancypiper; 01-27-2004 at 11:04 PM.
 
Old 01-27-2004, 11:51 PM   #3
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
A friend of mine is using this software suite to do the 'thinking' for him.
http://csl.cse.ucsc.edu/smart.shtml
It is interesting so say the least.

Oops that one link was old, try this one:
http://www.linux-ide.org/smart.html

which leads you to this one:
http://sourceforge.net/projects/smartsuite/
sorry about the long way around, I got it from a friend.

Last edited by faheyd; 01-27-2004 at 11:56 PM.
 
Old 01-29-2004, 07:53 PM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
often the drive manufacturer will have a utility to test the health of the drive and let you know what to do next (sometimes it can repair it, but I'd not trust it that far)
 
Old 01-29-2004, 08:36 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
And how old is the hard drive? Less than 3 years ago some of them had 3 year warranty - maybe some even 5, but I don't recall.
If you use the manufacturers drive utility test, some with even give you a RMA number to return the drive and have it replaced - for FREE!
I got an IBM hard drive replaced just this way.
 
Old 01-29-2004, 09:16 PM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
you can't know when an HD will fail.
I got a pretty new Maxtor 60gig that just stop working a morning after a reboot. I never got any warning so I lost everything...
This damn stupid thing is now in few pieces on the desk near me. These nice copper disk are cute :P
 
Old 01-29-2004, 09:33 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by Half_Elf
you can't know when an HD will fail.
I got a pretty new Maxtor 60gig that just stop working a morning after a reboot. I never got any warning so I lost everything... :)
This damn stupid thing is now in few pieces on the desk near me. These nice copper disk are cute :P
Sometimes S.M.A.R.T. will notify you of impending disk failure, as well as other programs. I don't know the time frame for
"pretty new," but Maxtor's hard drives carry anywhere from a 1 year to 5 year warranty, depending upon the drive.
You can check the warranty status of your drive online at the Maxtor site.

If you can get it back together, you may can even recover your data by mounting it with another OS. I've recovered data
from a failed drive with a Knoppix Live-CD. Of course, you may have voided your warranty by breaking the seal when
you opened the case. Could have damaged it beyond repair, too, from the sound of your post :}
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Reclaim disk partition from hard disk installation EStester Linux - Enterprise 2 03-09-2005 11:46 AM
Reclaim disk partition from hard disk installation EStester Linux - General 1 03-09-2005 11:25 AM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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