LinuxQuestions.org
Review your favorite Linux distribution.
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-08-2013, 12:26 PM   #1
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 358

Rep: Reputation: 39
hard drive error test?


Hi,

Is dd if=/dev/sda of=/dev/null a reliable test for the hard drive condition? I know there are smart tests, but if I just want to make sure everything is still readable, is this sufficient?


thanks,
rabbit2345
 
Old 01-08-2013, 02:52 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,412
Blog Entries: 2

Rep: Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995
No, the disk may correct errors on the fly without you noticing it. A SMART test or usage of the disk's manufacturer's diagnosis toll is the recommended way to do a test.
 
Old 01-09-2013, 01:35 AM   #3
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 260

Rep: Reputation: 50
Quote:
smartctl --test=long /dev/sda
After a long while:

Quote:
smartctl -a /dev/sda
You could also look at "badblocks" for another, potentially more destructive, option.

Regards,
Stefan
 
Old 01-12-2013, 04:57 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
The SMART long test checks for bad blocks already.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How Do I Test My Hard Drive? carlosinfl Linux - Hardware 6 05-17-2011 04:16 PM
Test new hard drive(if its working) ansrewdps Linux - Newbie 5 02-25-2011 08:40 PM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
how to test/prove a hard drive? drakebasher Linux - Hardware 1 04-13-2007 05:59 PM
Test Hard Drive performance? voxel Linux - Hardware 7 09-07-2005 01:44 AM


All times are GMT -5. The time now is 05:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration