Linux HDD diagnostics/testing suggestions

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Stark
Emperor's Hand
Posts: 36169
Joined: 2002-07-03 09:56pm
Location: Brisbane, Australia

Linux HDD diagnostics/testing suggestions

Post by Stark »

I've recently noticed one of my 500Gb drives on the server is making very strange noises. It whirrs when opening files (ie, paging through images) and makes louder noises at random (ie, when not in use). It's a WD SATA (not a Raptor) and it's brand new. I'm curious if anyone can suggest what one does under Linux to test a drive that may be faulty: it contains a pile of important data (which I can easily move if necessary).

HDDs make noise, but this is louder than any of the half dozen other drives nearby, and I can hear it clearly from a meter away. I'd actually forgotten what the old HDD access noise even sounded like, but I've used Seagates almost exclusively for some years.
User avatar
Resinence
Jedi Knight
Posts: 847
Joined: 2006-05-06 08:00am
Location: Australia

Post by Resinence »

If it's ext2 or 3 you can use the disk util chk2fs, theres an option to check the disk surface iirc.
“Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation.” - Oscar Wilde.
User avatar
Stark
Emperor's Hand
Posts: 36169
Joined: 2002-07-03 09:56pm
Location: Brisbane, Australia

Post by Stark »

Yeah I'm using ext3. I'll give that a go - if I wanted to start logging HDD problems, how would I go about that? If there's a problem (and WD's aren't simply louder than Seagates) I'd like to catch it before I lose any data.
User avatar
Resinence
Jedi Knight
Posts: 847
Joined: 2006-05-06 08:00am
Location: Australia

Post by Resinence »

If you're running a standard distro there is probably already a daemon set up logging everything that happens, but I have no idea how to access the logs I've never had to.
“Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation.” - Oscar Wilde.
User avatar
Stark
Emperor's Hand
Posts: 36169
Joined: 2002-07-03 09:56pm
Location: Brisbane, Australia

Post by Stark »

LOL Yeah, neither have I. I've poked around some likely places, but haven't really turned anything up. :cry:
User avatar
Alferd Packer
Sith Marauder
Posts: 3706
Joined: 2002-07-19 09:22pm
Location: Slumgullion Pass
Contact:

Post by Alferd Packer »

Check in /var/log. There should be files that the system log daemon writes to in there.
"There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance--that principle is contempt prior to investigation." -Herbert Spencer

"Against stupidity the gods themselves contend in vain." - Schiller, Die Jungfrau von Orleans, III vi.
User avatar
Uraniun235
Emperor's Hand
Posts: 13772
Joined: 2002-09-12 12:47am
Location: OREGON
Contact:

Re: Linux HDD diagnostics/testing suggestions

Post by Uraniun235 »

Stark wrote:I'm curious if anyone can suggest what one does under Linux to test a drive that may be faulty: it contains a pile of important data (which I can easily move if necessary).
A hard drive that shows no symptoms whatsoever could fail tomorrow.

Don't trust hard drives; if the data's really important, back it up.
"There is no "taboo" on using nuclear weapons." -Julhelm
Image
What is Project Zohar?
"On a serious note (well not really) I did sometimes jump in and rate nBSG episodes a '5' before the episode even aired or I saw it." - RogueIce explaining that episode ratings on SDN tv show threads are bunk
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Usually read errors (at least for me accessing nearly dead external drives) show up in /var/log/kern.log

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
Post Reply