Corrupted filesystem - unable to mount /home












1















Ubuntu 12.04 is not able to mount /home partition and I run:



fsck /dev/sda5


which is in state



Pass 1D: Reconciling multiply-claimed blocks
(There are 41608 inodes containing multiply-claimed blocks.)


And then it is a question:



Clone multiply-claimed blocks<y>?


What should I do? Keep pressing Yes it could take weeks till go through all 41608 inodes.
There is some data in the /home partition that I would like to save.
Do I have more options to recover this partition?



Thank you



[EDIT]



Start confirming (by clicking 'y') and on some of them I've got the following:



clone_file_block: internal error: can't find dup_blk for 121143344


[UPDATE-01]
after David's answer and booting live system image of Ubuntu 14.10-beta Utopic...
and running



e2fsck -p /dev/sda5


I've got the following:



/dev/sda5 contains a file system with errors, check forced.
/dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY;
run fsck MANUALLY. (i.e. without -a or -p options)









share|improve this question





























    1















    Ubuntu 12.04 is not able to mount /home partition and I run:



    fsck /dev/sda5


    which is in state



    Pass 1D: Reconciling multiply-claimed blocks
    (There are 41608 inodes containing multiply-claimed blocks.)


    And then it is a question:



    Clone multiply-claimed blocks<y>?


    What should I do? Keep pressing Yes it could take weeks till go through all 41608 inodes.
    There is some data in the /home partition that I would like to save.
    Do I have more options to recover this partition?



    Thank you



    [EDIT]



    Start confirming (by clicking 'y') and on some of them I've got the following:



    clone_file_block: internal error: can't find dup_blk for 121143344


    [UPDATE-01]
    after David's answer and booting live system image of Ubuntu 14.10-beta Utopic...
    and running



    e2fsck -p /dev/sda5


    I've got the following:



    /dev/sda5 contains a file system with errors, check forced.
    /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY;
    run fsck MANUALLY. (i.e. without -a or -p options)









    share|improve this question



























      1












      1








      1








      Ubuntu 12.04 is not able to mount /home partition and I run:



      fsck /dev/sda5


      which is in state



      Pass 1D: Reconciling multiply-claimed blocks
      (There are 41608 inodes containing multiply-claimed blocks.)


      And then it is a question:



      Clone multiply-claimed blocks<y>?


      What should I do? Keep pressing Yes it could take weeks till go through all 41608 inodes.
      There is some data in the /home partition that I would like to save.
      Do I have more options to recover this partition?



      Thank you



      [EDIT]



      Start confirming (by clicking 'y') and on some of them I've got the following:



      clone_file_block: internal error: can't find dup_blk for 121143344


      [UPDATE-01]
      after David's answer and booting live system image of Ubuntu 14.10-beta Utopic...
      and running



      e2fsck -p /dev/sda5


      I've got the following:



      /dev/sda5 contains a file system with errors, check forced.
      /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY;
      run fsck MANUALLY. (i.e. without -a or -p options)









      share|improve this question
















      Ubuntu 12.04 is not able to mount /home partition and I run:



      fsck /dev/sda5


      which is in state



      Pass 1D: Reconciling multiply-claimed blocks
      (There are 41608 inodes containing multiply-claimed blocks.)


      And then it is a question:



      Clone multiply-claimed blocks<y>?


      What should I do? Keep pressing Yes it could take weeks till go through all 41608 inodes.
      There is some data in the /home partition that I would like to save.
      Do I have more options to recover this partition?



      Thank you



      [EDIT]



      Start confirming (by clicking 'y') and on some of them I've got the following:



      clone_file_block: internal error: can't find dup_blk for 121143344


      [UPDATE-01]
      after David's answer and booting live system image of Ubuntu 14.10-beta Utopic...
      and running



      e2fsck -p /dev/sda5


      I've got the following:



      /dev/sda5 contains a file system with errors, check forced.
      /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY;
      run fsck MANUALLY. (i.e. without -a or -p options)






      12.04 mount filesystem home-directory fsck






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 28 '14 at 23:28







      venta7

















      asked Sep 28 '14 at 21:30









      venta7venta7

      62413




      62413






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Advisory note: It would be a very good idea to backup the entire file system before performing any changes or fixes to it. If you don't have enough space for that use e2image(8) as an emergency precaution.



          Fixing corrupt superblocks [Edit]



          According to your comment you have a corrupt file system superblock. There's an answer on serverfault that deals with this.



          Since it's impossible to find the correct block size without a working superblock, I would guess from the volume size of 400 GB that the block size is 4 KiB, which leads to a superblock backup position of 32768. Therefore



          e2fsck -b 32768 -p /dev/sda5


          and then take it from there depending on the output.



          Fighting the repetitive user interaction requests



          I pulled the following from the e2fsck(8) manual:




          -p     Automatically  repair  ("preen")  the  file system.  This option
          will cause e2fsck to automatically fix any filesystem problems
          that can be safely fixed without human intervention. If e2fsck
          discovers a problem which may require the system administrator
          to take additional corrective action, e2fsck will print a
          description of the problem and then exit with the value 4
          logically or'ed into the exit code. (See the EXIT CODE
          section.) This option is normally used by the system's boot
          scripts. It may not be specified at the same time as the -n or
          -y options.

          -y Assume an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively. This option may not be specified at the
          same time as the -n or -p options.



          The -p-option is the safer route in case there are other serious errors, but if that doesn't work, try -y.




          clone_file_block error



          This appears to be a known bug. You can try your luck with a newer version of the e2fsprogs packages from the pre-release Utopic series through Launchpad or with a live system image.






          share|improve this answer


























          • Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

            – venta7
            Sep 28 '14 at 22:07











          • Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

            – David Foerster
            Sep 28 '14 at 22:11











          • I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

            – venta7
            Sep 28 '14 at 22:14











          • here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

            – venta7
            Sep 28 '14 at 23:01













          • Please add this info to your question and see my edit.

            – David Foerster
            Sep 28 '14 at 23:11











          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%2f529811%2fcorrupted-filesystem-unable-to-mount-home%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














          Advisory note: It would be a very good idea to backup the entire file system before performing any changes or fixes to it. If you don't have enough space for that use e2image(8) as an emergency precaution.



          Fixing corrupt superblocks [Edit]



          According to your comment you have a corrupt file system superblock. There's an answer on serverfault that deals with this.



          Since it's impossible to find the correct block size without a working superblock, I would guess from the volume size of 400 GB that the block size is 4 KiB, which leads to a superblock backup position of 32768. Therefore



          e2fsck -b 32768 -p /dev/sda5


          and then take it from there depending on the output.



          Fighting the repetitive user interaction requests



          I pulled the following from the e2fsck(8) manual:




          -p     Automatically  repair  ("preen")  the  file system.  This option
          will cause e2fsck to automatically fix any filesystem problems
          that can be safely fixed without human intervention. If e2fsck
          discovers a problem which may require the system administrator
          to take additional corrective action, e2fsck will print a
          description of the problem and then exit with the value 4
          logically or'ed into the exit code. (See the EXIT CODE
          section.) This option is normally used by the system's boot
          scripts. It may not be specified at the same time as the -n or
          -y options.

          -y Assume an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively. This option may not be specified at the
          same time as the -n or -p options.



          The -p-option is the safer route in case there are other serious errors, but if that doesn't work, try -y.




          clone_file_block error



          This appears to be a known bug. You can try your luck with a newer version of the e2fsprogs packages from the pre-release Utopic series through Launchpad or with a live system image.






          share|improve this answer


























          • Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

            – venta7
            Sep 28 '14 at 22:07











          • Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

            – David Foerster
            Sep 28 '14 at 22:11











          • I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

            – venta7
            Sep 28 '14 at 22:14











          • here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

            – venta7
            Sep 28 '14 at 23:01













          • Please add this info to your question and see my edit.

            – David Foerster
            Sep 28 '14 at 23:11
















          0














          Advisory note: It would be a very good idea to backup the entire file system before performing any changes or fixes to it. If you don't have enough space for that use e2image(8) as an emergency precaution.



          Fixing corrupt superblocks [Edit]



          According to your comment you have a corrupt file system superblock. There's an answer on serverfault that deals with this.



          Since it's impossible to find the correct block size without a working superblock, I would guess from the volume size of 400 GB that the block size is 4 KiB, which leads to a superblock backup position of 32768. Therefore



          e2fsck -b 32768 -p /dev/sda5


          and then take it from there depending on the output.



          Fighting the repetitive user interaction requests



          I pulled the following from the e2fsck(8) manual:




          -p     Automatically  repair  ("preen")  the  file system.  This option
          will cause e2fsck to automatically fix any filesystem problems
          that can be safely fixed without human intervention. If e2fsck
          discovers a problem which may require the system administrator
          to take additional corrective action, e2fsck will print a
          description of the problem and then exit with the value 4
          logically or'ed into the exit code. (See the EXIT CODE
          section.) This option is normally used by the system's boot
          scripts. It may not be specified at the same time as the -n or
          -y options.

          -y Assume an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively. This option may not be specified at the
          same time as the -n or -p options.



          The -p-option is the safer route in case there are other serious errors, but if that doesn't work, try -y.




          clone_file_block error



          This appears to be a known bug. You can try your luck with a newer version of the e2fsprogs packages from the pre-release Utopic series through Launchpad or with a live system image.






          share|improve this answer


























          • Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

            – venta7
            Sep 28 '14 at 22:07











          • Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

            – David Foerster
            Sep 28 '14 at 22:11











          • I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

            – venta7
            Sep 28 '14 at 22:14











          • here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

            – venta7
            Sep 28 '14 at 23:01













          • Please add this info to your question and see my edit.

            – David Foerster
            Sep 28 '14 at 23:11














          0












          0








          0







          Advisory note: It would be a very good idea to backup the entire file system before performing any changes or fixes to it. If you don't have enough space for that use e2image(8) as an emergency precaution.



          Fixing corrupt superblocks [Edit]



          According to your comment you have a corrupt file system superblock. There's an answer on serverfault that deals with this.



          Since it's impossible to find the correct block size without a working superblock, I would guess from the volume size of 400 GB that the block size is 4 KiB, which leads to a superblock backup position of 32768. Therefore



          e2fsck -b 32768 -p /dev/sda5


          and then take it from there depending on the output.



          Fighting the repetitive user interaction requests



          I pulled the following from the e2fsck(8) manual:




          -p     Automatically  repair  ("preen")  the  file system.  This option
          will cause e2fsck to automatically fix any filesystem problems
          that can be safely fixed without human intervention. If e2fsck
          discovers a problem which may require the system administrator
          to take additional corrective action, e2fsck will print a
          description of the problem and then exit with the value 4
          logically or'ed into the exit code. (See the EXIT CODE
          section.) This option is normally used by the system's boot
          scripts. It may not be specified at the same time as the -n or
          -y options.

          -y Assume an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively. This option may not be specified at the
          same time as the -n or -p options.



          The -p-option is the safer route in case there are other serious errors, but if that doesn't work, try -y.




          clone_file_block error



          This appears to be a known bug. You can try your luck with a newer version of the e2fsprogs packages from the pre-release Utopic series through Launchpad or with a live system image.






          share|improve this answer















          Advisory note: It would be a very good idea to backup the entire file system before performing any changes or fixes to it. If you don't have enough space for that use e2image(8) as an emergency precaution.



          Fixing corrupt superblocks [Edit]



          According to your comment you have a corrupt file system superblock. There's an answer on serverfault that deals with this.



          Since it's impossible to find the correct block size without a working superblock, I would guess from the volume size of 400 GB that the block size is 4 KiB, which leads to a superblock backup position of 32768. Therefore



          e2fsck -b 32768 -p /dev/sda5


          and then take it from there depending on the output.



          Fighting the repetitive user interaction requests



          I pulled the following from the e2fsck(8) manual:




          -p     Automatically  repair  ("preen")  the  file system.  This option
          will cause e2fsck to automatically fix any filesystem problems
          that can be safely fixed without human intervention. If e2fsck
          discovers a problem which may require the system administrator
          to take additional corrective action, e2fsck will print a
          description of the problem and then exit with the value 4
          logically or'ed into the exit code. (See the EXIT CODE
          section.) This option is normally used by the system's boot
          scripts. It may not be specified at the same time as the -n or
          -y options.

          -y Assume an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively. This option may not be specified at the
          same time as the -n or -p options.



          The -p-option is the safer route in case there are other serious errors, but if that doesn't work, try -y.




          clone_file_block error



          This appears to be a known bug. You can try your luck with a newer version of the e2fsprogs packages from the pre-release Utopic series through Launchpad or with a live system image.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 28 '14 at 23:38

























          answered Sep 28 '14 at 21:58









          David FoersterDavid Foerster

          28.4k1366111




          28.4k1366111













          • Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

            – venta7
            Sep 28 '14 at 22:07











          • Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

            – David Foerster
            Sep 28 '14 at 22:11











          • I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

            – venta7
            Sep 28 '14 at 22:14











          • here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

            – venta7
            Sep 28 '14 at 23:01













          • Please add this info to your question and see my edit.

            – David Foerster
            Sep 28 '14 at 23:11



















          • Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

            – venta7
            Sep 28 '14 at 22:07











          • Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

            – David Foerster
            Sep 28 '14 at 22:11











          • I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

            – venta7
            Sep 28 '14 at 22:14











          • here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

            – venta7
            Sep 28 '14 at 23:01













          • Please add this info to your question and see my edit.

            – David Foerster
            Sep 28 '14 at 23:11

















          Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

          – venta7
          Sep 28 '14 at 22:07





          Thanks for trying to help me out with this. Just for clarification - you're suggesting to run fsck or 'e2fsck -p /dev/sda5' , do I understood correctly?

          – venta7
          Sep 28 '14 at 22:07













          Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

          – David Foerster
          Sep 28 '14 at 22:11





          Just use e2fsck -p … in this case. If sda5 contains is an ext file system, fsck defers to e2fsck – and it definitely does since we wouldn't see that error message otherwise.

          – David Foerster
          Sep 28 '14 at 22:11













          I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

          – venta7
          Sep 28 '14 at 22:14





          I'm downloading utopic right now and will create live system image, boot and run e2fsck ... the one thing I'm worried is that I don't have additional 400GB hard drive to backup or clone the /home partition. Thanks I will comment when have the result.

          – venta7
          Sep 28 '14 at 22:14













          here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

          – venta7
          Sep 28 '14 at 23:01







          here is what I've got after running 'e2fsck -p /dev/sda5' - /dev/sda5 contains a file system with errors, check forced. /dev/sda5: Root inode is not a directory. /dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY. (i.e. without -a or -p options) What should I do next?

          – venta7
          Sep 28 '14 at 23:01















          Please add this info to your question and see my edit.

          – David Foerster
          Sep 28 '14 at 23:11





          Please add this info to your question and see my edit.

          – David Foerster
          Sep 28 '14 at 23:11


















          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%2f529811%2fcorrupted-filesystem-unable-to-mount-home%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

          Questions related to Moebius Transform of Characteristic Function of the Primes

          List of scandals in India

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?