[lug] adding a new disk to a system

D. Stimits stimits at idcomm.com
Sun Sep 2 09:36:14 MDT 2001


Rob Riggs wrote:
> 
> How is tar or cpio any better with links than 'cp -a'? You have the same
> problems with hard links with tar and cpio (AFAIK) and 'cp -a' handles
> symlinks just fine. And the average Linux system has few, if any, hard
> linked files these days so it's generally not an issue.

I've had cp -a fail with trying to migrate complete partitions when it
got to /dev/ special files. I don't know why it failed, but it did. cpio
worked. I guess tar versus cpio or cp also have different memory
footprints, one might have different restrictions than the other on
systems low on memory. I also had problems with cp during a filesystem
migration because I do happen to have some directories with multiple
hard links on individual files (this is on purpose as a way to have a
non-sym linked cvs tree that has a second "view" for compiling and
developing...cvs tends to dislike sym links).

D. Stimits, stimits at idcomm.com

> 
> Hugh Brown wrote:
> 
> >cp doesn't deal well with links and it is not as effecient as some of the
> >other methods.
> >
> >It has failed me, which is why I opted for the tar method first.
> >
> >Hugh
> >
> >"Rob Riggs"
> >
> >>I've always used 'cp -a <src> <dest>'. It's short, sweet and easy to
> >>remember. And it has never failed me.
> >>
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list