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 D42051382C5 for ; Mon, 15 Jun 2020 20:01:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67BFFE0F46; Mon, 15 Jun 2020 20:01:00 +0000 (UTC) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 E36C4E0ED3 for ; Mon, 15 Jun 2020 20:00:59 +0000 (UTC) Received: by mail-ej1-f52.google.com with SMTP id l27so18835693ejc.1 for ; Mon, 15 Jun 2020 13:00:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=1XSoPiqWaP4PN5uV3MoZmePnNxFoP+FSsogcwrs1EE8=; b=hL/WeHk+Q6YT690/yNJ0yzWZrYGixmYS8iJlmzJBlHPAtE4GsdKOhf4EWQRP6b/35D fqLWZObDhhaeuMPhBU38OZomKjqbA+dz9ralukFmvGv4zNBS3bBWFzuuS1FF6QgbXI4J BEC3I8oPEjx6K2cmqn9mubipOuOvp0jGPTf4vzSh31iUN/Tlxf1PEHmOlrGUi4se4b+m TY1Rhl321iFK7FLpvfCKvklrQKem6gN6PvfW/lUa8a4uf13CEkW90MaK9HocfY47HIUg bca87/bnL/Qrfu7D5UeS1kjcNqudz9elNWXR1HwTZraW6Oi6CoJVc+OiOYmv2cs7e3yj jujQ== X-Gm-Message-State: AOAM533k6KTEOFaWALE/j8AzZhurESDn5XccROkOT2tGKKUkfsehEoGE ZCedig8z7ytyi+hHix6TxzvnsEdpivDUSB8W6OoAbBlfwgs= X-Google-Smtp-Source: ABdhPJzk6PBuGYvOhDB2GSGafbwvepS+Sjx8C5qXg+Na0+3AjduW7gekRQAHrBjgb4v7q8lu96ekNyiWX17tKlL4yL0= X-Received: by 2002:a17:906:b845:: with SMTP id ga5mr26991012ejb.300.1592251258188; Mon, 15 Jun 2020 13:00:58 -0700 (PDT) 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 References: <6d77acb3-5754-06cb-b8ef-2f1a5d7d8084@gmail.com> In-Reply-To: From: Rich Freeman Date: Mon, 15 Jun 2020 16:00:47 -0400 Message-ID: Subject: Re: [gentoo-user] Testing a used hard drive to make SURE it is good. To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 43300c2f-b053-485a-8876-7de73ed66685 X-Archives-Hash: ba959ac69345a2a39777e149da351719 On Mon, Jun 15, 2020 at 3:54 PM Mark Knecht wrote: > > The SMART test, long version, will do a very reasonable job catching problems. Run it 2 or 3 times if it makes you feel better. > > Chris's suggestion about Spinrite is another option but it is slow, slow, slow. Might take you weeks? On a drive that large if it worked at all. Is spinrite really still of any use in this era? I'm skeptical of that. Maybe in the pre-IDE days it made more sense. I'd echo the SMART test. If you don't want to trust the vendor then I run: badblocks -b 4096 -v -w -s /dev/disk/by-id/... Note that this is a DESTRUCTIVE write test. There are also non-destructive read-only tests but obviously this is more limited in capability. It will write a series of patterns to the disk and read them back. Barring some really clever firmware it should detect any kind of media error. I think there might be software that writes pseudo-random patterns and then reads them back, which would defeat any firmware fiddling. For a drive in the 10-12TB size you're talking about a day or so per pass, so 4 passes will take a few days. Can't get around 12TB / (120MB/s). If I'm not in a hurry to use the space I'll still do it as nothing is worse than starting to migrate onto a drive and then having to back out, and that is with redundant data. -- Rich