How do I automatically mount LUKS drives upon login? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Mount encrypted home during boot (dm-crypt, luks)Error while encrypting swap on Ubuntu 12.04How to use fsck in Ubuntu?Mount LUKS encrypted hard drive at bootLUKS LVM device mapped by UUID instead of e.g. sda5_cryptLUKS keyscript being ignored … asks for passwordHow do I move/home folder to a luks encrypted external drive?Ubuntu 16.04 login loop withEcrypfts to LUKS on ext4 partitionHow to get grub to boot from a newly encrypted partition
Was credit for the black hole image misattributed?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
In horse breeding, what is the female equivalent of putting a horse out "to stud"?
Wolves and sheep
Can withdrawing asylum be illegal?
How to pronounce 1ターン?
Why is the object placed in the middle of the sentence here?
Can a novice safely splice in wire to lengthen 5V charging cable?
Python - Fishing Simulator
Am I ethically obligated to go into work on an off day if the reason is sudden?
Is there a writing software that you can sort scenes like slides in PowerPoint?
How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green
Working through the single responsibility principle (SRP) in Python when calls are expensive
Why can't wing-mounted spoilers be used to steepen approaches?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Make it rain characters
Segmentation fault output is suppressed when piping stdin into a function. Why?
What aspect of planet Earth must be changed to prevent the industrial revolution?
Why can't devices on different VLANs, but on the same subnet, communicate?
The variadic template constructor of my class cannot modify my class members, why is that so?
Hiding Certain Lines on Table
ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?
how can a perfect fourth interval be considered either consonant or dissonant?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
How do I automatically mount LUKS drives upon login?
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Mount encrypted home during boot (dm-crypt, luks)Error while encrypting swap on Ubuntu 12.04How to use fsck in Ubuntu?Mount LUKS encrypted hard drive at bootLUKS LVM device mapped by UUID instead of e.g. sda5_cryptLUKS keyscript being ignored … asks for passwordHow do I move/home folder to a luks encrypted external drive?Ubuntu 16.04 login loop withEcrypfts to LUKS on ext4 partitionHow to get grub to boot from a newly encrypted partition
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have three hard drives in my PC, all encrypted with LUKS. When booting from the primary drive, I enter my password to unlock the drive and log into Ubuntu 18.04. From the file browser, I can click on the other encrypted drives and they automatically mount - but I have to click them to achieve this. I would prefer it if these drives automatically mounted from inside Ubuntu. I followed the instructions on this page (https://www.howtoforge.com/automatically-unlock-luks-encrypted-drives-with-a-keyfile) and Ubuntu failed to boot - I had to use the terminal in emergency mode to revert my changes. Can someone please give me advice on how to get this working?
Screenshot of gparted - https://imgur.com/a/otFE6MD
I originally setup LUKS on the non-system drives through the Ubuntu Disks tool.
Here is my original /etc/crypttab file:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
Here is my edited /etc/crypttab file which won't boot:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
sdc_crypt /dev/sdc /root/keyfile luks
sdd_crypt /dev/sdd /root/keyfile luks
Here is my original /etc/fs/tab file:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
Here is my edited /etc/fstab file which won't boot:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/sdc_crypt /media/p/Data1 ext4 defaults 0 2
/dev/mapper/sdd_crypt /media/p/Data2 ext4 defaults 0 2
mount encryption automount luks
New contributor
add a comment |
I have three hard drives in my PC, all encrypted with LUKS. When booting from the primary drive, I enter my password to unlock the drive and log into Ubuntu 18.04. From the file browser, I can click on the other encrypted drives and they automatically mount - but I have to click them to achieve this. I would prefer it if these drives automatically mounted from inside Ubuntu. I followed the instructions on this page (https://www.howtoforge.com/automatically-unlock-luks-encrypted-drives-with-a-keyfile) and Ubuntu failed to boot - I had to use the terminal in emergency mode to revert my changes. Can someone please give me advice on how to get this working?
Screenshot of gparted - https://imgur.com/a/otFE6MD
I originally setup LUKS on the non-system drives through the Ubuntu Disks tool.
Here is my original /etc/crypttab file:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
Here is my edited /etc/crypttab file which won't boot:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
sdc_crypt /dev/sdc /root/keyfile luks
sdd_crypt /dev/sdd /root/keyfile luks
Here is my original /etc/fs/tab file:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
Here is my edited /etc/fstab file which won't boot:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/sdc_crypt /media/p/Data1 ext4 defaults 0 2
/dev/mapper/sdd_crypt /media/p/Data2 ext4 defaults 0 2
mount encryption automount luks
New contributor
Can you take a screenshot of the app Gparted showing the three hard drives and then upload the picture to imgur.com. Finally, put a link of the uploaded image in the question above? Also add in the question how you originally set up LUKS for the two other encrypted drives. Copy and paste the contents of the file/etc/crypttab
in the question. Then format the pasted text as code using the icon above the Edit Question window.
– user68186
Apr 10 at 21:46
add a comment |
I have three hard drives in my PC, all encrypted with LUKS. When booting from the primary drive, I enter my password to unlock the drive and log into Ubuntu 18.04. From the file browser, I can click on the other encrypted drives and they automatically mount - but I have to click them to achieve this. I would prefer it if these drives automatically mounted from inside Ubuntu. I followed the instructions on this page (https://www.howtoforge.com/automatically-unlock-luks-encrypted-drives-with-a-keyfile) and Ubuntu failed to boot - I had to use the terminal in emergency mode to revert my changes. Can someone please give me advice on how to get this working?
Screenshot of gparted - https://imgur.com/a/otFE6MD
I originally setup LUKS on the non-system drives through the Ubuntu Disks tool.
Here is my original /etc/crypttab file:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
Here is my edited /etc/crypttab file which won't boot:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
sdc_crypt /dev/sdc /root/keyfile luks
sdd_crypt /dev/sdd /root/keyfile luks
Here is my original /etc/fs/tab file:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
Here is my edited /etc/fstab file which won't boot:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/sdc_crypt /media/p/Data1 ext4 defaults 0 2
/dev/mapper/sdd_crypt /media/p/Data2 ext4 defaults 0 2
mount encryption automount luks
New contributor
I have three hard drives in my PC, all encrypted with LUKS. When booting from the primary drive, I enter my password to unlock the drive and log into Ubuntu 18.04. From the file browser, I can click on the other encrypted drives and they automatically mount - but I have to click them to achieve this. I would prefer it if these drives automatically mounted from inside Ubuntu. I followed the instructions on this page (https://www.howtoforge.com/automatically-unlock-luks-encrypted-drives-with-a-keyfile) and Ubuntu failed to boot - I had to use the terminal in emergency mode to revert my changes. Can someone please give me advice on how to get this working?
Screenshot of gparted - https://imgur.com/a/otFE6MD
I originally setup LUKS on the non-system drives through the Ubuntu Disks tool.
Here is my original /etc/crypttab file:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
Here is my edited /etc/crypttab file which won't boot:
sda5_crypt UUID=69d81a7b-ca41-43b6-8731-556c93ca2337 none luks,discard
sdc_crypt /dev/sdc /root/keyfile luks
sdd_crypt /dev/sdd /root/keyfile luks
Here is my original /etc/fs/tab file:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
Here is my edited /etc/fstab file which won't boot:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
UUID=25153066-2214-41ef-bf5b-fbe2224ea456 /boot ext4 defaults 0 $
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/sdc_crypt /media/p/Data1 ext4 defaults 0 2
/dev/mapper/sdd_crypt /media/p/Data2 ext4 defaults 0 2
mount encryption automount luks
mount encryption automount luks
New contributor
New contributor
edited 2 days ago
Antoninius
New contributor
asked Apr 10 at 21:02
AntoniniusAntoninius
12
12
New contributor
New contributor
Can you take a screenshot of the app Gparted showing the three hard drives and then upload the picture to imgur.com. Finally, put a link of the uploaded image in the question above? Also add in the question how you originally set up LUKS for the two other encrypted drives. Copy and paste the contents of the file/etc/crypttab
in the question. Then format the pasted text as code using the icon above the Edit Question window.
– user68186
Apr 10 at 21:46
add a comment |
Can you take a screenshot of the app Gparted showing the three hard drives and then upload the picture to imgur.com. Finally, put a link of the uploaded image in the question above? Also add in the question how you originally set up LUKS for the two other encrypted drives. Copy and paste the contents of the file/etc/crypttab
in the question. Then format the pasted text as code using the icon above the Edit Question window.
– user68186
Apr 10 at 21:46
Can you take a screenshot of the app Gparted showing the three hard drives and then upload the picture to imgur.com. Finally, put a link of the uploaded image in the question above? Also add in the question how you originally set up LUKS for the two other encrypted drives. Copy and paste the contents of the file
/etc/crypttab
in the question. Then format the pasted text as code using the icon above the Edit Question window.– user68186
Apr 10 at 21:46
Can you take a screenshot of the app Gparted showing the three hard drives and then upload the picture to imgur.com. Finally, put a link of the uploaded image in the question above? Also add in the question how you originally set up LUKS for the two other encrypted drives. Copy and paste the contents of the file
/etc/crypttab
in the question. Then format the pasted text as code using the icon above the Edit Question window.– user68186
Apr 10 at 21:46
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
);
);
Antoninius is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1132833%2fhow-do-i-automatically-mount-luks-drives-upon-login%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
Antoninius is a new contributor. Be nice, and check out our Code of Conduct.
Antoninius is a new contributor. Be nice, and check out our Code of Conduct.
Antoninius is a new contributor. Be nice, and check out our Code of Conduct.
Antoninius is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1132833%2fhow-do-i-automatically-mount-luks-drives-upon-login%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
Can you take a screenshot of the app Gparted showing the three hard drives and then upload the picture to imgur.com. Finally, put a link of the uploaded image in the question above? Also add in the question how you originally set up LUKS for the two other encrypted drives. Copy and paste the contents of the file
/etc/crypttab
in the question. Then format the pasted text as code using the icon above the Edit Question window.– user68186
Apr 10 at 21:46