Date: Sun, 21 Nov 1999 10:29:10 -0600 (CST) From: David Scheidt <dscheidt@enteract.com> To: Edward Knight <efknight@bellsouth.net> Cc: "questions@FreeBSD.ORG" <questions@FreeBSD.ORG> Subject: Re: copying filesystems into larger disk Message-ID: <Pine.NEB.3.96.991121102117.84569B-100000@shell-2.enteract.com> In-Reply-To: <3837D44A.A4D8544F@bellsouth.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Nov 1999, Edward Knight wrote: > My original FBSD disk is running out of space. I got a larger disk and > partitioned it > for FBS, created larger filesystems with the same mount points using the > minimal instalation. > > Now I want to use cpio to copy the filesystems from the old disk to the > new one. I think this is what I need to do, please correct me if I'm > wrong. > > From / in the old disk do find . -depth -print > /usr/tmp/fs.cp Faster and easier to do this in a pipe: mount your new disk as /newroot, and the filesystems that will live on it as /newroot/var, /newroot/usr, etc. tar cf - / /var /usr | ( cd /newroot && tar xf -) You could do the same thing with a find|cpio|cpio pipeline as well. David Scheidt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.991121102117.84569B-100000>