From nobody Sat Apr 15 20:47:21 2023 X-Original-To: freebsd-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 4PzQNr4hqcz453K7 for ; Sat, 15 Apr 2023 20:47:24 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PzQNr2crmz3NkM for ; Sat, 15 Apr 2023 20:47:24 +0000 (UTC) (envelope-from johnl@iecc.com) Authentication-Results: mx1.freebsd.org; none Received: (qmail 89075 invoked from network); 15 Apr 2023 20:47:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=15bf1.643b0d5b.k2304; bh=COayeAMlBScNj1wF/zEgLfnJI7Vp/NbynG0FmnFlK9c=; b=deZZ/GB8s9WMkMbfXjzBr18WtwsOZGoPzVQWN/XvjoCLqmCwnVNRHaAMebJyEDXT3iDSSsZQIwX8LYRfNPcHYikdO6oou32gydTngwKppTYcZjV5QBJNlO8VmDcgZf/iSR2z6NuSqncF8erS7nPCXzhdSRhgaR4GrcZJGRAVoLhdrmEWKGOnEqKen4GIda2sm0DmWVdx9960Y2+3xEezJuKE57n6VAdA+lMTZvWBbMkQhtxrPQZfPaRfKABPMlP+2ZZ8H0dnHesGVNdbPQgImJMGIN/ZaH5rQmnPLTSYRBDO4gKIeF/0mg/iL4z/C3kI2IOm9Al7qIbvPXM6ZB3hgw== Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 15 Apr 2023 20:47:22 -0000 Received: by ary.qy (Postfix, from userid 501) id DD803BF2E2EA; Sat, 15 Apr 2023 16:47:21 -0400 (EDT) Date: 15 Apr 2023 16:47:21 -0400 Message-Id: <20230415204721.DD803BF2E2EA@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: freebsd@dreamchaser.org Subject: Re: frequent disk error, need guidance In-Reply-To: Organization: Taughannock Networks X-Headerized: yes Cleverness: minimal 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 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 4PzQNr2crmz3NkM X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N It appears that Gary Aitken said: >of fbsd in such cases), wanted to see if the following is a good way >to copy the old disk to the new one. > >mount /dev/ada1p2 /mnt/newsys >cd /mnt/newsys >dump -0 -f - /dev/ada0p2 | restore -r -Dv -f - > >However... this is a running system, which seems unlikely to produce >a consistent result. I'd shut down to single user, make a /.snap directory, and do dump -L to tell it to make a snapshot before dumping. That should work OK.