From nobody Tue Sep 20 19:00:33 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 4MX9qJ5npWz4d7dy for ; Tue, 20 Sep 2022 19:00:44 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MX9qG6Y2gz4514 for ; Tue, 20 Sep 2022 19:00:42 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1663700434; bh=YXuVg2zeLr643HUkwK+a0yQjoMGf9I4i7Tv7/iS03R4=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=utKXF25Yps9yypHTIxwRzG5+q6likaWVv3TXejPVf2+lDUyi7Cax2pxf2qAdX1Q3/ YLaA9eIJqIqHx38oLlTiZ/HuzMw5XqTz5Z8X1dL3YlmIKUNJXWxOdApbpbhnWTOsbM r0ObXVDYc3+B8H6FWJHVAK4AceNODP85D6m0+4vD4mxkghNONNa075T10NnNhcs6mT RoRWAZVD5gcJW+KDhpAGTb+4q33lWWnW+AFeQYCGU+07BL5SQ6tiCbhpDJdoLKPyAV /Kce3CFMh5w9wSACHabtnWqDO+WhY5OgD3RngKrJSzzS1BYp9+PSq7UGhDTiMibQ+b RpUR4/eEXSiRjx9uL3Fhh9MMLmrcLpJzVxjH0+rtI2RXaHf3M0c++JD2pPuw8NK7uy kJhxMzmxvNL9uLWpq5DEkvQvLNqFd42aYsG0HKuBOxIkita6mMVxsU7tHImRWAm9Au 9TnQrNcx0P3P5CC0YypqCC+PaBu1hL9BefVUpvHg4VDNHLmQBLUV2himJP73r9aIcx gSBYVoTvHJCIOmbRImUWgbFgpNW5jh31L2R/dfy7etiJE3tyE1U+etOa+sbCEGg/nR QriTuj5Or7Vy+b8S3P2uXvZbKj5e7+wd81EmHmy6mY9QEOD6E9a5bXnAjYr4rtVmom yRN+w25LWC5r4JG6IXCVMqL4= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 20 Sep 2022 12:00:34 -0700 Message-ID: <1f639118-4bb2-acfd-ab8e-e3aab9a79c9e@holgerdanske.com> Date: Tue, 20 Sep 2022 12:00:33 -0700 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: disk non-destructive bad-block write/fix? Content-Language: en-US To: questions@freebsd.org References: From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MX9qG6Y2gz4514 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=utKXF25Y; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.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.936]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 9/19/22 20:40, Gary Aitken wrote: > I have a system I need to back up and my only available backup disk is > throwing a lot of errors like: > >   (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 3c fd e5 68 00 00 40 00 >   (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error >   (da0:umass-sim0:0:0:0): Retrying command >   (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 3c fd e6 68 00 00 20 00 >   (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > > Is there a way to exercise the free blocks on a ufs disk and move all > defective ones to the bad-block list? > > Or is that already happening in the above scenario? > > The command was >   find . | grep -iv -f ./backup_ignores.txt | cpio -pmd > /mnt/backup_20220919/ > > The disk is about 40% full but I'm wondering if the whole rest of it is > trashed. Buy a new backup disk and back up everything. Better yet, buy more than one and rotate them. For off-line back up disks, I find mobile racks to be more reliable than USB/ Firewire/ eSATA: https://www.startech.com/en-us/hdd/drw150satbk Zero-fill, test, and/or repair the old disk using the manufacturer diagnostic. For example, Seagate: https://www.seagate.com/support/downloads/seatools/ David