DM-Crypt does not accept passphrase











up vote
0
down vote

favorite
1












The partition table is:



sda1 - /boot



sda2 - dmcrypt with LVM, containing root, home and swap volumes



Cryptsetup does not accept passphrase, that have been used for a long time and can not have any mistakes.
I tried to mount it using PXE Live Ubuntu:



root@ubuntu:~# cryptsetup luksOpen /dev/sda2 vgroot
Enter passphrase for /dev/sda2:
No key available with this passphrase.


On the live image US keyboard layot is only one by default. Copying and pasting of passphrase does not help too.



A month ago I have successfully mounted the dm-crypt on the same live image to chroot.



I have Ubuntu 14.04 installed and 13.10 live image on PXE boot.










share|improve this question






















  • And did anything happen last month when you "mounted the dm-crypt on the same live image to chroot"? Something changed/overwritten?
    – Xen2050
    Jan 25 '15 at 8:16















up vote
0
down vote

favorite
1












The partition table is:



sda1 - /boot



sda2 - dmcrypt with LVM, containing root, home and swap volumes



Cryptsetup does not accept passphrase, that have been used for a long time and can not have any mistakes.
I tried to mount it using PXE Live Ubuntu:



root@ubuntu:~# cryptsetup luksOpen /dev/sda2 vgroot
Enter passphrase for /dev/sda2:
No key available with this passphrase.


On the live image US keyboard layot is only one by default. Copying and pasting of passphrase does not help too.



A month ago I have successfully mounted the dm-crypt on the same live image to chroot.



I have Ubuntu 14.04 installed and 13.10 live image on PXE boot.










share|improve this question






















  • And did anything happen last month when you "mounted the dm-crypt on the same live image to chroot"? Something changed/overwritten?
    – Xen2050
    Jan 25 '15 at 8:16













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





The partition table is:



sda1 - /boot



sda2 - dmcrypt with LVM, containing root, home and swap volumes



Cryptsetup does not accept passphrase, that have been used for a long time and can not have any mistakes.
I tried to mount it using PXE Live Ubuntu:



root@ubuntu:~# cryptsetup luksOpen /dev/sda2 vgroot
Enter passphrase for /dev/sda2:
No key available with this passphrase.


On the live image US keyboard layot is only one by default. Copying and pasting of passphrase does not help too.



A month ago I have successfully mounted the dm-crypt on the same live image to chroot.



I have Ubuntu 14.04 installed and 13.10 live image on PXE boot.










share|improve this question













The partition table is:



sda1 - /boot



sda2 - dmcrypt with LVM, containing root, home and swap volumes



Cryptsetup does not accept passphrase, that have been used for a long time and can not have any mistakes.
I tried to mount it using PXE Live Ubuntu:



root@ubuntu:~# cryptsetup luksOpen /dev/sda2 vgroot
Enter passphrase for /dev/sda2:
No key available with this passphrase.


On the live image US keyboard layot is only one by default. Copying and pasting of passphrase does not help too.



A month ago I have successfully mounted the dm-crypt on the same live image to chroot.



I have Ubuntu 14.04 installed and 13.10 live image on PXE boot.







encryption lvm dmcrypt






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 23 '15 at 9:34









Dinarx

111




111












  • And did anything happen last month when you "mounted the dm-crypt on the same live image to chroot"? Something changed/overwritten?
    – Xen2050
    Jan 25 '15 at 8:16


















  • And did anything happen last month when you "mounted the dm-crypt on the same live image to chroot"? Something changed/overwritten?
    – Xen2050
    Jan 25 '15 at 8:16
















And did anything happen last month when you "mounted the dm-crypt on the same live image to chroot"? Something changed/overwritten?
– Xen2050
Jan 25 '15 at 8:16




And did anything happen last month when you "mounted the dm-crypt on the same live image to chroot"? Something changed/overwritten?
– Xen2050
Jan 25 '15 at 8:16










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Well, the error "No key available with this passphrase" sounds like the key you're looking for is not in the LUKS header anymore. Could be the wrong passphrase, or could be something happened to that key, or the whole LUKS header. If you have a backup of the LUKS header you can try using it with the cryptsetup option --header



And try the --verbose & --debug options too, maybe there'll be more info revealed. The action isLuks -v <device> might be helpful to see if it's still a recognizable LUKS device.



And like the man cryptsetup page describes below, a LUKS header backup is important, (and look into the luksHeaderBackup and luksHeaderRestore actions too):




LUKS header: If the header of a LUKS volume gets damaged, all data is permanently lost unless
you have a header-backup. If a key-slot is damaged, it can only be restored from a header-
backup or if another active key-slot with known passphrase is undamaged. Damaging the LUKS
header is something people manage to do with surprising frequency. This risk is the result of
a trade-off between security and safety, as LUKS is designed for fast and secure wiping by
just overwriting header and key-slot area.







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',
    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%2f576848%2fdm-crypt-does-not-accept-passphrase%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








    up vote
    0
    down vote













    Well, the error "No key available with this passphrase" sounds like the key you're looking for is not in the LUKS header anymore. Could be the wrong passphrase, or could be something happened to that key, or the whole LUKS header. If you have a backup of the LUKS header you can try using it with the cryptsetup option --header



    And try the --verbose & --debug options too, maybe there'll be more info revealed. The action isLuks -v <device> might be helpful to see if it's still a recognizable LUKS device.



    And like the man cryptsetup page describes below, a LUKS header backup is important, (and look into the luksHeaderBackup and luksHeaderRestore actions too):




    LUKS header: If the header of a LUKS volume gets damaged, all data is permanently lost unless
    you have a header-backup. If a key-slot is damaged, it can only be restored from a header-
    backup or if another active key-slot with known passphrase is undamaged. Damaging the LUKS
    header is something people manage to do with surprising frequency. This risk is the result of
    a trade-off between security and safety, as LUKS is designed for fast and secure wiping by
    just overwriting header and key-slot area.







    share|improve this answer

























      up vote
      0
      down vote













      Well, the error "No key available with this passphrase" sounds like the key you're looking for is not in the LUKS header anymore. Could be the wrong passphrase, or could be something happened to that key, or the whole LUKS header. If you have a backup of the LUKS header you can try using it with the cryptsetup option --header



      And try the --verbose & --debug options too, maybe there'll be more info revealed. The action isLuks -v <device> might be helpful to see if it's still a recognizable LUKS device.



      And like the man cryptsetup page describes below, a LUKS header backup is important, (and look into the luksHeaderBackup and luksHeaderRestore actions too):




      LUKS header: If the header of a LUKS volume gets damaged, all data is permanently lost unless
      you have a header-backup. If a key-slot is damaged, it can only be restored from a header-
      backup or if another active key-slot with known passphrase is undamaged. Damaging the LUKS
      header is something people manage to do with surprising frequency. This risk is the result of
      a trade-off between security and safety, as LUKS is designed for fast and secure wiping by
      just overwriting header and key-slot area.







      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Well, the error "No key available with this passphrase" sounds like the key you're looking for is not in the LUKS header anymore. Could be the wrong passphrase, or could be something happened to that key, or the whole LUKS header. If you have a backup of the LUKS header you can try using it with the cryptsetup option --header



        And try the --verbose & --debug options too, maybe there'll be more info revealed. The action isLuks -v <device> might be helpful to see if it's still a recognizable LUKS device.



        And like the man cryptsetup page describes below, a LUKS header backup is important, (and look into the luksHeaderBackup and luksHeaderRestore actions too):




        LUKS header: If the header of a LUKS volume gets damaged, all data is permanently lost unless
        you have a header-backup. If a key-slot is damaged, it can only be restored from a header-
        backup or if another active key-slot with known passphrase is undamaged. Damaging the LUKS
        header is something people manage to do with surprising frequency. This risk is the result of
        a trade-off between security and safety, as LUKS is designed for fast and secure wiping by
        just overwriting header and key-slot area.







        share|improve this answer












        Well, the error "No key available with this passphrase" sounds like the key you're looking for is not in the LUKS header anymore. Could be the wrong passphrase, or could be something happened to that key, or the whole LUKS header. If you have a backup of the LUKS header you can try using it with the cryptsetup option --header



        And try the --verbose & --debug options too, maybe there'll be more info revealed. The action isLuks -v <device> might be helpful to see if it's still a recognizable LUKS device.



        And like the man cryptsetup page describes below, a LUKS header backup is important, (and look into the luksHeaderBackup and luksHeaderRestore actions too):




        LUKS header: If the header of a LUKS volume gets damaged, all data is permanently lost unless
        you have a header-backup. If a key-slot is damaged, it can only be restored from a header-
        backup or if another active key-slot with known passphrase is undamaged. Damaging the LUKS
        header is something people manage to do with surprising frequency. This risk is the result of
        a trade-off between security and safety, as LUKS is designed for fast and secure wiping by
        just overwriting header and key-slot area.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 25 '15 at 8:16









        Xen2050

        6,64212142




        6,64212142






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f576848%2fdm-crypt-does-not-accept-passphrase%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 send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?