Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing a corrupted directory?

Status
Not open for further replies.

erulia

IS-IT--Management
Jan 29, 2003
20
US
I have a directory that somehow lost its "." and ".." entries. I cannot delete, move, rename or edit this directory (I've tried rm, rmdir, mkdir, mv, and using Perl to write into it). Anyone have any ideas? I'm willing to edit inodes if I need to, to fix this!

-Unix Sys Admin
 
erulia ;

Try rm -rf directory_name


^^^^^^^^^^^^^^^^^^^^^^^^^^
Experience is the Best Teacher
But its' cost is Heavy!
^^^^^^^^^^^^^^^^^^^^^^^^^^
 
As I mentioned, I already tried to remove the directory. I get the specific error:
rm: Unable to remove directory jta: File exists

when I do an rm -rf.

-Unix Sys Admin
 
You should start with doing an [tt]fsck[/tt] on the device the directory is on. That should fix any structural problems on the disk.

Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top