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












12















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
















12















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














12












12








12


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,5841967105




9,5841967105










asked Jul 27 '13 at 15:54









PrakharPrakhar

163115




163115













  • 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










5 Answers
5






active

oldest

votes


















8














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






  • 1





    @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

    – Sarah Szabo
    Jan 4 at 7:58



















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































      0














      The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.






      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

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        8














        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






        • 1





          @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

          – Sarah Szabo
          Jan 4 at 7:58
















        8














        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






        • 1





          @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

          – Sarah Szabo
          Jan 4 at 7:58














        8












        8








        8







        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









        staticdstaticd

        1,73211116




        1,73211116













        • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.

          – LiveWireBT
          Jul 28 '13 at 10:30






        • 1





          @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

          – Sarah Szabo
          Jan 4 at 7:58



















        • That's probably the best one can do without damaging the proprietary filesystem or replacing the filesystem.

          – LiveWireBT
          Jul 28 '13 at 10:30






        • 1





          @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

          – Sarah Szabo
          Jan 4 at 7:58

















        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




        1




        1





        @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

        – Sarah Szabo
        Jan 4 at 7:58





        @staticd As of 2019, is this still the best solution? I'm using the latest version of KDE, and am more interested in a *buntu specific solution.

        – Sarah Szabo
        Jan 4 at 7:58













        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









        SimplySimonSimplySimon

        3,89072750




        3,89072750













        • 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 MALAPRADEJacques MALAPRADE

            60521025




            60521025























                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 '18 at 4:55









                    Shaun of the DeadShaun of the Dead

                    314




                    314























                        0














                        The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.






                        share|improve this answer




























                          0














                          The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.






                          share|improve this answer


























                            0












                            0








                            0







                            The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.






                            share|improve this answer













                            The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Feb 22 at 7:04









                            Bowen XuBowen Xu

                            1012




                            1012






























                                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.




                                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 to make a Squid Proxy server?

                                Is this a new Fibonacci Identity?

                                19世紀