Tuesday, September 11, 2018

Not able to delete Corrupted files into USB (Pendrive)

I was not able to few directories and I was showing error saying check with chkdsk. It seems few files from those directories were corrupted. I was also not able to delete those files and directories from command line. I don't know the reason of corruption of files into USB.

finally I have checked USB if corrupted with command chkdsk. And I have found that few files were corrupted with bad links. Those bad links were recovered with command chkdsk.

command: chkdsk /f /r /x

below is the example with output.

C:\Users\hparakh>chkdsk E: /f /r /x
The type of the file system is FAT32.
Volume HEMANT created 1/3/2018 10:57 AM
Volume Serial Number is XXXX-XXXX
Windows is verifying files and folders...
The \FSN_DATA__\1045.XXXX_THREAD.COR entry contains a nonvalid link.
The size of the \FSN_DATA__\1045.XXXX_THREAD.COR entry is not valid.
The \FSN_DATA\BOOTLOG.1\1076.XXXX.COR entry contains a nonvalid link.
The size of the \FSN_DATA\BOOTLOG.1\1076.XXXX.COR entry is not valid.
File and folder verification is complete.
Bad links in lost chain at cluster 296051 corrected.
Bad links in lost chain at cluster 896768 corrected.
Bad links in lost chain at cluster 897792 corrected.
Convert lost chains to files (Y/N)? y
7270400 bytes in 6 recovered files.
Windows is verifying free space...
Free space verification is complete.

Windows has made corrections to the file system.
No further action is required.

4,050,714,624 bytes total disk space.
       16,384 bytes in 4 hidden files.
      872,448 bytes in 191 folders.
1,952,899,072 bytes in 2,538 files.
2,096,922,624 bytes available on disk.

        4,096 bytes in each allocation unit.
      988,944 total allocation units on disk.
      511,944 allocation units available on disk.

After windows correction in the file system of USB. I was able to delete all files and directories whatever I wanted.