From nobody Sun Oct 13 17:03:55 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XRRXq6q3qz5ZChh for ; Sun, 13 Oct 2024 17:04:11 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XRRXp1bFxz476s for ; Sun, 13 Oct 2024 17:04:10 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=eNCdhX3g; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.6 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4XRRXn0GTMz9vd5 for ; Sun, 13 Oct 2024 17:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1728839049; bh=F+aFXhz299L67D4jvNCGPk25kqrDEQoetdo2VnQ7XPo=; h=Subject:From:To:Date:In-Reply-To:References:From; b=eNCdhX3gldP4uPK3RyeigN6sWzVN2PRhEpDKIWEDRAektimLLd58yI51U/cbLfcmv 4zXy84jRPg3I9EMju5+uIQffNjoaoOQFkn4hw/pKi7viSjnQvRO5UF7B/HdlXh1e4o cgINlP3oUkZiOBxpt+9Rklo7AU1/kWkWdnCEgahU= X-Riseup-User-ID: 9046E66FFF4DD945F4988C2232CBF4E43FC43D3EE65353097258557EE211EAAA Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4XRRXY2mjbzFwnk for ; Sun, 13 Oct 2024 17:03:57 +0000 (UTC) Message-ID: Subject: Re: How to zero a failing disk drive before disposal? From: Ralf Mardorf To: questions@freebsd.org Date: Sun, 13 Oct 2024 19:03:55 +0200 In-Reply-To: <06ab6d80-2ebd-4f23-b8e6-136c28b2e98f@app.fastmail.com> References: <32911.1728826816@segfault.tristatelogic.com> <0687f794db7f586c45646bb475bd833b604a2175.camel@riseup.net> <06ab6d80-2ebd-4f23-b8e6-136c28b2e98f@app.fastmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 X-Spamd-Result: default: False [-4.30 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; DWL_DNSWL_LOW(-1.00)[riseup.net:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_SPF_ALLOW(-0.20)[+a:mx0.riseup.net]; RWL_MAILSPIKE_VERYGOOD(-0.20)[198.252.153.6:from]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.6:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_ALL(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4XRRXp1bFxz476s X-Spamd-Bar: ---- On Sun, 2024-10-13 at 11:42 -0500, robert@rrbrussell.com wrote: > hdparm is the required program on both Linux and *BSD.=C2=A0 The procedur= e > is set drive security password and then issue Secure Erase. Hi, regarding brand new information from 2013 you shouldn't use hdparm for this task. "hdparm Warning: Do not attempt to issue a Secure Erase ATA command on a device connected through USB; see https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase and this answer for [*] details." - https://wiki.archlinux.org/title/Securely_wipe_disk#hdparm The kernel.org link is obsolete, "This page was last modified on 22 July 2013, at 16:58." [*] https://web.archive.org/web/20180711170859/http://www.tomshardware.co.uk/an= swers/id-1984547/secure-erase-external-usb-hard-drive.html I get "The connection has timed out". Regards, Ralf