Formatting a external HDD and the computer turn off












1















I was running the command "sudo fsck -cfvr / dev / sdc1" on an external hard drive, when I return to the computer, it was off. I do not know if the task was finished or not.



How can I know if before the computer was turned off the task would have finished or not?










share|improve this question























  • I don't think that the command worked as you expected. The command you used tried to check the root file system and should have aborted because the root file system is mounted. You should have used sudo fsck -cfvr /dev/sdc1 instead of sudo fsck -cfvr / dev / sdc1.

    – mook765
    Feb 20 at 15:57













  • Yes, the command was working correctly, the file system was not mounted at the time of running the command. I already had a percentage greater than 50% the last time I checked it. but then it suddenly went out and I do not know if 100% of the process would end

    – Miguel
    Feb 20 at 16:03
















1















I was running the command "sudo fsck -cfvr / dev / sdc1" on an external hard drive, when I return to the computer, it was off. I do not know if the task was finished or not.



How can I know if before the computer was turned off the task would have finished or not?










share|improve this question























  • I don't think that the command worked as you expected. The command you used tried to check the root file system and should have aborted because the root file system is mounted. You should have used sudo fsck -cfvr /dev/sdc1 instead of sudo fsck -cfvr / dev / sdc1.

    – mook765
    Feb 20 at 15:57













  • Yes, the command was working correctly, the file system was not mounted at the time of running the command. I already had a percentage greater than 50% the last time I checked it. but then it suddenly went out and I do not know if 100% of the process would end

    – Miguel
    Feb 20 at 16:03














1












1








1








I was running the command "sudo fsck -cfvr / dev / sdc1" on an external hard drive, when I return to the computer, it was off. I do not know if the task was finished or not.



How can I know if before the computer was turned off the task would have finished or not?










share|improve this question














I was running the command "sudo fsck -cfvr / dev / sdc1" on an external hard drive, when I return to the computer, it was off. I do not know if the task was finished or not.



How can I know if before the computer was turned off the task would have finished or not?







external-hdd format fsck






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 20 at 15:12









MiguelMiguel

82




82













  • I don't think that the command worked as you expected. The command you used tried to check the root file system and should have aborted because the root file system is mounted. You should have used sudo fsck -cfvr /dev/sdc1 instead of sudo fsck -cfvr / dev / sdc1.

    – mook765
    Feb 20 at 15:57













  • Yes, the command was working correctly, the file system was not mounted at the time of running the command. I already had a percentage greater than 50% the last time I checked it. but then it suddenly went out and I do not know if 100% of the process would end

    – Miguel
    Feb 20 at 16:03



















  • I don't think that the command worked as you expected. The command you used tried to check the root file system and should have aborted because the root file system is mounted. You should have used sudo fsck -cfvr /dev/sdc1 instead of sudo fsck -cfvr / dev / sdc1.

    – mook765
    Feb 20 at 15:57













  • Yes, the command was working correctly, the file system was not mounted at the time of running the command. I already had a percentage greater than 50% the last time I checked it. but then it suddenly went out and I do not know if 100% of the process would end

    – Miguel
    Feb 20 at 16:03

















I don't think that the command worked as you expected. The command you used tried to check the root file system and should have aborted because the root file system is mounted. You should have used sudo fsck -cfvr /dev/sdc1 instead of sudo fsck -cfvr / dev / sdc1.

– mook765
Feb 20 at 15:57







I don't think that the command worked as you expected. The command you used tried to check the root file system and should have aborted because the root file system is mounted. You should have used sudo fsck -cfvr /dev/sdc1 instead of sudo fsck -cfvr / dev / sdc1.

– mook765
Feb 20 at 15:57















Yes, the command was working correctly, the file system was not mounted at the time of running the command. I already had a percentage greater than 50% the last time I checked it. but then it suddenly went out and I do not know if 100% of the process would end

– Miguel
Feb 20 at 16:03





Yes, the command was working correctly, the file system was not mounted at the time of running the command. I already had a percentage greater than 50% the last time I checked it. but then it suddenly went out and I do not know if 100% of the process would end

– Miguel
Feb 20 at 16:03










1 Answer
1






active

oldest

votes


















0














If the computer shut off because the battery ran out... and if you were trying to badblock the /dev/sdc1 partition... then it didn't complete. Never run fsck whilst on battery alone.



And... if you were trying to badblock /dev/sdc1, you didn't give it a proper command. It should be...



sudo e2fsck -fck /dev/sdc1 # read-only test



or



sudo e2fsck -fcck /dev/sdc1 # non-destructive read/write test



The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.



The -fcck parameter...



   -f     Force checking even if the file system seems clean.

-c This option causes e2fsck to use badblocks(8) program to do a
read-only scan of the device in order to find any bad blocks.
If any bad blocks are found, they are added to the bad block
inode to prevent them from being allocated to a file or direc‐
tory. If this option is specified twice, then the bad block
scan will be done using a non-destructive read-write test.

-k When combined with the -c option, any existing bad blocks in the
bad blocks list are preserved, and any new bad blocks found by
running badblocks(8) will be added to the existing bad blocks
list.





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%2f1119868%2fformatting-a-external-hdd-and-the-computer-turn-off%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If the computer shut off because the battery ran out... and if you were trying to badblock the /dev/sdc1 partition... then it didn't complete. Never run fsck whilst on battery alone.



    And... if you were trying to badblock /dev/sdc1, you didn't give it a proper command. It should be...



    sudo e2fsck -fck /dev/sdc1 # read-only test



    or



    sudo e2fsck -fcck /dev/sdc1 # non-destructive read/write test



    The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.



    The -fcck parameter...



       -f     Force checking even if the file system seems clean.

    -c This option causes e2fsck to use badblocks(8) program to do a
    read-only scan of the device in order to find any bad blocks.
    If any bad blocks are found, they are added to the bad block
    inode to prevent them from being allocated to a file or direc‐
    tory. If this option is specified twice, then the bad block
    scan will be done using a non-destructive read-write test.

    -k When combined with the -c option, any existing bad blocks in the
    bad blocks list are preserved, and any new bad blocks found by
    running badblocks(8) will be added to the existing bad blocks
    list.





    share|improve this answer






























      0














      If the computer shut off because the battery ran out... and if you were trying to badblock the /dev/sdc1 partition... then it didn't complete. Never run fsck whilst on battery alone.



      And... if you were trying to badblock /dev/sdc1, you didn't give it a proper command. It should be...



      sudo e2fsck -fck /dev/sdc1 # read-only test



      or



      sudo e2fsck -fcck /dev/sdc1 # non-destructive read/write test



      The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.



      The -fcck parameter...



         -f     Force checking even if the file system seems clean.

      -c This option causes e2fsck to use badblocks(8) program to do a
      read-only scan of the device in order to find any bad blocks.
      If any bad blocks are found, they are added to the bad block
      inode to prevent them from being allocated to a file or direc‐
      tory. If this option is specified twice, then the bad block
      scan will be done using a non-destructive read-write test.

      -k When combined with the -c option, any existing bad blocks in the
      bad blocks list are preserved, and any new bad blocks found by
      running badblocks(8) will be added to the existing bad blocks
      list.





      share|improve this answer




























        0












        0








        0







        If the computer shut off because the battery ran out... and if you were trying to badblock the /dev/sdc1 partition... then it didn't complete. Never run fsck whilst on battery alone.



        And... if you were trying to badblock /dev/sdc1, you didn't give it a proper command. It should be...



        sudo e2fsck -fck /dev/sdc1 # read-only test



        or



        sudo e2fsck -fcck /dev/sdc1 # non-destructive read/write test



        The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.



        The -fcck parameter...



           -f     Force checking even if the file system seems clean.

        -c This option causes e2fsck to use badblocks(8) program to do a
        read-only scan of the device in order to find any bad blocks.
        If any bad blocks are found, they are added to the bad block
        inode to prevent them from being allocated to a file or direc‐
        tory. If this option is specified twice, then the bad block
        scan will be done using a non-destructive read-write test.

        -k When combined with the -c option, any existing bad blocks in the
        bad blocks list are preserved, and any new bad blocks found by
        running badblocks(8) will be added to the existing bad blocks
        list.





        share|improve this answer















        If the computer shut off because the battery ran out... and if you were trying to badblock the /dev/sdc1 partition... then it didn't complete. Never run fsck whilst on battery alone.



        And... if you were trying to badblock /dev/sdc1, you didn't give it a proper command. It should be...



        sudo e2fsck -fck /dev/sdc1 # read-only test



        or



        sudo e2fsck -fcck /dev/sdc1 # non-destructive read/write test



        The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.



        The -fcck parameter...



           -f     Force checking even if the file system seems clean.

        -c This option causes e2fsck to use badblocks(8) program to do a
        read-only scan of the device in order to find any bad blocks.
        If any bad blocks are found, they are added to the bad block
        inode to prevent them from being allocated to a file or direc‐
        tory. If this option is specified twice, then the bad block
        scan will be done using a non-destructive read-write test.

        -k When combined with the -c option, any existing bad blocks in the
        bad blocks list are preserved, and any new bad blocks found by
        running badblocks(8) will be added to the existing bad blocks
        list.






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 20 at 16:28

























        answered Feb 20 at 16:20









        heynnemaheynnema

        20.6k22258




        20.6k22258






























            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%2f1119868%2fformatting-a-external-hdd-and-the-computer-turn-off%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

            Mouse cursor on multiple screens with different PPI

            Agildo Ribeiro

            Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”