LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't delete or look into a directory (https://www.linuxquestions.org/questions/linux-software-2/cant-delete-or-look-into-a-directory-938166/)

carlosestensser 04-04-2012 07:28 PM

Can't delete or look into a directory
 
I have an old directory I haven't been able to delete or look inside for years.
It's an old Spideroak directory and I can't remove it by doing
rm -Rf
as root.
When I try to remove it or do
ls
it hangs forever with no error message.
Any suggestions?

unSpawn 04-04-2012 07:52 PM

What does 'stat /path/to/directoryname; lsattr /path/to/directoryname' return?

carlosestensser 04-04-2012 08:35 PM

Code:

$ stat .SpiderOak/
  File: «.SpiderOak/»
  Size: 4096            Blocks: 8          IO Block: 4096  directorio
Device: 811h/2065d      Inode: 19333358    Links: 3
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  darwin)  Gid: ( 1000/  darwin)
Access: 2012-04-04 20:53:37.000000000 -0300
Modify: 2011-02-22 15:14:22.000000000 -0300
Change: 2011-03-11 10:57:13.000000000 -0300

$ lsattr .SpiderOak/
--------------I---- .SpiderOak/fs_notify

Inside that, I have another directory

Code:

$ stat fs_notify/
  File: «fs_notify/»
  Size: 156733440      Blocks: 306432    IO Block: 4096  directorio
Device: 811h/2065d      Inode: 19333361    Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  darwin)  Gid: ( 1000/  darwin)
Access: 2012-04-04 20:54:19.000000000 -0300
Modify: 2011-11-15 22:51:29.000000000 -0300
Change: 2011-11-15 22:51:29.000000000 -0300

Now that I see it, when I try to do lsattr on this last dir, I get an endless list of .txt files (perhaps Spideroak's logs). I mean (almost) literally endless. Since I run lsattr a few minutes ago the output hasn't stopped !!!!

chrism01 04-05-2012 12:46 AM

Hmm, that looks like a capital 'I', but according the man age here http://linux.die.net/man/1/chattr and tested on a RHEL5 box, lowercase 'i' is the Immutable value.
However, check the manpages on the system in question ...

carlosestensser 04-05-2012 06:46 AM

The main problem, however, seems to be the endless list of txt files. The ls command went on for at least half an hour until I killed it.:confused:

DONE:
I was wrong from the beginning: it's not that the directory could not be deleted. It just took 38 minutes to do it !!!
Thanks unSpawn and chrism01.


All times are GMT -5. The time now is 05:08 PM.