dd is a raw copy. In cases like this when you want to shift a
full partition, time is secondary. It is a one time job.

A "dd" would do  raw copy of of the whole thing  inclusive of 
existing fragmented spaces. When you do dd of stuff like /usr 
which may be over 1 gig, the target media  should be at least 
of that size if not larger. Secondly dd of all mounted parti-
tions should be avoided ...

cp -a (or dpR) would copy everything in a logical order with
fragmentation minimised and  all attributes  and permissions
perfectly retained. With cp you also have the option of mov-
ing different parts of the  same  partition  to two or  more
seperate partitions (e.g. segregate /usr/local from /usr and
mount them seperately through fstab).

I would definitely go by what Mithun has also advocated.

Just my 2p

Bish

On Mon, Mar 18, 2002 at 10:51:42AM +0530, Kalyan wrote:
> is dd not faster than cp ?
> 
> Kalyan
> 
> 
> >To make a replica of existing directory to another hard disk,
> >after making the partitions, and mkfs, all that is needed is
> >
> >#cp -a <sourcedir> <destdir>
> >
> >All files, dirs, links and fifos with original ownerships and
> >permissions would be copied.
> >
> >You may use "cp -dpR" as well.
> >
> >There is no need for "dd".
> >
> >HTH
> >
> >Bish
> >
> >

--
:
####[ Linux One Stanza Tip (LOST) ]###########################
  
Sub : Searching for strings in files                 LOST #172

In order to search for a string in some files, use:
grep "string" filename1 [filename2 filename3 ...]
This will  print out the  filename  and the  lines in the file 
that contain the string.  Type 'man grep' for details.

####<From : freebsd fortune>##################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to