Why won't my Linux machine start?
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
add a comment |
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
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
add a comment |
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
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
linux boot debian encryption luks
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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!
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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!
add a comment |
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!
add a comment |
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!
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!
answered Feb 14 at 15:43
Gordon MyersGordon Myers
39861337
39861337
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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