I have a directory /data/ which have a corrupted zip file (not sure it is corrupted?). Everytime i type any command with this file will hang and cannot cancel with Ctrl+c OR Ctrl+z. (This is a share server)

When i type strace ls -l in the directory, the process will stop at lstat("4790027.zip".

Below is last few line of dmesg

futex(0x7f3ca5c1f8f8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
getdents(3, /* 5 entries */, 32768)     = 176

If i wan to remove all the directory with strace rm -rf /data/

The process also will stop at the zip file

fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFDIR|0777, st_size=0, ...}) = 0
fcntl(3, F_GETFL)                       = 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_NOFOLLOW)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fcntl(3, F_DUPFD, 3)                    = 4
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getdents(3, /* 5 entries */, 32768)     = 176
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
unlinkat(4, "4790027.zip", 0    

This is the filesystem

Filesystem               Type    
//        cifs    

How can i remove/delete this file Or this directory?
Im new in linux by the way appreciate your help


This is a remote filesystem so there is nothing further you can do on your local machine.

Contact the administrator of the remote system and explain the issue to them. It should be possible for them to remove the file directly from the fileserver

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.