I/O error when reading data from /dev/mapper/veracrypt1












0















Issue I'm having is similar to can't read superblock on /dev/mapper/veracrypt1 with the exception that mapper device cannot be read at all. Underlying physical disk can be read.
I.e. Veracrypt can decrypt the encrypted container, but cannot return a single byte from it.



More specifically:




  • Ubuntu server 18.04 with four disks fully encrypted with Veracrypt 1.23.

  • One disk fails to mount after power loss.

  • Unable to quickly figure out what is wrong with the failed disk, I re-create the veracrypt partition and re-copy the data on it.

  • After second power loss two disks fail to mount. The same one as before, and another one.

  • Of the two failing, first one has one encrypted partition and the other one is completely encrypted. (So they have different setup.)

  • Veracrypt mount fails due to can't read superblock error.

  • Mounting with --filesystem=none option works and allows access to mapper device.

  • Resulting /dev/mapper/veracrypt1 cannot be inspected nor fixed with normal tools mke2fs, e2fsck since it cannot be read at all.

  • Even dd from /dev/mapper/veracrypt1 fails. While trying syslog is populated with FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE, Sense Key : Medium Error [current] and Add. Sense: Unrecovered read error - auto reallocate failed messages.


  • dd from underlying hard drive device /dev/sde or /dev/sdb1 works with no problems and allows reading of the whole disk in it's encrypted form.


I was suspecting some kind of a hardware failure but:




  • SMART reports both failed disks have never had any issues. They can also be read as mentioned above.

  • The failed disks are connected to different SATA cards and both are the only disk connected to their respective card.


I am mystified. Any ideas what might be going and what to try?










share|improve this question



























    0















    Issue I'm having is similar to can't read superblock on /dev/mapper/veracrypt1 with the exception that mapper device cannot be read at all. Underlying physical disk can be read.
    I.e. Veracrypt can decrypt the encrypted container, but cannot return a single byte from it.



    More specifically:




    • Ubuntu server 18.04 with four disks fully encrypted with Veracrypt 1.23.

    • One disk fails to mount after power loss.

    • Unable to quickly figure out what is wrong with the failed disk, I re-create the veracrypt partition and re-copy the data on it.

    • After second power loss two disks fail to mount. The same one as before, and another one.

    • Of the two failing, first one has one encrypted partition and the other one is completely encrypted. (So they have different setup.)

    • Veracrypt mount fails due to can't read superblock error.

    • Mounting with --filesystem=none option works and allows access to mapper device.

    • Resulting /dev/mapper/veracrypt1 cannot be inspected nor fixed with normal tools mke2fs, e2fsck since it cannot be read at all.

    • Even dd from /dev/mapper/veracrypt1 fails. While trying syslog is populated with FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE, Sense Key : Medium Error [current] and Add. Sense: Unrecovered read error - auto reallocate failed messages.


    • dd from underlying hard drive device /dev/sde or /dev/sdb1 works with no problems and allows reading of the whole disk in it's encrypted form.


    I was suspecting some kind of a hardware failure but:




    • SMART reports both failed disks have never had any issues. They can also be read as mentioned above.

    • The failed disks are connected to different SATA cards and both are the only disk connected to their respective card.


    I am mystified. Any ideas what might be going and what to try?










    share|improve this question

























      0












      0








      0








      Issue I'm having is similar to can't read superblock on /dev/mapper/veracrypt1 with the exception that mapper device cannot be read at all. Underlying physical disk can be read.
      I.e. Veracrypt can decrypt the encrypted container, but cannot return a single byte from it.



      More specifically:




      • Ubuntu server 18.04 with four disks fully encrypted with Veracrypt 1.23.

      • One disk fails to mount after power loss.

      • Unable to quickly figure out what is wrong with the failed disk, I re-create the veracrypt partition and re-copy the data on it.

      • After second power loss two disks fail to mount. The same one as before, and another one.

      • Of the two failing, first one has one encrypted partition and the other one is completely encrypted. (So they have different setup.)

      • Veracrypt mount fails due to can't read superblock error.

      • Mounting with --filesystem=none option works and allows access to mapper device.

      • Resulting /dev/mapper/veracrypt1 cannot be inspected nor fixed with normal tools mke2fs, e2fsck since it cannot be read at all.

      • Even dd from /dev/mapper/veracrypt1 fails. While trying syslog is populated with FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE, Sense Key : Medium Error [current] and Add. Sense: Unrecovered read error - auto reallocate failed messages.


      • dd from underlying hard drive device /dev/sde or /dev/sdb1 works with no problems and allows reading of the whole disk in it's encrypted form.


      I was suspecting some kind of a hardware failure but:




      • SMART reports both failed disks have never had any issues. They can also be read as mentioned above.

      • The failed disks are connected to different SATA cards and both are the only disk connected to their respective card.


      I am mystified. Any ideas what might be going and what to try?










      share|improve this question














      Issue I'm having is similar to can't read superblock on /dev/mapper/veracrypt1 with the exception that mapper device cannot be read at all. Underlying physical disk can be read.
      I.e. Veracrypt can decrypt the encrypted container, but cannot return a single byte from it.



      More specifically:




      • Ubuntu server 18.04 with four disks fully encrypted with Veracrypt 1.23.

      • One disk fails to mount after power loss.

      • Unable to quickly figure out what is wrong with the failed disk, I re-create the veracrypt partition and re-copy the data on it.

      • After second power loss two disks fail to mount. The same one as before, and another one.

      • Of the two failing, first one has one encrypted partition and the other one is completely encrypted. (So they have different setup.)

      • Veracrypt mount fails due to can't read superblock error.

      • Mounting with --filesystem=none option works and allows access to mapper device.

      • Resulting /dev/mapper/veracrypt1 cannot be inspected nor fixed with normal tools mke2fs, e2fsck since it cannot be read at all.

      • Even dd from /dev/mapper/veracrypt1 fails. While trying syslog is populated with FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE, Sense Key : Medium Error [current] and Add. Sense: Unrecovered read error - auto reallocate failed messages.


      • dd from underlying hard drive device /dev/sde or /dev/sdb1 works with no problems and allows reading of the whole disk in it's encrypted form.


      I was suspecting some kind of a hardware failure but:




      • SMART reports both failed disks have never had any issues. They can also be read as mentioned above.

      • The failed disks are connected to different SATA cards and both are the only disk connected to their respective card.


      I am mystified. Any ideas what might be going and what to try?







      mount hard-drive encryption veracrypt






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 31 at 23:06









      steelmonkeysteelmonkey

      12




      12






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Turns out it was a case of faulty memory.



          I noticed random looking crashes of various services in syslog, and started to suspect that it was kernel panic causing the reboot which had caused the filesystem corruption.



          Replaced the memory module and suddenly you could read from the encrypted container and fix the filesystem as instructed in can't read superblock on /dev/mapper/veracrypt1 .



          Also enabled apport to catch core dumps for the future.






          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%2f1114573%2fi-o-error-when-reading-data-from-dev-mapper-veracrypt1%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














            Turns out it was a case of faulty memory.



            I noticed random looking crashes of various services in syslog, and started to suspect that it was kernel panic causing the reboot which had caused the filesystem corruption.



            Replaced the memory module and suddenly you could read from the encrypted container and fix the filesystem as instructed in can't read superblock on /dev/mapper/veracrypt1 .



            Also enabled apport to catch core dumps for the future.






            share|improve this answer




























              0














              Turns out it was a case of faulty memory.



              I noticed random looking crashes of various services in syslog, and started to suspect that it was kernel panic causing the reboot which had caused the filesystem corruption.



              Replaced the memory module and suddenly you could read from the encrypted container and fix the filesystem as instructed in can't read superblock on /dev/mapper/veracrypt1 .



              Also enabled apport to catch core dumps for the future.






              share|improve this answer


























                0












                0








                0







                Turns out it was a case of faulty memory.



                I noticed random looking crashes of various services in syslog, and started to suspect that it was kernel panic causing the reboot which had caused the filesystem corruption.



                Replaced the memory module and suddenly you could read from the encrypted container and fix the filesystem as instructed in can't read superblock on /dev/mapper/veracrypt1 .



                Also enabled apport to catch core dumps for the future.






                share|improve this answer













                Turns out it was a case of faulty memory.



                I noticed random looking crashes of various services in syslog, and started to suspect that it was kernel panic causing the reboot which had caused the filesystem corruption.



                Replaced the memory module and suddenly you could read from the encrypted container and fix the filesystem as instructed in can't read superblock on /dev/mapper/veracrypt1 .



                Also enabled apport to catch core dumps for the future.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 8 at 7:14









                steelmonkeysteelmonkey

                12




                12






























                    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%2f1114573%2fi-o-error-when-reading-data-from-dev-mapper-veracrypt1%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 reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?