Cannot delete a file. The file or directory is corrupted and unreadable

37,792

Well, the filesystem is corrupted. You have to fix it.

Right-click the card in Computer, select PropertiesToolsCheck.

If you prefer command line, chkdsk /f X: will do the same thing (replace X: with the drive letter). The /f switch means 'fix errors found`, as usually chkdsk will only report errors.

This may be an indication that the SD card will fail soon, make sure your backups are working and prepare a spare card.

Share:
37,792

Related videos on Youtube

MyDaftQuestions
Author by

MyDaftQuestions

Updated on September 18, 2022

Comments

  • MyDaftQuestions
    MyDaftQuestions about 1 year

    I have a file on my laptops SD card. I use the SD card as an extension of my hard drive.

    When I try to delete this file (.jpg) I get the following error message

    Error 0x80070570: The file or directory is corrupted and unreadable.

    A quick Google search of this provides results for this error message during installation of Windows or on a Server.

    I attempted the following command

    del f "D:\GitHub\Site\Photoshop\restaurant-644504_1920.jpg"
    

    But I get a similar image about it being corrupted.

    I am able to write files to the SD card, amend files and delete files. This issue is occurring with only 1 file.

    How can I remove this corrupted file?

    • IiroP
      IiroP over 6 years
      Can you write anything to SD card?
    • MyDaftQuestions
      MyDaftQuestions over 6 years
      @liroP yes I can (updated post)
  • MyDaftQuestions
    MyDaftQuestions over 6 years
    Is this different to chkdsk /f?
  • gronostaj
    gronostaj over 6 years
    It's either chkdsk /f or chkdsk /r, AFAIR it's /f by default but you can check a checkbox to make it /r.
  • MyDaftQuestions
    MyDaftQuestions over 6 years
    Well the chkdsk /f worked. Can you update this in your post please so I mark it as answer @gronostaj
  • gronostaj
    gronostaj over 6 years
    Done! (minimum character count...)