From owner-freebsd-questions@FreeBSD.ORG Wed Nov 8 02:55:50 2006 Return-Path: X-Original-To: FreeBSD-Questions@freebsd.org 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 24DA816A416 for ; Wed, 8 Nov 2006 02:55:50 +0000 (UTC) (envelope-from dkelly@HiWAAY.net) Received: from bee.hiwaay.net (bee.hiwaay.net [216.180.54.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A35043D58 for ; Wed, 8 Nov 2006 02:55:49 +0000 (GMT) (envelope-from dkelly@HiWAAY.net) Received: from [10.0.0.2] ([216.186.148.249]) (authenticated bits=0) by bee.hiwaay.net (8.13.8/8.13.8) with ESMTP id kA82tVxX1162107 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Tue, 7 Nov 2006 20:55:36 -0600 (CST) In-Reply-To: <20061107234435.GB74330@Grumpy.DynDNS.org> References: <003a01c6ee0a$841e74f0$6908a8c0@pcmoperations> <20061012182206.GA81008@Grumpy.DynDNS.org> <452FE303.90002@tco2.thecompanyonline.com> <452FEAD6.7030800@tomjudge.com> <4550FF54.80908@tco2.thecompanyonline.com> <20061107234435.GB74330@Grumpy.DynDNS.org> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Kelly Date: Tue, 7 Nov 2006 20:55:34 -0600 To: FreeBSD-Questions@freebsd.org X-Mailer: Apple Mail (2.752.3) Cc: Richard McIntyre Subject: Re: Hard Drive Issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2006 02:55:50 -0000 Thinking about this a bit more. Don't mount all your new partitions before starting dump. Only mount the new root at /mnt. I think you *can* mount them all in advance but there are two sets of mode bits which apply to a mounted filesystem, those of the filesystem, and those of its mount point. I think if you let restore create the mount points you will most accurately clone the permissions. /tmp is particularly different. On Nov 7, 2006, at 5:44 PM, David Kelly wrote: > Use dump to read the old drive one partition at a time piped thru > stdout > into restore. Double check the following as I'm typing off the top > of my > head: > > # dump -0af - / | ( cd /mnt; restore -rf - ) In copying / you should now have the mount points for other filesystems. # mount /dev/ /mnt/etc > # dump -0af - /etc | ( cd /mnt/etc; restore -rf - ) # mount /dev/ /mnt/var > # dump -0af - /var | ( cd /mnt/var; restore -rf - ) ... -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.