From owner-freebsd-questions@FreeBSD.ORG Sat Jun 7 12:55:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABDC937B401 for ; Sat, 7 Jun 2003 12:55:54 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D97F443FDD for ; Sat, 7 Jun 2003 12:55:53 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.20) id 19Ojn7-000ANp-7x for questions@freebsd.org; Sat, 07 Jun 2003 20:55:53 +0100 Date: Sat, 7 Jun 2003 20:55:53 +0100 From: Jez Hancock To: questions@freebsd.org Message-ID: <20030607195553.GB39573@users.munk.nu> Mail-Followup-To: questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Disk copy -- WAS: Re: Can you copy freebsd from one of mypresent machine and load itto a new X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2003 19:55:55 -0000 Not sure what happened to the original poster here... Anyway I was just thinking there's the system util 'pax' which is very good for copying filesystems (handles permissions, symlinks, irregular files quite well). There's a few lines on it in one of the FreeBSD articles I think... mmm ok it's quite a small section - 4.2 in this article: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/x211.html The text is here: > 4.2 Copying the Contents of Disks > Submitted By: Renaud Waldura () > > To move file from your original base disk to the fresh new one, do: > > # mount /dev/ad2 /mnt > # pax -r -w -p e /usr/home /mnt > # umount /mnt > # rm -rf /usr/home/* > # mount /dev/ad2 /usr/home I've used pax in the past to migrate filesystems with success. Jez