unable to delete file - rm: cannot remove Input/output error












11














Some file is in my NTFS file system which I can't delete. It's giving this error:



rm: cannot remove `zigBqC04': Input/output error


Any other files also could not be copied in that folder and showing error message as:



Error opening file 'file-path': Input/output error


Any solution.










share|improve this question
























  • Related/duplicate: askubuntu.com/q/74105/44293
    – Bleeding Fingers
    Jun 6 '15 at 20:46
















11














Some file is in my NTFS file system which I can't delete. It's giving this error:



rm: cannot remove `zigBqC04': Input/output error


Any other files also could not be copied in that folder and showing error message as:



Error opening file 'file-path': Input/output error


Any solution.










share|improve this question
























  • Related/duplicate: askubuntu.com/q/74105/44293
    – Bleeding Fingers
    Jun 6 '15 at 20:46














11












11








11


3





Some file is in my NTFS file system which I can't delete. It's giving this error:



rm: cannot remove `zigBqC04': Input/output error


Any other files also could not be copied in that folder and showing error message as:



Error opening file 'file-path': Input/output error


Any solution.










share|improve this question















Some file is in my NTFS file system which I can't delete. It's giving this error:



rm: cannot remove `zigBqC04': Input/output error


Any other files also could not be copied in that folder and showing error message as:



Error opening file 'file-path': Input/output error


Any solution.







command-line permissions security






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 7 '14 at 13:55









Parto

9,3111965103




9,3111965103










asked Jul 27 '13 at 15:54









Prakhar

158115




158115












  • Related/duplicate: askubuntu.com/q/74105/44293
    – Bleeding Fingers
    Jun 6 '15 at 20:46


















  • Related/duplicate: askubuntu.com/q/74105/44293
    – Bleeding Fingers
    Jun 6 '15 at 20:46
















Related/duplicate: askubuntu.com/q/74105/44293
– Bleeding Fingers
Jun 6 '15 at 20:46




Related/duplicate: askubuntu.com/q/74105/44293
– Bleeding Fingers
Jun 6 '15 at 20:46










4 Answers
4






active

oldest

votes


















7














Looks like the filesystem has some errors on it. Do full scandisk /checkdisk from windows.
(scan disk for errors)






share|improve this answer





















  • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
    – LiveWireBT
    Jul 28 '13 at 10:30










  • yes it was. Thanks.
    – Prakhar
    Oct 8 '13 at 8:34



















1














may need to be logged in a root to do this. If so, type:



sudo su


in to Terminal and navigate with terminal to where zigBqC04 is and rm <filename> to remove files or rmdir <dir> to delete folders replace <---> with the file or folder name. Wild cards ( & ?) can be used.*






share|improve this answer





















  • I also tried as a root but still can't.
    – Prakhar
    Jul 27 '13 at 17:20



















0














If it is an NTFS or FAT file system and you don't have access to Windows just copy the files that you want to keep from the USB drive onto your hard drive. Then format the USB drive again using GPARTED or similar partition manager to NTFS or FAT. Followed by copying all the files back onto the USB drive. Worked for me.






share|improve this answer





























    0














    A workaround that thankfully worked for me was to plug the drive into a Windows system and delete the offending files and folders using Shift + Delete (immediate delete without Recycle Bin).



    After that, the issue seemed to be resolved when the drive was returned to Ubuntu.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f325343%2funable-to-delete-file-rm-cannot-remove-input-output-error%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      7














      Looks like the filesystem has some errors on it. Do full scandisk /checkdisk from windows.
      (scan disk for errors)






      share|improve this answer





















      • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
        – LiveWireBT
        Jul 28 '13 at 10:30










      • yes it was. Thanks.
        – Prakhar
        Oct 8 '13 at 8:34
















      7














      Looks like the filesystem has some errors on it. Do full scandisk /checkdisk from windows.
      (scan disk for errors)






      share|improve this answer





















      • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
        – LiveWireBT
        Jul 28 '13 at 10:30










      • yes it was. Thanks.
        – Prakhar
        Oct 8 '13 at 8:34














      7












      7








      7






      Looks like the filesystem has some errors on it. Do full scandisk /checkdisk from windows.
      (scan disk for errors)






      share|improve this answer












      Looks like the filesystem has some errors on it. Do full scandisk /checkdisk from windows.
      (scan disk for errors)







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jul 28 '13 at 10:03









      staticd

      1,67511116




      1,67511116












      • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
        – LiveWireBT
        Jul 28 '13 at 10:30










      • yes it was. Thanks.
        – Prakhar
        Oct 8 '13 at 8:34


















      • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
        – LiveWireBT
        Jul 28 '13 at 10:30










      • yes it was. Thanks.
        – Prakhar
        Oct 8 '13 at 8:34
















      That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
      – LiveWireBT
      Jul 28 '13 at 10:30




      That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.
      – LiveWireBT
      Jul 28 '13 at 10:30












      yes it was. Thanks.
      – Prakhar
      Oct 8 '13 at 8:34




      yes it was. Thanks.
      – Prakhar
      Oct 8 '13 at 8:34













      1














      may need to be logged in a root to do this. If so, type:



      sudo su


      in to Terminal and navigate with terminal to where zigBqC04 is and rm <filename> to remove files or rmdir <dir> to delete folders replace <---> with the file or folder name. Wild cards ( & ?) can be used.*






      share|improve this answer





















      • I also tried as a root but still can't.
        – Prakhar
        Jul 27 '13 at 17:20
















      1














      may need to be logged in a root to do this. If so, type:



      sudo su


      in to Terminal and navigate with terminal to where zigBqC04 is and rm <filename> to remove files or rmdir <dir> to delete folders replace <---> with the file or folder name. Wild cards ( & ?) can be used.*






      share|improve this answer





















      • I also tried as a root but still can't.
        – Prakhar
        Jul 27 '13 at 17:20














      1












      1








      1






      may need to be logged in a root to do this. If so, type:



      sudo su


      in to Terminal and navigate with terminal to where zigBqC04 is and rm <filename> to remove files or rmdir <dir> to delete folders replace <---> with the file or folder name. Wild cards ( & ?) can be used.*






      share|improve this answer












      may need to be logged in a root to do this. If so, type:



      sudo su


      in to Terminal and navigate with terminal to where zigBqC04 is and rm <filename> to remove files or rmdir <dir> to delete folders replace <---> with the file or folder name. Wild cards ( & ?) can be used.*







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jul 27 '13 at 16:03









      SimplySimon

      3,82572650




      3,82572650












      • I also tried as a root but still can't.
        – Prakhar
        Jul 27 '13 at 17:20


















      • I also tried as a root but still can't.
        – Prakhar
        Jul 27 '13 at 17:20
















      I also tried as a root but still can't.
      – Prakhar
      Jul 27 '13 at 17:20




      I also tried as a root but still can't.
      – Prakhar
      Jul 27 '13 at 17:20











      0














      If it is an NTFS or FAT file system and you don't have access to Windows just copy the files that you want to keep from the USB drive onto your hard drive. Then format the USB drive again using GPARTED or similar partition manager to NTFS or FAT. Followed by copying all the files back onto the USB drive. Worked for me.






      share|improve this answer


























        0














        If it is an NTFS or FAT file system and you don't have access to Windows just copy the files that you want to keep from the USB drive onto your hard drive. Then format the USB drive again using GPARTED or similar partition manager to NTFS or FAT. Followed by copying all the files back onto the USB drive. Worked for me.






        share|improve this answer
























          0












          0








          0






          If it is an NTFS or FAT file system and you don't have access to Windows just copy the files that you want to keep from the USB drive onto your hard drive. Then format the USB drive again using GPARTED or similar partition manager to NTFS or FAT. Followed by copying all the files back onto the USB drive. Worked for me.






          share|improve this answer












          If it is an NTFS or FAT file system and you don't have access to Windows just copy the files that you want to keep from the USB drive onto your hard drive. Then format the USB drive again using GPARTED or similar partition manager to NTFS or FAT. Followed by copying all the files back onto the USB drive. Worked for me.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 3 '17 at 18:13









          Jacques MALAPRADE

          5952925




          5952925























              0














              A workaround that thankfully worked for me was to plug the drive into a Windows system and delete the offending files and folders using Shift + Delete (immediate delete without Recycle Bin).



              After that, the issue seemed to be resolved when the drive was returned to Ubuntu.






              share|improve this answer


























                0














                A workaround that thankfully worked for me was to plug the drive into a Windows system and delete the offending files and folders using Shift + Delete (immediate delete without Recycle Bin).



                After that, the issue seemed to be resolved when the drive was returned to Ubuntu.






                share|improve this answer
























                  0












                  0








                  0






                  A workaround that thankfully worked for me was to plug the drive into a Windows system and delete the offending files and folders using Shift + Delete (immediate delete without Recycle Bin).



                  After that, the issue seemed to be resolved when the drive was returned to Ubuntu.






                  share|improve this answer












                  A workaround that thankfully worked for me was to plug the drive into a Windows system and delete the offending files and folders using Shift + Delete (immediate delete without Recycle Bin).



                  After that, the issue seemed to be resolved when the drive was returned to Ubuntu.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 18 at 4:55









                  Shaun of the Dead

                  314




                  314






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f325343%2funable-to-delete-file-rm-cannot-remove-input-output-error%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How did Captain America manage to do this?

                      迪纳利

                      南乌拉尔铁路局