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 10D671382C5 for ; Mon, 15 Jun 2020 19:55:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11265E0F3B; Mon, 15 Jun 2020 19:54:55 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [159.69.161.202]) (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 939DAE0F35 for ; Mon, 15 Jun 2020 19:54:54 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jkvC1-000UOO-0w for gentoo-user@lists.gentoo.org; Mon, 15 Jun 2020 21:54:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Testing a used hard drive to make SURE it is good. Date: Mon, 15 Jun 2020 19:54:45 -0000 (UTC) Message-ID: References: <6d77acb3-5754-06cb-b8ef-2f1a5d7d8084@gmail.com> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (Linux) X-Archives-Salt: e7113775-70b9-4fdd-8679-a417dc625422 X-Archives-Hash: 1fc2a961757cba016ce20fa17c7f46c4 On 2020-06-15, 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 takes a long time to write 8GB no matter what tool you're using. > It can take a long time to write and fill up a 8TB drive. Days > maybe? I would guess several days > 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? backblocks was designed to do what you want. For an 8GB drive, it will probably take most of a week. > 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? babblocks would be a good start. you could also use stress-ng with the "hdd" options: https://packages.gentoo.org/packages/app-benchmarks/stress-ng https://wiki.gentoo.org/wiki/User:Maffblaster/Drafts/stress-ng -- Grant