From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C000E1382C5 for ; Wed, 17 Jun 2020 06:02:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCC65E0A70; Wed, 17 Jun 2020 06:02:29 +0000 (UTC) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44EB9E0A43 for ; Wed, 17 Jun 2020 06:02:29 +0000 (UTC) Received: by mail-oi1-x236.google.com with SMTP id b8so791485oic.1 for ; Tue, 16 Jun 2020 23:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=51aJZm3o9tEpP36eJGitPv+KzPQUuJFzfgjtXtRE5vE=; b=NJPCEZIOOOfPEX2Zsy3GUHsO50f1t9gyZDqUSwofy+OI9lZ6kintQATpk8fPEIfQoJ pds6nTocg0b8A6HaUisiYjw4QBW7XfJa9LlJT+OT4OX+A9HkNOyhLDFoYxe0jx5VIzUa khMBdJWXsZJqeSxzHn5JfwuWogxeKvD+U6pAhoIJShzf3Ll5oTrzdT6f4keCqDfsVU0R 8+fXFBplle7orLSOxGWSbuQKgdJErADtP2ZaH6FwI3YKSPfnYDDFLrskvIqiG+s40B8n FwmmTm5DePn2CeQYFUhdM74nhbXBeipBKVTpcfbqOXbApjHESXcPJ0tWED5gy06KaRDP 5PkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to; bh=51aJZm3o9tEpP36eJGitPv+KzPQUuJFzfgjtXtRE5vE=; b=lOfNumOQvDtXJku/ZOpmMpa7YA4uQG4ZT0hhh5a4dIKnOTGTbsAcURFE3zZ8ubS9Cy YUTtZCgH936STml5uk0kH6Y7/nLaFCRXRyrXDRtp3W4irSNfRFoz2Euo4m963Qk+1Sxq nR3dmcVPOUFqqkl8LatgU6rylM1u26AyRZi2KGKrZmPrFnqYSkQkLg3mqnjvRSwSHC/7 ooN1+tCa2U4HUWj6752ux9Mlws6EODAd3r0thurbzf/SdQJSn4isAB8jZXIMZG7SkgUg e21dHODtkx+H9x+rppFUZ+3ALzshyuSJstDj0dRFVydnH+UjNhVhet5PYk2OKMs2uCnm WgcQ== X-Gm-Message-State: AOAM531s7Jan7f3HNOxMCKk0104SlxhdLoRynOOxtjj6FmAPztDj3EJW NjH/sp0EtdceoS2z3Hvsa3s= X-Google-Smtp-Source: ABdhPJyESfmkqrjFrs2fKmaToM+F9YvZu1LSkgPnTJzAVoHRjEdRZr19+sMsgyvgBuIHLYKmN3z+ew== X-Received: by 2002:aca:1e0b:: with SMTP id m11mr6389222oic.147.1592373748409; Tue, 16 Jun 2020 23:02:28 -0700 (PDT) Received: from [192.168.0.100] (adsl-074-188-241-018.sip.asm.bellsouth.net. [74.188.241.18]) by smtp.gmail.com with ESMTPSA id l65sm4816237oig.27.2020.06.16.23.02.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jun 2020 23:02:27 -0700 (PDT) Subject: Re: [gentoo-user] Testing a used hard drive to make SURE it is good. From: Dale To: gentoo-user@lists.gentoo.org References: <6d77acb3-5754-06cb-b8ef-2f1a5d7d8084@gmail.com> Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBFxc7MgBEAC+zrgEdqJJi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8GAHu L4pYzyXYu6PporlNNU0xSwdVgzM/uuK0lt+UxCimgC+YR3IezgDcbfudb7h9dGIwL+bbPL0A EQEAAYkCNgQYAQgAIBYhBNnuy6u48FpLrRsJhe8Qz9da75mcBQJcXOzIAhsMAAoJEO8Qz9da 75mcXZ4P/1YXgWDZek7mhzrf6uaQzMxa92P89HeWz4PlgB/32symeEFAV04WazzBZffI8AYY rGA1Xmu/2VaB9+FOODyKhUWBc2UL0NRWBk6POwboyTdKlclmpixaN9zLcBt0YLejoRfN1B/5 aQf9/lUDZMnAiCyz0FgeqEMUshldmwWC35RqnjrCbbuk2vIqSH6BLDIXU6jQrLHE1DF0ai41 wLtQFAFXPhn45n0ZwYhVs4Z32z4sjXrIvgBgCaXa4HM+L1Klne0KiNM8ReFTTpTE0SgyDOSZ O3MOa2n77i6JbVtsbiFYnNeP3J9S/l3jevGpZEtNQOKrIm1MW8jGuHWtsDeMkT/mCcSodlkt PxIo+mMK9GpGvG2hW80LiohqNfUbNwAmr3blOYY4URPXPRnEnPs4pmTmL5owjw2dkg145i9I D42Tq+XZ6YtWt3SGzGbAYow6XwTwZ5NFAzV9UQuCGrDw4KWan6O6Z+VIYWsn0UMZlu1Obxna aocofkaUCbISK26kImuD1aA8juSHC18Qv1xUage6/UakbSxyDtACqt6hOVFKX3IA59ApdNRT +2x3iCmlvF9MJsGgFq6IpqL+Fk7iWV8Kjbz0wQOId6N9+JdQh3LrLaS7a1PowUm1z9DK5/O0 Yg+gpDnEOOFI7WM5u7a7FSM2Z/LXGVwel/0eWvLk9tN6 Message-ID: Date: Wed, 17 Jun 2020 01:02:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <6d77acb3-5754-06cb-b8ef-2f1a5d7d8084@gmail.com> Content-Type: multipart/alternative; boundary="------------A8139B7B4D7C8B7B2701775F" X-Archives-Salt: 0d30a683-c633-4721-976f-65c4db43b999 X-Archives-Hash: eab91f1ec17b2bff5d502c19d617b4e5 This is a multi-part message in MIME format. --------------A8139B7B4D7C8B7B2701775F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dale wrote: > Howdy, > > I finally bought a 8TB drive.  It is used but they claim only a short > duration.  Still, I want to test it to be sure it is in grade A shape > before putting a lot of data on it and depending on it.  I am familiar > with some tools already.  I know about SMART but it is not always > 100%.  It seems to catch most problems but not all.  I'm familiar with > dd and writing all zeores or random to it to see if it can in fact > write to all the parts of the drive but it is slow. It can take a long > time to write and fill up a 8TB drive. Days maybe??  I googled and > found a new tool but not sure how accurate it is since I've never used > it before.  The command is badblocks.  It is installed on my system so > I'm just curious as to what it will catch that others won't.  Is it > fast or slow like dd? > > I plan to run the SMART test anyway.  It'll take several hours but I'd > like to run some other test to catch errors that SMART may miss.  If > there is such a tool that does that.  If you bought a used drive, what > would you run other than the long version of SMART and its test?  > Would you spend the time to dd the whole drive?  Would badblocks be a > better tool?  Is there another better tool for this?  > > While I'm at it, when running dd, I have zero and random in /dev.  > Where does a person obtain a one?  In other words, I can write all > zeros, I can write all random but I can't write all ones since it > isn't in /dev.  Does that even exist?  Can I create it myself > somehow?  Can I download it or install it somehow?  I been curious > about that for a good long while now.  I just never remember to ask.  > > When I add this 8TB drive to /home, I'll have 14TBs of space.  If I > leave the 3TB drive in instead of swapping it out, I could have about > 17TBs of space.  O_O  > > Thanks to all. > > Dale > > :-)  :-)  Update.  I got a lot of info and suggestions from the replies.  Thanks to all for those.  The drive has passed all the test so far.  I ran a short and long SMART selftest.  Results: root@fireball / # smartctl -l selftest /dev/sde smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.6.7-gentoo] (local build) Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error # 1  Short offline       Completed without error       00%     24592         - # 2  Extended offline    Completed without error       00%     24592         - # 3  Short offline       Completed without error       00%     24213         - # 4  Short offline       Completed without error       00%     23493         - # 5  Short offline       Completed without error       00%     22749         - # 6  Short offline       Completed without error       00%     22054         - # 7  Short offline       Completed without error       00%     21310         - # 8  Short offline       Completed without error       00%     20566         - # 9  Short offline       Completed without error       00%     19846         - #10  Short offline       Completed without error       00%     19101         - #11  Short offline       Completed without error       00%     18381         - #12  Short offline       Completed without error       00%     17637         - #13  Short offline       Completed without error       00%     16893         - #14  Short offline       Completed without error       00%     16173         - #15  Short offline       Completed without error       00%     12108         - #16  Short offline       Completed without error       00%     11940         - #17  Short offline       Completed without error       00%     11772         - #18  Short offline       Completed without error       00%     11604         - #19  Short offline       Completed without error       00%     11436         - #20  Short offline       Completed without error       00%     11268         - #21  Short offline       Completed without error       00%     11100         - root@fireball / # I then ran badblocks to test it.  This is the results of it.  root@fireball / # badblocks -b 4096 -s -v /dev/sde Checking blocks 0 to 1953506645 Checking for bad blocks (read-only test): done                                                 Pass completed, 0 bad blocks found. (0/0/0 errors) root@fireball / # It doesn't show it now but I had it show the progress including run time.  It took about 15 hours to run on this 8TB drive.  If anyone wants to test a drive in the future, that may help estimate the amount of time to run this test.  I tried the conveyance test but this drive doesn't support it.  Since it shows no errors and it passed the SMART tests as well, I'm thinking it is time to put data on the thing.  Off to the LVM manual.  Thanks to all for the tips, tricks and suggestions.  Dale :-)  :-)  --------------A8139B7B4D7C8B7B2701775F Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Dale wrote:
Howdy,

I finally bought a 8TB drive.  It is used but they claim only a short duration.  Still, I want to test it to be sure it is in grade A shape before putting a lot of data on it and depending on it.  I am familiar with some tools already.  I know about SMART but it is not always 100%.  It seems to catch most problems but not all.  I'm familiar with dd and writing all zeores or random to it to see if it can in fact write to all the parts of the drive but it is slow. It can take a long time to write and fill up a 8TB drive. Days maybe??  I googled and found a new tool but not sure how accurate it is since I've never used it before.  The command is badblocks.  It is installed on my system so I'm just curious as to what it will catch that others won't.  Is it fast or slow like dd?

I plan to run the SMART test anyway.  It'll take several hours but I'd like to run some other test to catch errors that SMART may miss.  If there is such a tool that does that.  If you bought a used drive, what would you run other than the long version of SMART and its test?  Would you spend the time to dd the whole drive?  Would badblocks be a better tool?  Is there another better tool for this? 

While I'm at it, when running dd, I have zero and random in /dev.  Where does a person obtain a one?  In other words, I can write all zeros, I can write all random but I can't write all ones since it isn't in /dev.  Does that even exist?  Can I create it myself somehow?  Can I download it or install it somehow?  I been curious about that for a good long while now.  I just never remember to ask. 

When I add this 8TB drive to /home, I'll have 14TBs of space.  If I leave the 3TB drive in instead of swapping it out, I could have about 17TBs of space.  O_O 

Thanks to all.

Dale

:-)  :-) 


Update.  I got a lot of info and suggestions from the replies.  Thanks to all for those.  The drive has passed all the test so far.  I ran a short and long SMART selftest.  Results:


root@fireball / # smartctl -l selftest /dev/sde
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.6.7-gentoo] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     24592         -
# 2  Extended offline    Completed without error       00%     24592         -
# 3  Short offline       Completed without error       00%     24213         -
# 4  Short offline       Completed without error       00%     23493         -
# 5  Short offline       Completed without error       00%     22749         -
# 6  Short offline       Completed without error       00%     22054         -
# 7  Short offline       Completed without error       00%     21310         -
# 8  Short offline       Completed without error       00%     20566         -
# 9  Short offline       Completed without error       00%     19846         -
#10  Short offline       Completed without error       00%     19101         -
#11  Short offline       Completed without error       00%     18381         -
#12  Short offline       Completed without error       00%     17637         -
#13  Short offline       Completed without error       00%     16893         -
#14  Short offline       Completed without error       00%     16173         -
#15  Short offline       Completed without error       00%     12108         -
#16  Short offline       Completed without error       00%     11940         -
#17  Short offline       Completed without error       00%     11772         -
#18  Short offline       Completed without error       00%     11604         -
#19  Short offline       Completed without error       00%     11436         -
#20  Short offline       Completed without error       00%     11268         -
#21  Short offline       Completed without error       00%     11100         -

root@fireball / #


I then ran badblocks to test it.  This is the results of it. 


root@fireball / # badblocks -b 4096 -s -v /dev/sde
Checking blocks 0 to 1953506645
Checking for bad blocks (read-only test): done                                                
Pass completed, 0 bad blocks found. (0/0/0 errors)
root@fireball / #

It doesn't show it now but I had it show the progress including run time.  It took about 15 hours to run on this 8TB drive.  If anyone wants to test a drive in the future, that may help estimate the amount of time to run this test. 

I tried the conveyance test but this drive doesn't support it.  Since it shows no errors and it passed the SMART tests as well, I'm thinking it is time to put data on the thing.  Off to the LVM manual. 

Thanks to all for the tips, tricks and suggestions. 

Dale

:-)  :-) 
--------------A8139B7B4D7C8B7B2701775F--