Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 1997 08:10:34 -0800 (PST)
From:      Beau James <bjames@cisco.com>
To:        aic7xxx@FreeBSD.ORG, coyote@step.polymtl.ca
Subject:   Re: AHAX94X/copying 2 drives.
Message-ID:  <199711141610.IAA22475@pleco.cisco.com>

next in thread | raw e-mail | index | archive | help
--> 	Technically speaking, what should be the best way to -copy- data
--> from the old drive to the new one?  Is it generally a good idea to "dd
--> if=/dev/sdc of=/dev/sdd bs=512"  (regardless of the actual number of
--> good/bad sectors?)

An "image copy" like this is OK if the two disks are of identical
geometry.

-->                    or should I just recreate the partitions, mount them in
--> the correct trees and then "cp -dpRv /mnt1 to /mnt2"?

Or "dump 0f - /mnt | (cd /mnt2; restore xf -)".  Dump has the smarts to
handle special files in the filesystem (e.g. the contents of "/dev").

--> 	I actually feel like trying the second method, it has worked fine
--> for me for several GB of data already and at least gives the ability of
--> "verifying" the surface when mke2fs'ing with "-c". 

The second approach (using dump, cpio, cp, tar) also has the advantage of
relaying out your files - sort of a Unix defragmenter.

Beau

+-------------------------+---------------------+---------------------------+
+      ||        ||       + Cisco Systems, Inc. + Beau James                +
+      ||        ||       + 170 West Tasman Dr. + Mgr, xDSL Switch S/W      +
+     ||||      ||||      + San Jose, CA   95134+ Phone:     (408) 526-8328 +
+ ..:||||||:..:||||||:..  +                     + FAX:       (408) 527-0495 +
+   Cisco Systems Inc.    +                     + Email:   bjames@cisco.com +
+-------------------------+---------------------+---------------------------+




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