Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 02:22:31 +0200
From:      Polytropon <freebsd@edvax.de>
To:        krad <kraduk@googlemail.com>
Cc:        Chris <racerx@makeworld.com>, freebsd-questions@freebsd.org
Subject:   Re: Disk Cloning
Message-ID:  <20090929022231.9a92783f.freebsd@edvax.de>
In-Reply-To: <d36406630909281707k5c2e9cb6id46400594643cf7@mail.gmail.com>
References:  <20090928011444.29110022@chris.makeworld.com> <20090928213703.ecf59a9d.freebsd@edvax.de> <d36406630909281707k5c2e9cb6id46400594643cf7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Sep 2009 01:07:31 +0100, krad <kraduk@googlemail.com> wrote:
> If your going to do all the partitoning manually its not to much more work
> to newfs them as well.

Partitioning can be automated, as well as newfs, which does
take only seconds on a TB-sized disk. If you want to avoid
this, doing 1:1 copies with dd is always possible and will
keep content identically; remember to copy the MBR separately
with bs=512 and count=1 from the /dev/ad{source} device.

If cloning is just a "do once" action, even partitioning
the target disk manually is a matter of seconds. If you're
going to to it many times, scripting should give a good
solution to automate it.



> You can then use rsync which is fast.

If partitions do already exist, rsync is an excellent tool,
too, I agree. Another tool that comes into mind is cpdup
which works fine with locally available and NFS mounted
drives.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090929022231.9a92783f.freebsd>