From nobody Sat May 20 18:06:04 2023 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 4QNs8g2bzzz4CLLL for <questions@mlmmj.nyi.freebsd.org>; Sat, 20 May 2023 18:06: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QNs8f3Jjgz3hQW for <questions@freebsd.org>; Sat, 20 May 2023 18:06: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=ipnYIvIn; 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 fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4QNs8c54H0z9tMZ for <questions@freebsd.org>; Sat, 20 May 2023 18:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1684605968; bh=QfGBRt02ZJzOhr+5hqV3e/PcFfFly+zhlP09qhOZn2M=; h=Subject:From:To:Date:In-Reply-To:References:From; b=ipnYIvInlp3jkOPbyR+Rk3lcXxdhPoiSOh0GEQTCA9PKcanxEpRfBCXdAPHw1I1hR 41LvyGWFSoN9NK/R23fjTYmP3JbIx7wsbhYnMuFRvfetI1rk5p/NSsMCn9C0dbCi4l nYUtBXL8CcN5pcw7Ho1aCJ5zm7VcmrgRgkxLI+K0= X-Riseup-User-ID: 17223B57C48F2EE4639E2B7EEAB14821890D297BE396002DA1831E1B04B0B343 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4QNs8c0mZLzJntD for <questions@freebsd.org>; Sat, 20 May 2023 18:06:07 +0000 (UTC) Message-ID: <8c8b91de91d65b99f22d22a65986b9aa619ca866.camel@riseup.net> Subject: Re: Moving to a larger disk From: Ralf Mardorf <ralf-mardorf@riseup.net> To: questions@freebsd.org Date: Sat, 20 May 2023 20:06:04 +0200 In-Reply-To: <CAFYkXjkU1eP=ao40wrNf1M92L9M8eL+tdRAqjFqHNJYmCpnhkw@mail.gmail.com> References: <CAAdA2WOK3HVmJzWkt-1Un=8ytmLcey5Byvs=brtWhVGvw3iPvQ@mail.gmail.com> <aaf85d2f-2639-88fc-e9ba-0d034a1f1398@holgerdanske.com> <CAAdA2WNXFx3MMZvfmFnM_=CwhRb3EbB=KtP2Jf7sYUebV+np=g@mail.gmail.com> <7ddd1225-11d1-01e4-eed9-aea676cc4256@freebsd.org> <CAAdA2WMtS5KEgKXOOryc=uvoFArtAH08D_sEp0cOk2ovPGvtZQ@mail.gmail.com> <CAFYkXjkU1eP=ao40wrNf1M92L9M8eL+tdRAqjFqHNJYmCpnhkw@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions <freebsd-questions.freebsd.org> List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: <mailto:questions+help@freebsd.org> List-Post: <mailto:questions@freebsd.org> List-Subscribe: <mailto:questions+subscribe@freebsd.org> List-Unsubscribe: <mailto:questions+unsubscribe@freebsd.org> Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Spamd-Result: default: False [-4.09 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_SPF_ALLOW(-0.20)[+a:mx0.riseup.net]; 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]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4QNs8f3Jjgz3hQW X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N On Sat, 2023-05-20 at 18:43 +0200, Tomek CEDRO wrote: > dd if=3D/dev/olddisk of=3D/dev/newdisk bs=3D100m status=3Dprogress (DO NO= T > MESS UP OLD DISK AND NEW DISK :-) ) Hi, that's why I would use gparted first or what ever supports the wanted file system and then boot a live media to run cp. cp -ai /mnt/source/* /mnt/source/.hidden_item_1 /mnt/source/.hidden_item_n/= /mnt/target/; echo $? https://man.freebsd.org/cgi/man.cgi?cp Seemingly cp on FreeBSD doesn't support the Linux -T option. I'm not a FreeBSD expert and might be missing something. It at least might be possible to work around the globbing issue by an option of the used shell. Maybe it makes a difference, if at the end of a directory is or isn't a /. If the file system should be supported by Linux I would run a Linux live me= dia and run cp -Tai /mnt/source/ /mnt/target/; echo $? https://manpages.ubuntu.com/manpages/focal/man1/cp.1.html After that I would shut down the machine and boot the live media again, to = clear the caches, before running diff -r /mnt/source /mnt/target > diff.log https://man.freebsd.org/cgi/man.cgi?query=3Ddiff&apropos=3D0&sektion=3D0&ma= npath=3DFreeBSD+13.2-RELEASE+and+Ports&arch=3Ddefault&format=3Dhtml I don't know how FreeBSD diff treats symbolic links. >From a Linux live media I would run diff -r --no-dereference /mnt/source/ /mnt/target/ > diff.log The differences might be "special character files", "sockets" etc. nothing that matters, so you can grep through the log file to see if really something is broken, or all differences are quasi false positives. Regards, Ralf