Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 523  / 2 Years ago, thu, february 10, 2022, 5:18:00

I have a directory in my home dir, but I am unable to remove it in any ways.



Using rm -rf JsZ-r6K.50/ crashes the konsole. I also tried to use sudo rm, but it is the same.



drwxr-xr-x  3 volkan volkan     4096 Nov  5 03:19 .installjammerinfo/
drwxrwxr-x 4 volkan volkan 4096 Aug 6 15:28 .java/
drwxr-xr-x 2 volkan volkan 86122496 Nov 8 22:25 JsZ-r6K.50/
drwx------ 5 volkan volkan 4096 Nov 8 02:58 .kde/


How can I remove this directory?



EDIT:



volkan@ubuntu:~$ lsattr -d JsZ*
----------I--e-- JsZ-r6K.50


EDIT for OmPs:



I moved the file into /var/tmp/newname, but I cannot remove it from there either. The following commands failed also, they freezed the console.



Only the lsof command gave the following:



COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
bash 3935 volkan cwd DIR 8,6 86122496 914129 new
rm 4177 volkan 3r DIR 8,6 86122496 914129 new
rm 4177 volkan 4r DIR 8,6 86122496 914129 new

More From » bash

 Answers
5

Warning, what's below is quite dangerous, backup your data before :



You may have a script running into that folder... (your lsof show a bash command)



be sure to be out of the folder and with administrative rights (sudo or root.)



Kill all possible process that access to that folder :



kill -9 `lsof -t /MyFolder`


then you'll be able to remove it :



rm -rf /MyFolder


MyFolder being the folder you want to be removed.



If it doesn't work, please show us what the mount command output



Best regards.


[#28493] Friday, February 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
errettas

Total Points: 160
Total Questions: 118
Total Answers: 91

Location: Laos
Member since Fri, Sep 11, 2020
4 Years ago
;