Why won't my Linux machine start?












1















In November I bought a Librem 15, which is a Linux laptop running PureOS. PureOS isn't Ubuntu but it is a Debian-variant that has a lot of security/privacy settings enabled by default, so it's very similar. One of those default security settings is Disk Encryption, using a program called LUKS. So every time I start up my laptop, I have to first enter the disk encryption password so that it can start booting. Then it boots into PureOS and I enter my user password.



For the past four months this has worked great and it generally boots very fast. However, earlier today I ran sudo apt upgrade to upgrade all of the software packages, and now I'm really regretting that I did that. It no longer boots! At least not fully.



Now, what's happening is this:




  • It prompts me for my disk encryption password

  • It displays the boot animation

  • But it just hangs there


If I press Esc to get out of the boot animation screen, I'll see a bunch of boot messages and then this line at the bottom:




[ ***] A start job is running for /dev/mapper/luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa (9min 38s / no limit)




The 9min / 38s is just a timer that continually counts up. But it just keeps counting and counting, never proceeding past that step to finish booting into PureOS. I'm not really sure what to do at this point. I tried pressing Ctrl+Alt+Delete from this screen, and one time it actually worked; on reboot I was able to get in. But now (after another reboot) I'm stuck on this boot screen again. And this time it doesn't seem to be going away.



How can I get my machine to boot?



UPDATE: After a little more digging, I discovered a few more details. It seems my disk is segmented into a couple of different partitions. Here is the output of lsblk:



NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0 7:0 0 91.1M 1 loop /snap/core/6259
loop1 7:1 0 89.5M 1 loop /snap/core/6130
loop2 7:2 0 91M 1 loop /snap/core/6350
loop3 7:3 0 8K 1 loop /snap/anbox-installer/24
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 1.1G 0 part /boot
├─nvme0n1p2 259:2 0 447.5G 0 part
│ └─luks-0a47a276-75cb-4928-8d8f-35a8d78c02ce 254:0 0 447.5G 0 crypt /
└─nvme0n1p3 259:3 0 17.1G 0 part
└─luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa 254:1 0 17.1G 0 crypt [SWAP]


I noticed that when I'm first prompted to enter the disk encryption password, it references the UUID of the main partition, saying Please unlock disk luks-0a47a276-75cb-4928-8d8f-35a8d78a02ce. But then when it gets stuck, it references the UUID of the swap partition. That suggests, to me, that it is having trouble decrypting the swap partition.










share|improve this question

























  • Tried searching the web for A start job is running for /dev/mapper/luks ? Few different answers & things to check, perhaps see unix.stackexchange.com/questions/107810/…

    – Xen2050
    Feb 14 at 2:08
















1















In November I bought a Librem 15, which is a Linux laptop running PureOS. PureOS isn't Ubuntu but it is a Debian-variant that has a lot of security/privacy settings enabled by default, so it's very similar. One of those default security settings is Disk Encryption, using a program called LUKS. So every time I start up my laptop, I have to first enter the disk encryption password so that it can start booting. Then it boots into PureOS and I enter my user password.



For the past four months this has worked great and it generally boots very fast. However, earlier today I ran sudo apt upgrade to upgrade all of the software packages, and now I'm really regretting that I did that. It no longer boots! At least not fully.



Now, what's happening is this:




  • It prompts me for my disk encryption password

  • It displays the boot animation

  • But it just hangs there


If I press Esc to get out of the boot animation screen, I'll see a bunch of boot messages and then this line at the bottom:




[ ***] A start job is running for /dev/mapper/luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa (9min 38s / no limit)




The 9min / 38s is just a timer that continually counts up. But it just keeps counting and counting, never proceeding past that step to finish booting into PureOS. I'm not really sure what to do at this point. I tried pressing Ctrl+Alt+Delete from this screen, and one time it actually worked; on reboot I was able to get in. But now (after another reboot) I'm stuck on this boot screen again. And this time it doesn't seem to be going away.



How can I get my machine to boot?



UPDATE: After a little more digging, I discovered a few more details. It seems my disk is segmented into a couple of different partitions. Here is the output of lsblk:



NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0 7:0 0 91.1M 1 loop /snap/core/6259
loop1 7:1 0 89.5M 1 loop /snap/core/6130
loop2 7:2 0 91M 1 loop /snap/core/6350
loop3 7:3 0 8K 1 loop /snap/anbox-installer/24
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 1.1G 0 part /boot
├─nvme0n1p2 259:2 0 447.5G 0 part
│ └─luks-0a47a276-75cb-4928-8d8f-35a8d78c02ce 254:0 0 447.5G 0 crypt /
└─nvme0n1p3 259:3 0 17.1G 0 part
└─luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa 254:1 0 17.1G 0 crypt [SWAP]


I noticed that when I'm first prompted to enter the disk encryption password, it references the UUID of the main partition, saying Please unlock disk luks-0a47a276-75cb-4928-8d8f-35a8d78a02ce. But then when it gets stuck, it references the UUID of the swap partition. That suggests, to me, that it is having trouble decrypting the swap partition.










share|improve this question

























  • Tried searching the web for A start job is running for /dev/mapper/luks ? Few different answers & things to check, perhaps see unix.stackexchange.com/questions/107810/…

    – Xen2050
    Feb 14 at 2:08














1












1








1








In November I bought a Librem 15, which is a Linux laptop running PureOS. PureOS isn't Ubuntu but it is a Debian-variant that has a lot of security/privacy settings enabled by default, so it's very similar. One of those default security settings is Disk Encryption, using a program called LUKS. So every time I start up my laptop, I have to first enter the disk encryption password so that it can start booting. Then it boots into PureOS and I enter my user password.



For the past four months this has worked great and it generally boots very fast. However, earlier today I ran sudo apt upgrade to upgrade all of the software packages, and now I'm really regretting that I did that. It no longer boots! At least not fully.



Now, what's happening is this:




  • It prompts me for my disk encryption password

  • It displays the boot animation

  • But it just hangs there


If I press Esc to get out of the boot animation screen, I'll see a bunch of boot messages and then this line at the bottom:




[ ***] A start job is running for /dev/mapper/luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa (9min 38s / no limit)




The 9min / 38s is just a timer that continually counts up. But it just keeps counting and counting, never proceeding past that step to finish booting into PureOS. I'm not really sure what to do at this point. I tried pressing Ctrl+Alt+Delete from this screen, and one time it actually worked; on reboot I was able to get in. But now (after another reboot) I'm stuck on this boot screen again. And this time it doesn't seem to be going away.



How can I get my machine to boot?



UPDATE: After a little more digging, I discovered a few more details. It seems my disk is segmented into a couple of different partitions. Here is the output of lsblk:



NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0 7:0 0 91.1M 1 loop /snap/core/6259
loop1 7:1 0 89.5M 1 loop /snap/core/6130
loop2 7:2 0 91M 1 loop /snap/core/6350
loop3 7:3 0 8K 1 loop /snap/anbox-installer/24
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 1.1G 0 part /boot
├─nvme0n1p2 259:2 0 447.5G 0 part
│ └─luks-0a47a276-75cb-4928-8d8f-35a8d78c02ce 254:0 0 447.5G 0 crypt /
└─nvme0n1p3 259:3 0 17.1G 0 part
└─luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa 254:1 0 17.1G 0 crypt [SWAP]


I noticed that when I'm first prompted to enter the disk encryption password, it references the UUID of the main partition, saying Please unlock disk luks-0a47a276-75cb-4928-8d8f-35a8d78a02ce. But then when it gets stuck, it references the UUID of the swap partition. That suggests, to me, that it is having trouble decrypting the swap partition.










share|improve this question
















In November I bought a Librem 15, which is a Linux laptop running PureOS. PureOS isn't Ubuntu but it is a Debian-variant that has a lot of security/privacy settings enabled by default, so it's very similar. One of those default security settings is Disk Encryption, using a program called LUKS. So every time I start up my laptop, I have to first enter the disk encryption password so that it can start booting. Then it boots into PureOS and I enter my user password.



For the past four months this has worked great and it generally boots very fast. However, earlier today I ran sudo apt upgrade to upgrade all of the software packages, and now I'm really regretting that I did that. It no longer boots! At least not fully.



Now, what's happening is this:




  • It prompts me for my disk encryption password

  • It displays the boot animation

  • But it just hangs there


If I press Esc to get out of the boot animation screen, I'll see a bunch of boot messages and then this line at the bottom:




[ ***] A start job is running for /dev/mapper/luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa (9min 38s / no limit)




The 9min / 38s is just a timer that continually counts up. But it just keeps counting and counting, never proceeding past that step to finish booting into PureOS. I'm not really sure what to do at this point. I tried pressing Ctrl+Alt+Delete from this screen, and one time it actually worked; on reboot I was able to get in. But now (after another reboot) I'm stuck on this boot screen again. And this time it doesn't seem to be going away.



How can I get my machine to boot?



UPDATE: After a little more digging, I discovered a few more details. It seems my disk is segmented into a couple of different partitions. Here is the output of lsblk:



NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0 7:0 0 91.1M 1 loop /snap/core/6259
loop1 7:1 0 89.5M 1 loop /snap/core/6130
loop2 7:2 0 91M 1 loop /snap/core/6350
loop3 7:3 0 8K 1 loop /snap/anbox-installer/24
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 1.1G 0 part /boot
├─nvme0n1p2 259:2 0 447.5G 0 part
│ └─luks-0a47a276-75cb-4928-8d8f-35a8d78c02ce 254:0 0 447.5G 0 crypt /
└─nvme0n1p3 259:3 0 17.1G 0 part
└─luks-204dc5ca-8fbd-4b02-9833-3661ffd0c0aa 254:1 0 17.1G 0 crypt [SWAP]


I noticed that when I'm first prompted to enter the disk encryption password, it references the UUID of the main partition, saying Please unlock disk luks-0a47a276-75cb-4928-8d8f-35a8d78a02ce. But then when it gets stuck, it references the UUID of the swap partition. That suggests, to me, that it is having trouble decrypting the swap partition.







linux boot debian encryption luks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 14 at 15:26







Gordon Myers

















asked Feb 14 at 1:51









Gordon MyersGordon Myers

39861337




39861337













  • Tried searching the web for A start job is running for /dev/mapper/luks ? Few different answers & things to check, perhaps see unix.stackexchange.com/questions/107810/…

    – Xen2050
    Feb 14 at 2:08



















  • Tried searching the web for A start job is running for /dev/mapper/luks ? Few different answers & things to check, perhaps see unix.stackexchange.com/questions/107810/…

    – Xen2050
    Feb 14 at 2:08

















Tried searching the web for A start job is running for /dev/mapper/luks ? Few different answers & things to check, perhaps see unix.stackexchange.com/questions/107810/…

– Xen2050
Feb 14 at 2:08





Tried searching the web for A start job is running for /dev/mapper/luks ? Few different answers & things to check, perhaps see unix.stackexchange.com/questions/107810/…

– Xen2050
Feb 14 at 2:08










1 Answer
1






active

oldest

votes


















0














I eventually got lucky and was able to boot into the system. As I mentioned in my update above, I noticed two different UUIDs during the boot process, so a little investigation revealed that one of them was my main / partition while the other was the swap partition, and moreover it was getting choked up on the swap partition.



I ended up running the following two commands in serial, to forcibly clear the swap:



sudo swapoff -a
sudo swapon -a


Then I rebooted and didn't seem to have any further issues (knock on wood). But had I not gotten "lucky" and gotten into the OS to do that analysis (and to clear the swap), I'm not sure how I could have solved this problem. So the only answer I have to how one can get at least that far is to pray!






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f1405506%2fwhy-wont-my-linux-machine-start%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














    I eventually got lucky and was able to boot into the system. As I mentioned in my update above, I noticed two different UUIDs during the boot process, so a little investigation revealed that one of them was my main / partition while the other was the swap partition, and moreover it was getting choked up on the swap partition.



    I ended up running the following two commands in serial, to forcibly clear the swap:



    sudo swapoff -a
    sudo swapon -a


    Then I rebooted and didn't seem to have any further issues (knock on wood). But had I not gotten "lucky" and gotten into the OS to do that analysis (and to clear the swap), I'm not sure how I could have solved this problem. So the only answer I have to how one can get at least that far is to pray!






    share|improve this answer




























      0














      I eventually got lucky and was able to boot into the system. As I mentioned in my update above, I noticed two different UUIDs during the boot process, so a little investigation revealed that one of them was my main / partition while the other was the swap partition, and moreover it was getting choked up on the swap partition.



      I ended up running the following two commands in serial, to forcibly clear the swap:



      sudo swapoff -a
      sudo swapon -a


      Then I rebooted and didn't seem to have any further issues (knock on wood). But had I not gotten "lucky" and gotten into the OS to do that analysis (and to clear the swap), I'm not sure how I could have solved this problem. So the only answer I have to how one can get at least that far is to pray!






      share|improve this answer


























        0












        0








        0







        I eventually got lucky and was able to boot into the system. As I mentioned in my update above, I noticed two different UUIDs during the boot process, so a little investigation revealed that one of them was my main / partition while the other was the swap partition, and moreover it was getting choked up on the swap partition.



        I ended up running the following two commands in serial, to forcibly clear the swap:



        sudo swapoff -a
        sudo swapon -a


        Then I rebooted and didn't seem to have any further issues (knock on wood). But had I not gotten "lucky" and gotten into the OS to do that analysis (and to clear the swap), I'm not sure how I could have solved this problem. So the only answer I have to how one can get at least that far is to pray!






        share|improve this answer













        I eventually got lucky and was able to boot into the system. As I mentioned in my update above, I noticed two different UUIDs during the boot process, so a little investigation revealed that one of them was my main / partition while the other was the swap partition, and moreover it was getting choked up on the swap partition.



        I ended up running the following two commands in serial, to forcibly clear the swap:



        sudo swapoff -a
        sudo swapon -a


        Then I rebooted and didn't seem to have any further issues (knock on wood). But had I not gotten "lucky" and gotten into the OS to do that analysis (and to clear the swap), I'm not sure how I could have solved this problem. So the only answer I have to how one can get at least that far is to pray!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 14 at 15:43









        Gordon MyersGordon Myers

        39861337




        39861337






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f1405506%2fwhy-wont-my-linux-machine-start%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

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix