From: Chance Reschke <reschke@astro.washington.edu>
To: axp-list@redhat.com
Cc: Helge Kreutzmann <kreutzm@itp.uni-hannover.de>
Subject: Re: Installing five identical systems...
Date: Fri, 10 Dec 1999 13:05:28 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.04.9912101139210.16297-100000@apollo.astro.washington.edu> (raw)
In-Reply-To: <Pine.LNX.4.10.9912101253120.7805-100000@talisman.mv.com>
>
> cp isn't always a good way to do it, especially from a currently mounted
> filesystem. The best I've found is:
>
> Create your system, setup how you want all of them to look
> Put that disk into a machine, along with your blank, and boot from a
> third.
>
> So the machine has 3 disks, the original, the blank, and the disk you're
> running from.
>
> then you can do a dd, example
>
> dd if=/dev/sda of=/dev/sdb
>
> now this will work perfectly if the disks are the same size, if they are
> different sizes then things get a little tricky! You can also do this to a
> file, then dd the file out to disks again. The other things with the file
> is that you can mount it via the loop driver and delete things like /proc
> that you don't want copied!
>
> It's not good just to copy or dd from the disk the system is running on,
> remember that as you copy, files are going to change on the disk (logs
> etc....) not good!
This is the correct way to duplicate disks. Using cp or other
file-system-level tools requires you to:
first partition the target disk exactly like the source disk
then create filesystems on each partition
then initialize the swap partitions
then mount each partition
then copy the contents of each partition
dd just makes an exact block-wise copy of the source onto the target in a
single step. Do not do this with live filesystems on the source disk.
Using fsk to check the validity of the target isn't a reliable check
because the copy is done below the filesystem level.
If you create a minimal system which allows you to boot from a diskette
and connect to a network, you can perform this type of disk duplication
over your LAN (dd if=/dev/sda | rsh somehost 'dd of=/dev/sda').
- C
next prev parent reply other threads:[~1999-12-10 21:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-10 15:12 Installing five identical systems Jen-Shiang Yu
1999-12-10 15:39 ` Helge Kreutzmann
1999-12-10 16:01 ` Michal Jaegermann
1999-12-10 17:57 ` Rich Payne
1999-12-10 18:36 ` Greg Lindahl
1999-12-10 19:21 ` Rich Payne
1999-12-10 21:07 ` Larry Snyder
1999-12-12 12:21 ` marbud
1999-12-10 21:05 ` Chance Reschke [this message]
1999-12-10 22:15 ` Greg Lindahl
1999-12-11 17:53 ` Jack Wathey
1999-12-13 20:43 ` Chance Reschke
1999-12-13 21:07 ` Greg Lindahl
1999-12-14 8:57 ` Christian Iseli
1999-12-14 18:18 ` Greg Lindahl
1999-12-14 20:37 ` Christian Iseli
1999-12-11 0:06 ` Michal Jaegermann
1999-12-11 1:16 ` Chance Reschke
1999-12-10 15:47 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1999-12-10 15:19 Mike Foley
1999-12-10 23:22 ` Antonio S. Martins Jr.
1999-12-10 15:24 nm
1999-12-10 16:51 Paul Bunn
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox