Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2006 21:04:12 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        eksffa@freebsdbrasil.com.br
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: cloning a FreeBSD HDD
Message-ID:  <20060328.210412.18287651.imp@bsdimp.com>
In-Reply-To: <4429972C.5030806@freebsdbrasil.com.br>
References:  <44296F41.1050209@osoft.us> <4429959B.4070209@elischer.org> <4429972C.5030806@freebsdbrasil.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <4429972C.5030806@freebsdbrasil.com.br>
            Patrick Tracanelli <eksffa@freebsdbrasil.com.br> writes:
: 
: >> I heard its faster if you use two dd's; i.e:
: >>
: >>    # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k
: >>
: >> allowing read and write to proceed in parallel.
: > 
: > 
: > that's what ddd and 'team' are for.
: > I don't know if ddd is in the ports as it may clash inname with teh 
: > debugger ddd
: > They internally fork and use several processes synchronised in some manner.
: 
: Isn't dump+restore and a couple of fdisk+bsdlabel trick to copy the 
: source partitioning a better choice to "clone" this HDD?

Yes.  That's what I *ALWAYS* do, because hard drives are never the
exact same size.

fdisk -I makes the fdisk part easy.  bsdlabel -R makes the disklabel
cloning relatively painless.

dump + restore is slow but reliabe.

Warner



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