From owner-freebsd-isp Wed Feb 19 1:19:20 2003 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AA3137B401 for ; Wed, 19 Feb 2003 01:19:19 -0800 (PST) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AE3043F75 for ; Wed, 19 Feb 2003 01:19:18 -0800 (PST) (envelope-from dmp@pantherdragon.org) Received: from sparx.techno.pagans (12-224-208-117.client.attbi.com [12.224.208.117]) by spork.pantherdragon.org (Postfix) with ESMTP id 2871FFFE3; Wed, 19 Feb 2003 01:19:17 -0800 (PST) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.techno.pagans (Postfix) with ESMTP id B5C39AA8F; Wed, 19 Feb 2003 01:19:08 -0800 (PST) Message-ID: <3E534C0B.4000105@pantherdragon.org> Date: Wed, 19 Feb 2003 01:19:07 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Shaun Dwyer Cc: Adrian Gonzalez , freebsd-isp@freebsd.org Subject: Re: Symantec Ghost-like app for UFS? References: <5.1.1.6.2.20030217190503.0626c2d8@globalpc.net> <3E52E523.5010606@crystal.com.au> In-Reply-To: <3E52E523.5010606@crystal.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Shaun Dwyer wrote: > I did this recently on one of my machines using tar... > > the procedure is: > > do minimal install on new disk for the purposes of creating > partitions and installing the bootloader etc, > > boot off old disk in single user mode, mount new drive and then use > tar to the following... for example, to do /usr, > > cd /usr tar cvf - --one-file-system * | tar xf - -C /mnt/new_usr A "more proper" incantation would be: tar lcvf - -C /usr . | tar xpf - -C /mnt/new_usr Using -C is a matter of preference, and -l == --one-file-system. The major point here is the p option which makes tar create the targets files with the same perms as the sources. > This is the way to do it if you are moving to a different sized disk > and want to change the paritition sizes. It "defrags" the filesystem, too, for those so inclined to believe in defragging. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message