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 224FD1382C5 for ; Tue, 23 Jun 2020 16:08:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 587D6E089B; Tue, 23 Jun 2020 16:08:42 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 09CEBE084A for ; Tue, 23 Jun 2020 16:08:41 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A86475C030F for ; Tue, 23 Jun 2020 12:08:40 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute7.internal (MEProxy); Tue, 23 Jun 2020 12:08:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aeam.us; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=BdJcrolnE/AZEdJxYtE1wyhU9bo1UQ9 U45zOSeonEVQ=; b=JboD9U8tQpdn9fxSXCkGZD9060yrjy48pWcGuKUEItzb878 +mWHvH2tYDdf3BzJM5zkj4kSnWsy1+8SDoYgJkRmsBci5NZiw855/Fg7NcRiU3zT Eg9wli2xseDY3e5usHLt+KQ830a1ERcddzlJgEBB+M2E8FhStDHLoN4Ht/yHhGt8 W8VTlA/EJkPFXKjOsaaO/WREM8JY9EWo6k0n5iUai5J2tDD+Q7kXjF+TB7cvC9kC NE4OKAwuzpoFxxO9fVt7DYUB/aIo5xCsUMpam+unkOlpxwXHrWkUkJDsNHnvwWHi hiWjNH9Wvk7uGKUCqi8BqoJUEnM13a9zzfd0I0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=BdJcro lnE/AZEdJxYtE1wyhU9bo1UQ9U45zOSeonEVQ=; b=XyfRJJ0BJiPNvVNC4/6hHO lzmeSAiihVlAaWSKmszbf5ZDC00GnEhACwJtZ184dohlBbV0LtGZULKUzBtBz1fd vxFfJ3dXSup7riFv/ACzZMbeYsf+gdpoZyOX8vfVqezz9j8Lfj1++7YUsbaGCx2m AI2fBElGPACFzRTX9IbbOJWbXY/yqGuaSJu9TaFKek3SObVMGBn02GPi6JRltVtY cq9oo8M2I3PHaNp+YgQW3zPsR4ZUYqioraReqVCkyEFEe0V1tRGpw9IA+uWU3HcV qGPKpIVBU3WX3fkEoPFYP5L880xOiBoopriWnXoUoSo6NARR7MZRjqgBtTvHiaxQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekhedgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfufhiugcuufhprhihfdcuoehsihgusegrvggrmhdruhhs qeenucggtffrrghtthgvrhhnpeevgefhveevteetfeetkeejjeehudffffffhfeuffelhf euffdufeduleejfeeugfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehsihgusegrvggrmhdruhhs X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 48A9466007F; Tue, 23 Jun 2020 12:08:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-543-gda70334-fm-20200618.004-gda703345 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 Message-Id: In-Reply-To: <158351d5-27cc-88d0-951c-893d0b5ad8aa@gmail.com> References: <6d77acb3-5754-06cb-b8ef-2f1a5d7d8084@gmail.com> <20200615231836.xje3kkkihsxrvhaz@grusum.endjinn.de> <158351d5-27cc-88d0-951c-893d0b5ad8aa@gmail.com> Date: Tue, 23 Jun 2020 11:08:11 -0500 From: "Sid Spry" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Testing a used hard drive to make SURE it is good. Content-Type: text/plain X-Archives-Salt: 3081eb2d-db74-4be0-9eaa-587cdfacd1c7 X-Archives-Hash: 28e2708844664383d5a15317dfdc49d0 On Tue, Jun 16, 2020, at 2:17 AM, Dale wrote: > David Haller wrote: > > I mentioned once long ago that I keep a list of frequently used > commands. I do that because, well, my memory at times isn't that great. > Here is some commands I ran up on based on posts here and what google > turned up when searching for things related on those posts. I wanted to > share just in case it may help someone else. ;-) dd commands first. > > > root@fireball / # cat /root/freq-commands | grep dd > dd commands > dd if=/dev/zero of=/dev/sd bs=4k conv=notrunc > dd if=/dev/zero of=/dev/sd bs=4k conv=notrunc oflag=direct #disables cache > dd if=/dev/zero of=/dev/sd bs=1M conv=notrunc > dd if=<(yes $'\01' | tr -d "\n") of= > dd if=<(yes $'\377' | tr -d "\n") of= > dd if=<(yes $'\xFF' | tr -d "\n") of= > root@fireball / # > > > The target device or file needs to be added to the end of course on > the last three. I tend to leave out some of the target to make sure I > don't copy and paste something that ends badly. dd can end badly if > targeting the wrong device. > > > root@fireball / # cat /root/freq-commands | grep smartctl > smartctl -t long /dev/sd > smartctl -t full ##needs research > smartctl -c -t short -d sat /dev/sd ##needs research > smartctl -t conveyance -d sat /dev/sd ##needs research > smartctl -l selftest -d sat /dev/sd ##needs research > smartctl -t /dev/sd ##needs research > smartctl -c /dev/sd ##displays test times in minutes > smartctl -l selftest /dev/sd > root@fireball / # > Thanks for these. I do have a general question: has SMART actually shown anyone predictive capability? In my use and in the use of 4-5 people I know it only makes you aware of errors after the drive is failing but still online. I suppose there might be some utility if you're using an error correcting FS, but for desktop use that was and still is somewhat abnormal.