LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2013, 12:10 PM   #1
jfluckey
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Rep: Reputation: Disabled
HDD Test/"Break In" using dd


I have a new 3TB WD Red drive. I put it in my FreeNAS box and ran the following commands
Code:
dd if=/dev/zero of=/dev/ada0 bs=65536 &
dd if=/dev/ada0 of=/dev/null bs=65536 &
with a little time in between.

After ~14 hours, I got the results:
Quote:
dd: /dev/ada0: short write on character device
dd: /dev/ada: end of device
45785416+0 records in
45785415+1 records out
3000592982016 bytes transferred in 53383.254357 secs (56208506 bytes/sec)
I guess I never really worried about the output of the dd command when copying drives. I guess I was expecting both records in and out to end with "+0". Can someone explain my results and let me know if the results throw up any red flags?
 
Old 01-26-2013, 02:15 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,599

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
It just means the device did not match a multiple of your buffer size. The "short write" indicates that the output device filled before the complete record was written. The +1 is the partial record that was read from the device.
 
Old 01-26-2013, 10:18 PM   #3
jfluckey
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
It just means the device did not match a multiple of your buffer size. The "short write" indicates that the output device filled before the complete record was written. The +1 is the partial record that was read from the device.
So should I rerun the test with a different buffer size or are the results enough for me to implement my drive?
 
Old 01-27-2013, 06:53 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,599

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
No real need to. The device is working.

Now there is still the possibility of an early death, but that would require about a month of random read/write activity, and is usually not worth the effort.
 
Old 01-27-2013, 02:38 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I'd suggest running the S.M.A.R.T. self tests on the drive to fully test it, e.g. "smartctl -t long /dev/XXX" and then "smartctl -l selftest /dev/XXX" to see the results. If you're feeling paranoid, you can also run badblocks, but it will take some time.
 
Old 01-27-2013, 05:47 PM   #6
jfluckey
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
I'd suggest running the S.M.A.R.T. self tests on the drive to fully test it, e.g. "smartctl -t long /dev/XXX" and then "smartctl -l selftest /dev/XXX" to see the results. If you're feeling paranoid, you can also run badblocks, but it will take some time.
I kinda am on this one. I haven't bought an HDD since I got (4) 250 GB for my RAID almost (7) years ago. I bought this one on a sale but there were several reviews of failure after a month or so. Stressing it now would put me at ease as I am in need of this extra space before my library can get any bigger. I've transferred ~1TB to this drive already (just duplicate as I have my original data on my other drives). I'm pretty sure it won't, but the smartctl will not affect any data on the drive? I probably won't wait for an answer as I can just recopy the data if it does .

TIA.
 
Old 01-27-2013, 10:21 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The smartctl tests are by default run in non-destructive mode. You can run them even with data on the drive and the partitions mounted and it will not affected anything.
 
  


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
LXer: Comparison Test: Linux Mint 12 "Lisa" KDE vs. Netrunner 4.1 "Dryland" LXer Syndicated Linux News 0 02-10-2012 09:10 AM
Does mounting HDD with "flush" & "sync" have any real use? Mr. Alex Linux - Hardware 1 02-03-2011 04:46 AM
[SOLVED] Silencing the line "echo test > test/test.txt" in a shell script Arenlor Linux - General 2 06-18-2010 02:37 PM
What does [if test "/usr/local/bin/php" = '@'php_bin'@'; then] test for zhjim Programming 3 11-02-2009 03:33 AM
php ide with "break" and "trace" Kayaker Programming 3 04-25-2003 03:52 PM


All times are GMT -5. The time now is 06:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration