From nobody Tue Sep 27 03:13:57 2022 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 4Mc4Th2CJzz4d13p for ; Tue, 27 Sep 2022 03:14:00 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mc4Tg4Kblz3Sk7 for ; Tue, 27 Sep 2022 03:13:59 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-pf1-x431.google.com with SMTP id y136so8537714pfb.3 for ; Mon, 26 Sep 2022 20:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date; bh=XFwmFXn/dwCmsrfDA+fjhbDCMIrF5AQw1T9/iY20yM8=; b=VQzOz5/hFSPYE7BPAaA/WhDMMP6rSLlwQk8/UkahVmPFzdWRUP361b4Gh+L9/cMzvt l9jQWbwdouiqAucXihrLaNzTLbbAClUKB7F3k/E+SFejGwIEPz+PaP/cLJdvm8u91iJt 7go0aO6UJeEDyPlSOfK0VtGp8Cxnw+gJVJ05lj/wlqWdgcdsEg2NPAysz6cF9jg0v3T6 dFXtWkCFJ+v2EQR3KZaISmTG2wAfJnbo86TKOSn6aKuZuzIRJ7ipF5yVBgMWcBKhBW7v Gd8/8wRyrMmo1UaTmspGCX2ELzfszupIIqFoFAdUHaoWX0NuXLa0cwIfKBOCXS6sIj+N Cmyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=XFwmFXn/dwCmsrfDA+fjhbDCMIrF5AQw1T9/iY20yM8=; b=CKP5XRuxwGxu4Ke/zOtwhX83A8eFNEy/8TTakuvWsMCBmfOgBs1VcpYrKhYO3Tqvbw dLiyKQhwhE5yw9GhRIGmjF0eqv/K0CSRUa5zErGjU5KEhBQqOjqz6QcwCa7mv6qGNUGv +5ldOlDSND/M2hCZDcVfjWyndBlvsGgpT2A60RLQ9iQzSD4Py57l7fa2FILpEmPLzcpQ Wwj5q9/MF+IgpVZHNvjJhVclJmCpcLsKgnYKKSPrYVnswTk9NgI0ZrhMs7VoZhNQghNn ulSQRJhScDs/KjUjJHBWSsiV6eRI4I68NLJBlpqIetLRBGyEiCAKqM3bNweaYSVR0t4P WYqA== X-Gm-Message-State: ACrzQf2Jl4FvTQQYJ+LfW2LaxGVQLtbTHUUTkGQXLbJx3Epg8mRNSIHb pllY/pMV7tJXsuqhbocD5bx6q/SustiTSgRacuX4T5w98KzEFgu9QCQ= X-Google-Smtp-Source: AMsMyM7S34FG/UppZjDsG0nbnT5IKdzBd3lvivWZr9fJhYSKd+WvPjT67dq56Tt4jvIDGfhD8lCQhqxpA6TyWI7SjEA= X-Received: by 2002:a05:6a00:804:b0:544:4e98:3ff3 with SMTP id m4-20020a056a00080400b005444e983ff3mr26754726pfk.36.1664248438211; Mon, 26 Sep 2022 20:13:58 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Received: by 2002:a17:902:f64f:b0:178:bb78:499b with HTTP; Mon, 26 Sep 2022 20:13:57 -0700 (PDT) In-Reply-To: <50ee834e-60ef-badb-68ce-f9aa589cd3cc@dreamchaser.org> References: <1f639118-4bb2-acfd-ab8e-e3aab9a79c9e@holgerdanske.com> <4e864eaefcb7dbed7bdf59d40920a0ab9b964bf5.camel@riseup.net> <50ee834e-60ef-badb-68ce-f9aa589cd3cc@dreamchaser.org> From: grarpamp Date: Mon, 26 Sep 2022 23:13:57 -0400 Message-ID: Subject: Re: disk non-destructive bad-block write/fix? To: questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Mc4Tg4Kblz3Sk7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="VQzOz5/h"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grarpamp@gmail.com designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=grarpamp@gmail.com X-Spamd-Result: default: False [-2.94 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.94)[-0.943]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::431:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N > This one is harder because of blanks and other stupid characters in find -print0 xargs -0 > Or do you do the whole thing on the fly somehow and only worry about the > one overarching result? People often diff. Lots of ways and tools. And ZFS does checksums internally and emits error notices. >> dd if=/dev/da0 of=/dev/null bs=1m conv=noerror > Am I right in assuming this will skip remapped bad sectors? Just continues reading linear past errors. See manpage. Spares mapped in are transparent to user. Bad sectors mapped out are no longer accessible unless the vendor firmware modepages lets you play with them. FreeBSD might have some bad disk emulator GEOM device by now. > It's been running for several days now... If no output so far, send it a ctrl-t or kill -info, it maybe stuck or has read past end of media size already.