> I want to basically take hda and copy it to hdc.
> I found out the hard way that copying /* also
> takes /proc, which isn't very fun...

If the drives are exactly the same size, you would use 'dd' to read the raw
hda filesystem and copy it to hdc.  If not, you can use copy -ax to copy the
path.  The -a does the same thing as -dpR (copy symbolic links instead of
the file they point to, preserve file attributes, Recurse), and -x tells it
not to cross other mounted filesystems.  So if, say, /usr is a separate
partition from /, a 'cp -ax / /mnt/newdrive' would copy everything but /proc
and /usr (and /mnt/newdrive :).

Or, the cool way, go into /mnt/newdrive, and do '(cd /; tar clf - .) | tar
xf -'  :)

--
Ben Reed a.k.a. Ranger Rick ([EMAIL PROTECTED])
http://defiance.dyndns.org/ / http://radio.scenespot.org/
Now playing on Defiance Radio: Impact (The Earth Is Burning) by Orbital


Reply via email to