dd syntax
Andy Farkas
andyf at speednet.com.au
Thu Jul 24 16:33:03 PDT 2003
On Thu, 24 Jul 2003 mbaki at whywire.net wrote:
> I have a freebsd 5.1 machine with 2 harddrives ad0 and ad2. I need to duplicate ad2 to a 3rd
> hardrive so what I did is the following:
>
> dd if=/dev/ad2 of=freebsd5.1.bin
>
> Now when I'm done dd'ing, I can replace ad2 with the harddrive and issue the command
> dd if=freebsd5.1.bin of=/dev/ad2
>
> Both harddrives are exactly the same, so hopefully the following steps should work, correct?
Yep, thats exactly what you do.
Add a 'bs=64k' to the dd command line for better copying efficiency.
--
:{ andyf at speednet.com.au
Andy Farkas
System Administrator
Speednet Communications
http://www.speednet.com.au/
More information about the freebsd-questions
mailing list