From owner-freebsd-isp Wed Feb 19 4:22:18 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 7B4AA37B401 for ; Wed, 19 Feb 2003 04:22:16 -0800 (PST) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE61043FA3 for ; Wed, 19 Feb 2003 04:22:14 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd06.sul.t-online.de by mailout10.sul.t-online.com with smtp id 18lTEU-0006ad-08; Wed, 19 Feb 2003 13:21:50 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[217.229.221.227]) by fmrl06.sul.t-online.com with esmtp id 18lTEL-0sIsoyC; Wed, 19 Feb 2003 13:21:41 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id h1JCLe8Z045628; Wed, 19 Feb 2003 13:21:40 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.7/8.12.7) with SMTP id h1JCLe9k001654; Wed, 19 Feb 2003 13:21:40 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 19 Feb 2003 13:21:39 +0100 From: Alexander Leidinger To: Darren Pilgrim Cc: shaun@crystal.com.au, adrianbsd@globalpc.net, freebsd-isp@FreeBSD.ORG Subject: Re: Symantec Ghost-like app for UFS? Message-Id: <20030219132139.56e85b5c.Alexander@Leidinger.net> In-Reply-To: <3E534C0B.4000105@pantherdragon.org> References: <5.1.1.6.2.20030217190503.0626c2d8@globalpc.net> <3E52E523.5010606@crystal.com.au> <3E534C0B.4000105@pantherdragon.org> X-Mailer: Sylpheed version 0.8.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net 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 On Wed, 19 Feb 2003 01:19:07 -0800 Darren Pilgrim wrote: > > 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 I would use a dump | restore combo... > > 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. As we are talking about UFS: no it doesn't. Even on an empty disk and a file with a fraction of the size of the disk you will end up with "fragmented" blocks. UFS doesn't write the data as one large chunk, it "spreads" it all over the disk. If the previous filesystem switched to "optimize for space", there may be a little benefit for some files, but generally there's absolutely no need to "defragment" a UFS partition. Bye, Alexander. -- It is easier to fix Unix than to live with NT. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message