Link to home
Start Free TrialLog in
Avatar of Tim Stutzman
Tim Stutzman

asked on

Cannot delete corrupted directory

I have a few data directories on my server that have become corrupt (I believe because they were corrupted on the backup tape I restored them from).  I need to delete them, but can't seem to find a way to do that.  Chkdsk doesn't help, and I've tried using KillBox, but it will not run on Server 2003.

Any ideas?
Avatar of patrvic
patrvic
Flag of United States of America image

have you tried ntdsutil? I think you type it at the comnd prompt...


Avatar of Tim Stutzman
Tim Stutzman

ASKER

I ran "ntdsutil help" from the command prompt and it didn't show anything to do with deleting files or repairing corrupted ones... Can you explain further how I would utilize this application?
Avatar of SysExpert
have you tried the RD command in a DOS box ?


I hope this helps !
Just tried RD, and it says "The directory is not empty".  I cannot access the directory to empty it because it is corrupted...

If in the CMD prompt, I get into the corrupted directory and call "dir", it says "File Not Found".  In Windows, it just refuses to go inside the folder.
try deltree

You might want to check here

http://support.microsoft.com/kb/216498
does it tell you the directory or file is in use?  if so it is file locked and jsut restart in safe mode to kill it.

what error message do you get when you try to get into teh directory
@SysExpert:  deltree is no longer in use for Windows 2000 and on.  RD is the new removal tool, and even with the switchs /S and /Q, it still says "The directory is not empty." when I try to delete the directory.

@patrvic:  I failed to find anything useful or pertaining to my situation in that article.  Did you have something specific in mind from it?

@jessiepak:  It does not say the directory is in use.  It says it is corrupted.  Since this is a server, I'd like to keep restarts to a minimum, as I can only restart it at night.  I will restart if necessary, but only if it means a for sure fix.
ASKER CERTIFIED SOLUTION
Avatar of SysExpert
SysExpert
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It appears that a second run of chkdsk fixed the problem... I'm quite surprised that the first run didn't work but a second run did.  Anyway, thanks for the help all!