However,
cp -dpRa /* /mnt/<newdrive>
-does- do the job properly; it complains that it is skipping the recursive copy of /mnt/<newdrive>, and gets it done.
As for speed, I've used both techniques, and I think the above cp is faster, but I could be wrong... YMMV.
And if you have a separate /boot partition, that probably needs to be copied as a whole partition, not a system full of files (in my experience).
Best, rgh.
Ow Mun Heng wrote:
On Tue, 2005-04-05 at 10:06 +0200, Bjoern Michaelsen wrote:
On Tue, Apr 05, 2005 at 02:59:07PM +0800, Ow Mun Heng wrote:
Do not use cp, it doesn't preserve permission bits.cp -a does and is much faster than rsync.
if you want to populate new hard drive w/o anything on it. I suggest you use Tar as it is faster and it uses block copy rather than char-by-char.
(sys-apps/coreutils-5.2.1-r4)
-- gentoo-user@gentoo.org mailing list