• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2847
  • Last Modified:

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?
0
wthero
Asked:
wthero
  • 4
  • 3
  • 2
  • +1
1 Solution
 
patrvicCommented:
have you tried ntdsutil? I think you type it at the comnd prompt...


0
 
wtheroAuthor Commented:
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?
0
 
SysExpertCommented:
have you tried the RD command in a DOS box ?


I hope this helps !
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
wtheroAuthor Commented:
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.
0
 
SysExpertCommented:
try deltree

0
 
patrvicCommented:
You might want to check here

http://support.microsoft.com/kb/216498
0
 
Jessie Gill, CISSPTechnical ArchitectCommented:
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
0
 
wtheroAuthor Commented:
@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.
0
 
SysExpertCommented:
You need to run chkdsk again, since it is supposed to fix all directory corruption.

It may require a reboot for chkdsk to run in DOS mode as part of the reboot process.

If it can't then you may be SOL.

0
 
wtheroAuthor Commented:
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!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now