[MOVED] Can't delete file No such file or directory
[Note: The Groups area will soon be archived. This topic has been moved to the new community discussion area, so head over and check it out.]
Hi , one of my machine is a nfs client to a netapp storage where I store all the web content.
There are some files that I'm not able to delete from the NFS client, that have a weird signature for example one of these file is named
denytest.htmlÃ
When i try to remove this file with the command rm -i denytest.htmlà I get this error "No such file or directory".
I tried several different solutions including deleting the file from the inode number.
Wha is very baffling is that if I run the command touch denytest.htmlà and then ls -il the directory I see more files like this popping in the directory :
466919 -rw-r--r--. 1 user some-grp 116 Oct 12 2010 denytest.htmlÂ
466918 -rw-r--r--. 1 user some-grp 118 Aug 17 11:33 denytest.html
780685 -rw-r--r--. 1 root root 0 Aug 17 11:33 denytest.htmlÃ?Â?
780684 -rw-r--r--. 1 root root 0 Aug 17 11:25 denytest.htmlÃ?
780686 -rw-r--r--. 1 root root 0 Aug 17 11:33 denytest.htmlÃ?Â
780685 -rw-r--r--. 1 root root 0 Aug 17 11:33 denytest.htmlÃ?Â?
If i touch the same file I get more files like the one above:.
If I try to remove the file again with the command rm -i denytest.html� I actually get the prompt : remove regular file denytest.htmlà '? and after I see yes I see no errors but whe I ls -l the file is still there, but with a different signature:
?????????? ? ? denytest.htmlÂ
I run all sorts of fsck on the mount and the filesystem seems ok no errors .
I suspect that this has something to do with UTF-8 when webmasters update the web content or these files are the rusult of a porting from a MacOs X system and there is some type of incompatibility.
In any case I'm not able to remove these file from the system neither the directory where this file is included. The only thing I'm able to do is to copy the entire dir to another dir and when I do this the file in question is not copied over the new directory I get an error saying "No such file or directory".
I need to remove this file from the system and I have other 20 files like this any suggestions would be very welcomed .
Thanks
Marcello