From owner-freebsd-questions Sun Nov 21 8:29:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.enteract.com (mail.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id D7D2514C48 for ; Sun, 21 Nov 1999 08:29:12 -0800 (PST) (envelope-from dscheidt@enteract.com) Received: from shell-2.enteract.com (dscheidt@shell-2.enteract.com [207.229.143.41]) by mail.enteract.com (8.9.3/8.9.3) with SMTP id KAA72992; Sun, 21 Nov 1999 10:29:10 -0600 (CST) (envelope-from dscheidt@enteract.com) Date: Sun, 21 Nov 1999 10:29:10 -0600 (CST) From: David Scheidt To: Edward Knight Cc: "questions@FreeBSD.ORG" Subject: Re: copying filesystems into larger disk In-Reply-To: <3837D44A.A4D8544F@bellsouth.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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