topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 12:36 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Hard Drive Diagnostic Software  (Read 27285 times)

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Hard Drive Diagnostic Software
« on: November 26, 2007, 07:23 AM »
Today an unfortunate event brought to light a gap in my knowledge. I knocked a 300 GB portable hard drive off of my desk and onto the carpeted floor. The drive shows up and I tried to use the built-in error-checking tool (scandisk) that is part of Windows XP but I get an error dialog about 75% of the way through.

Checking Disk (F:)
Windows was unable to complete the disk check.

I shut my laptop and the hard drive down and went to work. I started them both up here at work and got the same error.

I am aware of tools from the various hard drive manufacturers to diagnose the hard drive itself. These programs will tell me if I have any trouble with the hard drives, but will not tell me about any problems with the data that is on the drive. I need to know what files, if any, have been lost or damaged. I want to know if I need to reformat the drive and check for bad sectors.

I realized that I have always relied on Scandisk for this and I do not know of any alternatives. What software do you suggest I use?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #1 on: November 26, 2007, 07:40 AM »
Humm... drive vendor diagnostic tools typically will not work when the drive is attached via USB or FireWire, but requires you to attach via SATA or IDE - and typically only works when connected to the "main" IDE/SATA ports, not RAID ports etc...

The quick SMART scan typically doesn't tell you anything, or at least nothing you don't know (the one thing that is worth watching for is "reallocated sector count", nonzero means get rid of the drive... but you should have detected that because of clicking noises before seeing it on SMART stats).

If you run a full surface scan (could be called differently in the diagnostic tool), each sector of the drive should be checked, and afaik this will also kick in sector reallocation for bad sectors. Problem is, I dunno if you can get a list of the sectors that have been reallocated, and even if you did... I don't know a program that will tell you which files on the filesystem contain those sectors.

Sorry, this was a lot of text and not much help, I'm afraid :/
- carpe noctem

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #2 on: November 26, 2007, 07:48 AM »
While I detest Steve Gibson's hysterics sometimes, his SpinRite low-level disk scanner has brought some dead drives back to life for me.  Its not free, however: $89

Was the drive running when it fell to the floor?  If so the head might've crashed... that's pretty catastrophic.

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #3 on: November 26, 2007, 08:18 AM »
f0dder, Ralf,

Thanks for the tips.

f0dder, I understand about the limitations of the USB connection, but I was already prepared to take it out of the case and put it in a sled and into a box with a drive bay to test it if need be.

Ralf, The head crashing was the first thing I thought about when I realized the drive had fallen. It was on, but 1) may have been in power-saver mode 2) the power cord was what I tripped on and it pulled the power from the drive, so that may also have caused the heads to go to park.

Outside of attempting to copy each file to another drive, can you think of any way to test all of the files on the drive? I also understand that just because the file copies, that doesn't mean it isn't damaged in some other manner.

ChalkTrauma

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 116
  • ::41554D::
    • View Profile
    • DreamCycle Studios
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #4 on: November 26, 2007, 08:50 AM »
How about:

http://www.hdtune.com/

and

http://www.cgsecurity.org/wiki/TestDisk

I also bricked a eGo portable USB drive and used Knoppix to get it back, you can view my post here:

http://www.iomegasup...mp;highlight=knoppix
'Behold! It is not over unknown seas but back over well-known years that your quest must go; back to the bright strange things of infancy and the quick sun-drenched glimpses of magic that old scenes brought to wide young eyes.'

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #5 on: November 26, 2007, 09:28 AM »
Also, take a peek at the system logs.  Might be some useful leads there as to why Windows barfs while running scandisk.

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #6 on: November 26, 2007, 10:19 AM »
Also, take a peek at the system logs.  Might be some useful leads there as to why Windows barfs while running scandisk.
I don't know why I didn't think of that, but after looking, there was nothing there related to scandisk.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #7 on: November 26, 2007, 05:21 PM »
Humm, it might be possible to write a trivial script to check which files have problems - iterate through the entire drive, and try reading each file entirely. On failure, spit out filename and move to next file. Would take a while, but would probably work... and should be trivial to hack together in, say, Python.
- carpe noctem

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #8 on: November 26, 2007, 05:32 PM »
Dirty Trick f0dder! Like I don't already have enough to do and you throw out that obvious hook baited with Python! Shame on you.

Well, I sicked BeyondCompare and Super Flexible File Synchronizer on the the drive while at work. The news wasn't all that bad. First of all, I had forgotten that I had just started to use this drive and only had manged to fill up 26 GB of it so far. And it seems like there is one directory that is inaccessible, but that is just copies of some freeware and is easily replaced. I am going to go on the assumption that BC2 and SFFS are telling the truth and I copied everything besides that one directly successfully to another drive. Now I am going to do a full format of that drive and see what happens. Hopefully only a few bad sectors and I am good to go.

I still am looking for a program to use if scandisk can't do its job at some point in the future.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #9 on: November 26, 2007, 05:55 PM »
Yeah, full format and then the manufacturer's diagnostics tool, and be sure to look for "remapped sector count" in SMART info.
- carpe noctem

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #10 on: November 26, 2007, 07:58 PM »
CheckDisk (scroll Down) - (Download)

CheckDisk.png

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #11 on: November 26, 2007, 08:16 PM »
Thanks Phil. I will try it out and report back.

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #12 on: November 26, 2007, 08:25 PM »
have you tried chkdsk?
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #13 on: November 26, 2007, 08:30 PM »
you can try speedfan too, click the "perform an in-depth online analysis...." button and see how many warning you get for smart data:

http://i196.photobucket.com/albums/aa228/blueskyalways/GadwinScreenShot005.png
Hard Drive Diagnostic Software
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #14 on: November 26, 2007, 08:39 PM »
have you tried chkdsk?

kimmchii,

chkdsk was deprecated by scandisk. And I guess that I should say that I am using the GUI version found on the Tools tab and not the command line version of scandisk.

I don't have SpeedFan on the laptop, but I can check the SMART data via other means. I'll do that when I run the manufacturer's disk utility on it. SpeedFan is getting better and better all the time though. Good little utility.

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #15 on: November 26, 2007, 08:46 PM »
Despite chkdsk being superceded, I've found some issues chkdsk handles that scandisk won't -- and vice-versa.

chkdsk /r/f performs a full sector-by-sector scan of the whole disk surface; pack a lunch.

Oh, and tin, when you get around to formatting the volume... be sure and do a "full" format instead of a "quick" one, which assumes your bad sector table is up-to-date.

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #16 on: November 26, 2007, 08:51 PM »
chkdsk /r/f performs a full sector-by-sector scan of the whole disk surface; pack a lunch.

Maybe I will let chkdsk /r/f run overnight before I do a format. Does that handle NTFS?

And yes on the full v quick, that I planned on.  ;)

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #17 on: November 26, 2007, 08:53 PM »
Maybe I will let chkdsk /r/f run overnight before I do a format. Does that handle NTFS?

Indeed it does.  Good hunting!

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #18 on: November 26, 2007, 08:55 PM »
i suggest you run chkdsk without the switch first, it will finish in less than 30sec and you will know how is the overall health of the hdd, then run the full scan.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #19 on: November 26, 2007, 09:02 PM »
I got some hits
...
File record segment 20072 is unreadable.
File record segment 20073 is unreadable.
File record segment 20074 is unreadable.
File record segment 20075 is unreadable.
...
100 percent completed.               File verification completed.

Errors found.  CHKDSK cannot continue in read-only mode.

Time to set up for scan on boot and reboot.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #20 on: November 27, 2007, 05:34 AM »
Ummm, I thought that it was chkdsk that obsoleted scandisk? The last time I saw scandisk was on Win9x boxes :)
- carpe noctem

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #21 on: November 27, 2007, 06:14 AM »
MS used the same name for the utilities if I'm not mistaken. "chkdsk" can be traced back to the MS-DOS days and caused some serious problems in Win9x with utilities like Magic Folders that had a somewhat unconventional approach to the file system  (it whacked off all hidden folders in MF's case.  ;D )

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #22 on: November 27, 2007, 10:51 PM »
Time to set up for scan on boot and reboot.

So.....?

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #23 on: November 28, 2007, 05:01 AM »
So.....?

When I rebooted, it started to perform the chkdsk, but on the C: drive. I went to bed. When I woke up Windows was booted and I can't tell if it even did a chkdsk on the external USB drive.

So I have shelved this until the weekend when I will put the drive in a sled and stick it in a box so it is connected to a proper IDE controller.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Hard Drive Diagnostic Software
« Reply #24 on: November 28, 2007, 06:41 AM »
When you schedule multiple boot-time CHKDSKs, they are all performed - although with all the trickeries of USB drives and reassigned letters, I dunno if there's a risk of that failing.

Shouldn't be necessary to do boot-time chkdsk of an external drive though, you should be able to do that under normal windows operation :-s
- carpe noctem