December 1, 201213 yr Today I stumbled upon problem. I tried to delete a directory from my server with an attached Windows 7 laptop. I got a message that it could not be deleted because it was open in another program. I then tried to delete the file in a telnet session with MC. I still can't delete the directory because it is not empty. There is indeed a file like shown in the attachment. Where does this file come from and how to delete it? It's over 38 GByte.
December 1, 201213 yr Found the below online. It sounds like the file was attempted to delete, but it is in use somehow. I would maybe reboot the unraid server and see if you can delete it then? Just a guess though. Hidden files are created by the fuse high-level user-space library. Unix supports references and access to deleted files, but that's not something most fuse applications handle. So the fuse user-space library acts the same way as NFS, in that deletions are 'soft' as long as references remain. Instead of actually deleting the file, it is renamed to '.fuse_hidden...' until the last reference is released. This is part of the FUSE user-space library, and is correct behavior. There is a hard_remove mount option for FUSE that you can use if your program allows passing in additional fuse flags (or modify the program to do so). The downside is that the filesystem would no longer have access to files that were open while deleted, so it may behave poorly. Some filesystems will track references themselves and may disable soft deletes by default. Also, programs that use the FUSE low-level API won't do this.
December 2, 201213 yr Disable Network Services, i.e., SMB, AFP, NFS, in the Settings tab. Then try. A reboot may be required.
December 2, 201213 yr The following command can remove directories whether in use or not. Use with great caution. If used incorrectly (especially with wildcards) you can delete everything on your system. rm -rf ExactDirectoryName Linux interprets wildcards ( * or ? ) differently than Windows in some cases. If you are unable to remove the directory with any of the above suggestions, this will work.
December 16, 201213 yr The following command can remove directories whether in use or not. Use with great caution. If used incorrectly (especially with wildcards) you can delete everything on your system. rm -rf ExactDirectoryName Linux interprets wildcards ( * or ? ) differently than Windows in some cases. If you are unable to remove the directory with any of the above suggestions, this will work. You'd think it would... I sure as hell did... but it doesn't. It returns: rm: cannot remove `FOO': Directory not empty You can rm the .fuse_hidden file, but it just adds another after incrementing the number after .fuse_hidden.
Archived
This topic is now archived and is closed to further replies.