From owner-freebsd-questions Wed May 9 6:51:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cache1.hck.carroll.com (cache1.hck.carroll.com [216.44.20.19]) by hub.freebsd.org (Postfix) with ESMTP id BD80437B424 for ; Wed, 9 May 2001 06:51:22 -0700 (PDT) (envelope-from damien@carroll.com) Received: from 01.dhcp.hck.carroll.com ([10.64.0.224] verified) by cache1.hck.carroll.com (CommuniGate Pro SMTP 3.2.4) with ESMTP id 2850106; Wed, 09 May 2001 09:51:22 -0400 Date: Wed, 09 May 2001 09:51:21 -0400 From: Damien Tougas To: Walter Betancourt Cc: freebsd-questions@freebsd.org Subject: RE: dump vs tar? Message-ID: <41470000.989416281@01.dhcp.hck.carroll.com> In-Reply-To: <4.2.2.20010509090607.00b2f840@pop3.palace.net> X-Mailer: Mulberry/2.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --On Wednesday, May 09, 2001 09:08:58 -0400 Walter Betancourt wrote: > Damien, > > Could you give me a procedure to use dump to clone a complete hard drive > to a larger drive that would boot and work identical to the original ? The dumping part is easy. The more complicated part is properly partitioning and slicing the disk. I won't get into the details of that, the a good source of documentation on the process is in The Complete FreeBSD by Greg Lehey, and there is some information in the Handbook. Once you have sliced the disk the way you want it and newfs'd it (assuming ad0 is the old disk, and ad1 is the new disk), cloning a filesystem using dump can be done as follows: 1. Mount the new filesystem: # mount /dev/ad1s1a /mnt 2. Clone the filesystem using dump/restore: # cd /mnt # dump -0af - / | restore -rf - 3. Repeat for other filesystems as required: # mount /dev/ad1s1e /mnt # cd /mnt # dump -0af - /usr | restore -rf - etc... Good Luck. --- Damien Tougas Systems Administrator Carroll-Net, Inc. http://www.carroll.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message