Operating System - HP-UX
1851094 Members
2842 Online
104056 Solutions
New Discussion

Re: Error in moving a file

 
Pando
Regular Advisor

Error in moving a file

I was trying to move a file but i got the error:

mv: POST011-200_0446_PR0138_20041118_125135.txt: cannot unlink: No such file or directory

The file was there and I have no idea about the error.

Maximum point for all correct replies.
9 REPLIES 9
Sunil Sharma_1
Honored Contributor

Re: Error in moving a file

Hi,

It seems this file is sym link and source file is no more present.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Steven E. Protter
Exalted Contributor

Re: Error in moving a file

someone whacked the file while you were moving it.

Perhaps the link was circular.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pando
Regular Advisor

Re: Error in moving a file

Is there a way to move it by force?
twang
Honored Contributor

Re: Error in moving a file

check to see whether it is a symbolic link:
# ll POST011-200_0446_PR0138_20041118_125135.txt

then, make a symbolic link from your target dir:
# ln -s /target_dir/POST011-200_0446_PR0138_20041118_125135.txt
john korterman
Honored Contributor

Re: Error in moving a file

Hi,
would the file by any chance be physically located in an NFS mounted directory?
Just a thought...

regards,
John K.
it would be nice if you always got a second chance
Pando
Regular Advisor

Re: Error in moving a file

Hello John K.,

The file is located in Windows 2003 server. I've used CIFS client to mount it to my HP-UX server.

Fernan
john korterman
Honored Contributor

Re: Error in moving a file

Hi again,
I must admit that I know very little about NFS, but my guess is that the user who tried to delete the file does not have the proper rights to do so on the windows server. Can that be checked?


regards,
John K.
it would be nice if you always got a second chance
Fred Ruffet
Honored Contributor

Re: Error in moving a file

This may be related to 8car filename length or case non-sensitive Windows.

what is the result of those commands ?
ls -l POST*
id
(in the directory)

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ivajlo Yanakiev
Respected Contributor

Re: Error in moving a file

Move file from windows server if you can