From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32122 invoked from network); 11 Dec 1999 01:17:07 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 11 Dec 1999 01:17:07 -0000 Received: from apollo.astro.washington.edu (apollo.astro.washington.edu [128.95.98.50]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA13964 for ; Fri, 10 Dec 1999 20:17:06 -0500 Received: from localhost (reschke@localhost) by apollo.astro.washington.edu (8.8.7/8.8.7) with ESMTP id RAA16561 for ; Fri, 10 Dec 1999 17:16:35 -0800 X-Authentication-Warning: apollo.astro.washington.edu: reschke owned process doing -bs Date: Fri, 10 Dec 1999 17:16:35 -0800 (PST) From: Chance Reschke To: axp-list@redhat.com Subject: Re: Installing five identical systems... In-Reply-To: <199912110006.RAA30883@ellpspace.math.ualberta.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > > then you can do a dd, example > > > > > > dd if=/dev/sda of=/dev/sdb > > > > > > > This is the correct way to duplicate disks. > > Provided that both disks you are using are **really** identical > and very often they are not even if nominally they are. It often > works but it very far from a guaranteed way. Depending on relative > **actual** sizes you may either end up wasting parts of your target > disk which will become inaccesible, or writing a partition table > which claims that there is more available blocks than in reality. For identical disks the dd method works reliably. For non-identical disks, as long as the target disk is as large as the source disk it's safe if not not efficient. > > > Using cp or other > > file-system-level tools requires you to: > > > > first partition the target disk exactly like the source disk > > Totally incorrect. And exactly **because** you may use different disks > and partition and format (say, with different block sizes or i-node > density) them differently this is in general a preferred way. No, not totally incorrect. The question was how to duplicate, not how to make a similar copy. To make a similar copy you're fine creating target partition sizes different than the source, then using something like tar/cpio/cp to copy files. Just be sure your target partitions are big enough to hold everything. - C