Why is my computer booting into emergency mode after changing fstab?Mount encrypted home during boot...
Are Boeing 737-800’s grounded?
What makes accurate emulation of old systems a difficult task?
US visa is under administrative processing, I need the passport back ASAP
Is there a way to get a compiler for the original B programming language?
Do I have an "anti-research" personality?
Why other Westeros houses don't use wildfire?
How come there are so many candidates for the 2020 Democratic party presidential nomination?
Can I spend a night at Vancouver then take a flight to my college in Toronto as an international student?
What is the difference between `command a[bc]d` and `command `a{b,c}d`
How would one muzzle a full grown polar bear in the 13th century?
What is the relationship between spectral sequences and obstruction theory?
How to creep the reader out with what seems like a normal person?
What does it mean to express a gate in Dirac notation?
Is there any limitation with Arduino Nano serial communication distance?
Does Gita support doctrine of eternal cycle of birth and death for evil people?
How to get a plain text file version of a CP/M .BAS (M-BASIC) program?
How can the Zone of Truth spell be defeated without the caster knowing?
Map of water taps to fill bottles
How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?
What is the most expensive material in the world that could be used to create Pun-Pun's lute?
How do I reattach a shelf to the wall when it ripped out of the wall?
Combinable filters
Does a semiconductor follow Ohm's law?
How to verbalise code in Mathematica?
Why is my computer booting into emergency mode after changing fstab?
Mount encrypted home during boot (dm-crypt, luks)Prevent mounting a partition in fstab“mount -a” not called at startup?Ubuntu booting to maintenance mode after altering /etc/fstabWrong mount point ignoring /etc/fstab for a btrfs raid1System crashes on boot if more than 2 drives in fstab?Error “failed to mount /etc/fstab” at startup after attempting to add an HDD to fstabExternal Hard Drive Causes System to Boot Into Emergency Mode?Ubuntu 18.04 Emergency ModeHow do I automatically mount LUKS drives upon login?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have an external USB hard drive that I configured to automatically mount to a specific location when it is connected. I configured this by:
adding the following line in /etc/crypttab
:
device_name UUID=device-uuid-abcd-1234 none luks
... and adding the following line in /etc/fstab
:
/dev/mapper/device_name /home/myuser/desired-directory/ ext4 user 0 0
And it was working perfectly!
Whenever I connected the external hard drive, I would be prompted for its encryption password, and after entering the correct password I could find all its data in my configured directory.
The trouble is... when I reboot my laptop, I am booted into emergency mode (presumably only when the external drive is not attached). And no matter what command I issue... I cannot boot in into Ubuntu normally.
If I comment out the line I added to fstab
, I can boot normally (I do not have to comment out the line I added in crypttab
).
I can add the noauto
option to my custom line in the fstab
file, but that then requires me to manually mount my hard drive every time I accatch it, and I do not want to have to do that.
What do I need to do so that my computer boots normally and automatically mounts my hard drive whenever it is plugged in?
boot 18.04 mount fstab
add a comment |
I have an external USB hard drive that I configured to automatically mount to a specific location when it is connected. I configured this by:
adding the following line in /etc/crypttab
:
device_name UUID=device-uuid-abcd-1234 none luks
... and adding the following line in /etc/fstab
:
/dev/mapper/device_name /home/myuser/desired-directory/ ext4 user 0 0
And it was working perfectly!
Whenever I connected the external hard drive, I would be prompted for its encryption password, and after entering the correct password I could find all its data in my configured directory.
The trouble is... when I reboot my laptop, I am booted into emergency mode (presumably only when the external drive is not attached). And no matter what command I issue... I cannot boot in into Ubuntu normally.
If I comment out the line I added to fstab
, I can boot normally (I do not have to comment out the line I added in crypttab
).
I can add the noauto
option to my custom line in the fstab
file, but that then requires me to manually mount my hard drive every time I accatch it, and I do not want to have to do that.
What do I need to do so that my computer boots normally and automatically mounts my hard drive whenever it is plugged in?
boot 18.04 mount fstab
Is the luks device opened / decrypted when booting without the fstab entry? Initial guess: try noauto &/or nofail in the fstab 4th field
– Xen2050
13 hours ago
@Xen2050 Hey, thanks for the tips, but those don't give me the desired behavior. :( Yes, I can manually open/decrypt without the entries in fstab and crypttab. I edited my post to make it more clear what the problem is and what I am trying to do.
– foxyjacob
4 hours ago
add a comment |
I have an external USB hard drive that I configured to automatically mount to a specific location when it is connected. I configured this by:
adding the following line in /etc/crypttab
:
device_name UUID=device-uuid-abcd-1234 none luks
... and adding the following line in /etc/fstab
:
/dev/mapper/device_name /home/myuser/desired-directory/ ext4 user 0 0
And it was working perfectly!
Whenever I connected the external hard drive, I would be prompted for its encryption password, and after entering the correct password I could find all its data in my configured directory.
The trouble is... when I reboot my laptop, I am booted into emergency mode (presumably only when the external drive is not attached). And no matter what command I issue... I cannot boot in into Ubuntu normally.
If I comment out the line I added to fstab
, I can boot normally (I do not have to comment out the line I added in crypttab
).
I can add the noauto
option to my custom line in the fstab
file, but that then requires me to manually mount my hard drive every time I accatch it, and I do not want to have to do that.
What do I need to do so that my computer boots normally and automatically mounts my hard drive whenever it is plugged in?
boot 18.04 mount fstab
I have an external USB hard drive that I configured to automatically mount to a specific location when it is connected. I configured this by:
adding the following line in /etc/crypttab
:
device_name UUID=device-uuid-abcd-1234 none luks
... and adding the following line in /etc/fstab
:
/dev/mapper/device_name /home/myuser/desired-directory/ ext4 user 0 0
And it was working perfectly!
Whenever I connected the external hard drive, I would be prompted for its encryption password, and after entering the correct password I could find all its data in my configured directory.
The trouble is... when I reboot my laptop, I am booted into emergency mode (presumably only when the external drive is not attached). And no matter what command I issue... I cannot boot in into Ubuntu normally.
If I comment out the line I added to fstab
, I can boot normally (I do not have to comment out the line I added in crypttab
).
I can add the noauto
option to my custom line in the fstab
file, but that then requires me to manually mount my hard drive every time I accatch it, and I do not want to have to do that.
What do I need to do so that my computer boots normally and automatically mounts my hard drive whenever it is plugged in?
boot 18.04 mount fstab
boot 18.04 mount fstab
edited 4 hours ago
foxyjacob
asked 15 hours ago
foxyjacobfoxyjacob
813
813
Is the luks device opened / decrypted when booting without the fstab entry? Initial guess: try noauto &/or nofail in the fstab 4th field
– Xen2050
13 hours ago
@Xen2050 Hey, thanks for the tips, but those don't give me the desired behavior. :( Yes, I can manually open/decrypt without the entries in fstab and crypttab. I edited my post to make it more clear what the problem is and what I am trying to do.
– foxyjacob
4 hours ago
add a comment |
Is the luks device opened / decrypted when booting without the fstab entry? Initial guess: try noauto &/or nofail in the fstab 4th field
– Xen2050
13 hours ago
@Xen2050 Hey, thanks for the tips, but those don't give me the desired behavior. :( Yes, I can manually open/decrypt without the entries in fstab and crypttab. I edited my post to make it more clear what the problem is and what I am trying to do.
– foxyjacob
4 hours ago
Is the luks device opened / decrypted when booting without the fstab entry? Initial guess: try noauto &/or nofail in the fstab 4th field
– Xen2050
13 hours ago
Is the luks device opened / decrypted when booting without the fstab entry? Initial guess: try noauto &/or nofail in the fstab 4th field
– Xen2050
13 hours ago
@Xen2050 Hey, thanks for the tips, but those don't give me the desired behavior. :( Yes, I can manually open/decrypt without the entries in fstab and crypttab. I edited my post to make it more clear what the problem is and what I am trying to do.
– foxyjacob
4 hours ago
@Xen2050 Hey, thanks for the tips, but those don't give me the desired behavior. :( Yes, I can manually open/decrypt without the entries in fstab and crypttab. I edited my post to make it more clear what the problem is and what I am trying to do.
– foxyjacob
4 hours ago
add a comment |
0
active
oldest
votes
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
});
}
});
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%2faskubuntu.com%2fquestions%2f1138551%2fwhy-is-my-computer-booting-into-emergency-mode-after-changing-fstab%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%2faskubuntu.com%2fquestions%2f1138551%2fwhy-is-my-computer-booting-into-emergency-mode-after-changing-fstab%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
Is the luks device opened / decrypted when booting without the fstab entry? Initial guess: try noauto &/or nofail in the fstab 4th field
– Xen2050
13 hours ago
@Xen2050 Hey, thanks for the tips, but those don't give me the desired behavior. :( Yes, I can manually open/decrypt without the entries in fstab and crypttab. I edited my post to make it more clear what the problem is and what I am trying to do.
– foxyjacob
4 hours ago