1834732 Members
2834 Online
110070 Solutions
New Discussion

Re: cpio problems

 
dictum9
Super Advisor

cpio problems


I auto-mounted one filesystem and am trying to cpio it to another (There wasn't enough space on the source box to create a tar ball)
I got a few errors and using "du" I can see that it didn't copy the whole thing.


find . -depth -print | cpio -pd /new_dir

...

Cannot open .
open: Permission denied
Cannot open .
open: Permission denied
Cannot open .
open: Permission denied
Cannot open .
open: Permission denied
Cannot open .
5481600 blocks

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: cpio problems

Do you have read permission on those files? And if you are root, do you have root permission if they are over NFS?

>There wasn't enough space ...

You do know you can use tar with a pipe?
$ cd target
$ tar -cf - -C source-dir | tar -pxf -
Reshma Malusare
Trusted Contributor

Re: cpio problems

hi etc,
Check the access permissions on those files.

Regards
Reshma