Error 0x80070091: The directory is not empty


  • I am using Hardlinks for imaging systems to Windows 7. Some systems will fail with Error 0x80070091: The directory is not empty and when we caddy the drive the data cannot be deleted that way either.

    Is there a way (tool) to check for files that cannot be deleted prior to wiping the disk?

    If the wipe fails, would USMT work to backup the Hardlink folder data off the drive? For example:

    If wipe fails and it left the data in C:\HLDATA\USMT\File\C$ now I have to either run a chkdsk and hope it fixes the issue or restore the ghost file and USMT the data off the drive. Instead, can I run scanstate against C:\HLDATA\USMT\File\C$ to store the data on a network share and then do a Format and restore when done?

    Monday, April 23, 2012 6:06 PM

All replies

  • Dear,

    I faced this error a lot of time, I made some workarounds and I don't know it's the right way or not.

    one way is to copy the file for the USMT the file that backed up all the system, then format the HD and run TS with loadstate or run a normal task sequence then after finishing run the file of USMT.

    hope this is useful for you,

    Monday, April 23, 2012 6:41 PM