Date: Sat, 20 May 2023 20:06:04 +0200 From: Ralf Mardorf <ralf-mardorf@riseup.net> To: questions@freebsd.org Subject: Re: Moving to a larger disk Message-ID: <8c8b91de91d65b99f22d22a65986b9aa619ca866.camel@riseup.net> In-Reply-To: <CAFYkXjkU1eP=ao40wrNf1M92L9M8eL%2BtdRAqjFqHNJYmCpnhkw@mail.gmail.com> References: <CAAdA2WOK3HVmJzWkt-1Un=8ytmLcey5Byvs=brtWhVGvw3iPvQ@mail.gmail.com> <aaf85d2f-2639-88fc-e9ba-0d034a1f1398@holgerdanske.com> <CAAdA2WNXFx3MMZvfmFnM_=CwhRb3EbB=KtP2Jf7sYUebV%2Bnp=g@mail.gmail.com> <7ddd1225-11d1-01e4-eed9-aea676cc4256@freebsd.org> <CAAdA2WMtS5KEgKXOOryc=uvoFArtAH08D_sEp0cOk2ovPGvtZQ@mail.gmail.com> <CAFYkXjkU1eP=ao40wrNf1M92L9M8eL%2BtdRAqjFqHNJYmCpnhkw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8c8b91de91d65b99f22d22a65986b9aa619ca866.camel>