cloning a FreeBSD HDD

Khaled Hussain khaled at ipbill.com
Tue Apr 4 10:14:32 UTC 2006


Hi guys,

Why does everyone talk about dump+restore as a pair? I thought it was
possible just to dump a filesystem to a different hard disk i.e.
dump -0a -f /dev/ad2 /

Also, how can I find out which /boot/boot# file a freebsd system is using by
default?

Kind Regards

Khaled

> -----Original Message-----
> From: owner-freebsd-hackers at freebsd.org
> [mailto:owner-freebsd-hackers at freebsd.org]On Behalf Of M. Warner Losh
> Sent: 29 March 2006 05:04
> To: eksffa at freebsdbrasil.com.br
> Cc: freebsd-hackers at freebsd.org
> Subject: Re: cloning a FreeBSD HDD
>
>
> In message: <4429972C.5030806 at freebsdbrasil.com.br>
>             Patrick Tracanelli <eksffa at 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
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>



More information about the freebsd-hackers mailing list