Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would copy the content of a directory mounted remotely in my tmp folder. Using the command: CTNML003[50] cp -r /p/demofolder .

i obtain only for some file this kind of erro: cp: cannot stat `/p/demofolder/layout/blabla/bb/sdf/sdf/fsdf/sdfds/master.tag': No such file or directory

cp: cannot stat

but the master.tag file exists... could be a network problem or a cp problem?

share|improve this question

If it were a general network issue I would not expect it to always error at the same location.

The first thing I would suggest looking at is access rights. The user account used for accessing the network share might have the right to read the directory (and so see the file exists) but not access the file itself at all. It could also be that the file is locked by another process elsewhere. While both of these issues would normally result in an explicit "permission denied" error condition, depending on the network file access protocol you are using the condition could be being misreported.

Another possibility is that the path is too long for something along the way to handle - the example you give implies that the directory structure is quite deep. What protocols are you using and how long is the real path to the file? Does the operation succeed for files with the same or longer full path?

share|improve this answer

yes its likely to be a network issue

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.