AHAX94X/copying 2 drives.

Beau James bjames at cisco.com
Fri Nov 14 08:11:15 PST 1997


--> 	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 at cisco.com +
+-------------------------+---------------------+---------------------------+




More information about the aic7xxx mailing list