LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2012, 07:28 PM   #1
carlosestensser
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
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?
 
Old 04-04-2012, 07:52 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What does 'stat /path/to/directoryname; lsattr /path/to/directoryname' return?
 
1 members found this post helpful.
Old 04-04-2012, 08:35 PM   #3
carlosestensser
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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 !!!!

Last edited by carlosestensser; 04-04-2012 at 08:43 PM.
 
Old 04-05-2012, 12:46 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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 ...
 
Old 04-05-2012, 06:46 AM   #5
carlosestensser
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.

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.

Last edited by carlosestensser; 04-05-2012 at 07:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to delete directory mwi.user Linux - Server 4 08-07-2008 07:54 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
how can i delete an directory?? vito_huang Linux - Newbie 4 12-16-2004 02:15 AM
how to delete a directory master Linux - Newbie 2 03-27-2004 06:47 PM
How do you delete a directory? R4z0r Linux - Newbie 1 12-25-2002 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration