removing a directory

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm trying to remove a directory called cc by running the command rm -rf cc, but it has trouble removing a file inside the directory.



I get the following error:



rm: cannot remove 'boy.mp4' : Input/output error


Does anyone know how to solve this issue?







share|improve this question


















  • 1




    Is this on an ntfs filesystem by any chance?
    – Jesse_b
    Mar 6 at 22:28







  • 1




    Possible duplicate: rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive.
    – John1024
    Mar 6 at 22:30










  • yes it is ntfs filesystem. it is a directory on an external hard drive
    – mohamad
    Mar 7 at 21:31














up vote
1
down vote

favorite












I'm trying to remove a directory called cc by running the command rm -rf cc, but it has trouble removing a file inside the directory.



I get the following error:



rm: cannot remove 'boy.mp4' : Input/output error


Does anyone know how to solve this issue?







share|improve this question


















  • 1




    Is this on an ntfs filesystem by any chance?
    – Jesse_b
    Mar 6 at 22:28







  • 1




    Possible duplicate: rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive.
    – John1024
    Mar 6 at 22:30










  • yes it is ntfs filesystem. it is a directory on an external hard drive
    – mohamad
    Mar 7 at 21:31












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm trying to remove a directory called cc by running the command rm -rf cc, but it has trouble removing a file inside the directory.



I get the following error:



rm: cannot remove 'boy.mp4' : Input/output error


Does anyone know how to solve this issue?







share|improve this question














I'm trying to remove a directory called cc by running the command rm -rf cc, but it has trouble removing a file inside the directory.



I get the following error:



rm: cannot remove 'boy.mp4' : Input/output error


Does anyone know how to solve this issue?









share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 22:26









Jesse_b

10.4k22658




10.4k22658










asked Mar 6 at 22:19









mohamad

61




61







  • 1




    Is this on an ntfs filesystem by any chance?
    – Jesse_b
    Mar 6 at 22:28







  • 1




    Possible duplicate: rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive.
    – John1024
    Mar 6 at 22:30










  • yes it is ntfs filesystem. it is a directory on an external hard drive
    – mohamad
    Mar 7 at 21:31












  • 1




    Is this on an ntfs filesystem by any chance?
    – Jesse_b
    Mar 6 at 22:28







  • 1




    Possible duplicate: rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive.
    – John1024
    Mar 6 at 22:30










  • yes it is ntfs filesystem. it is a directory on an external hard drive
    – mohamad
    Mar 7 at 21:31







1




1




Is this on an ntfs filesystem by any chance?
– Jesse_b
Mar 6 at 22:28





Is this on an ntfs filesystem by any chance?
– Jesse_b
Mar 6 at 22:28





1




1




Possible duplicate: rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive.
– John1024
Mar 6 at 22:30




Possible duplicate: rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive.
– John1024
Mar 6 at 22:30












yes it is ntfs filesystem. it is a directory on an external hard drive
– mohamad
Mar 7 at 21:31




yes it is ntfs filesystem. it is a directory on an external hard drive
– mohamad
Mar 7 at 21:31










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Your file system probably has some errors on it. If it's NTFS, you can run chkdsk on Windows to fix it, otherwise, you should try running fsck on it.



fsck can't run on an active file system, so if the file is on it, you'll need to boot to a live system to fix it, or force the system to do it on boot with sudo touch /forcefsck






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428630%2fremoving-a-directory%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Your file system probably has some errors on it. If it's NTFS, you can run chkdsk on Windows to fix it, otherwise, you should try running fsck on it.



    fsck can't run on an active file system, so if the file is on it, you'll need to boot to a live system to fix it, or force the system to do it on boot with sudo touch /forcefsck






    share|improve this answer
























      up vote
      0
      down vote













      Your file system probably has some errors on it. If it's NTFS, you can run chkdsk on Windows to fix it, otherwise, you should try running fsck on it.



      fsck can't run on an active file system, so if the file is on it, you'll need to boot to a live system to fix it, or force the system to do it on boot with sudo touch /forcefsck






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Your file system probably has some errors on it. If it's NTFS, you can run chkdsk on Windows to fix it, otherwise, you should try running fsck on it.



        fsck can't run on an active file system, so if the file is on it, you'll need to boot to a live system to fix it, or force the system to do it on boot with sudo touch /forcefsck






        share|improve this answer












        Your file system probably has some errors on it. If it's NTFS, you can run chkdsk on Windows to fix it, otherwise, you should try running fsck on it.



        fsck can't run on an active file system, so if the file is on it, you'll need to boot to a live system to fix it, or force the system to do it on boot with sudo touch /forcefsck







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 6 at 22:30









        Weston Reed

        366




        366






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428630%2fremoving-a-directory%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay