Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Feb 2002 11:01:18 -0600
From:      jacks@sage-american.com
To:        freebsd-questions@freebsd.org
Subject:   Using dd to clone HD
Message-ID:  <3.0.5.32.20020209110118.0195ca18@mail.sage-american.com>

next in thread | raw e-mail | index | archive | help
On a FBSD box (4.5-stable) with two identical HDs and in the abscence of a
good IDE HD mirror solution in pursuit of making an exact clone of HD0 to
HD1, I thought I would give "dd" a try. I've seen several postings about
the syntax to use and I'm not completely clear about the "bs=0000"
parameter to use, if one is used at all. I seen:

dd bs=4096k if=/dev/ad0 of=/dev/ad1
or...
dd if=/dev/ad0 of=/dev/ad1 bs=8192

or... that the bs should be set to 2048 for "faster" copy.

Questions:
1) Will the above make an exact clone of identical HD0 to HD1..??
2) Should the the "bs" be used..??
3) If "bs" should be use, how do I determine which one: 2048, 4096, 8192...??
4) should bs be used as in #1 or #2 or both okay..??

I suspect this can screw up the HD if not careful.... so any expert tips
appreciated.


Best regards,
Jack L. Stone,
Server Admin

===================================================
Sage-American 
http://www.sage-american.com
jacks@sage-american.com

"My center is giving way, my right is in retreat;
....situation excellent! ....I shall attack!"
===================================================

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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