Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 29240  / 3 Years ago, mon, october 11, 2021, 9:53:16

An encrypted /home directory gets mounted automatically for me when I log in. I have a second internal hard drive that I've formatted and encrypted with Disk Utility. I want it to be automatically mounted when I login, just like my encrypted /home directory is. How do I do this?



There are several very similar questions here, but the answers don't apply to my situation. It might be best to close/merge my question here and edit the second one below, but I think it may have been abandoned (and therefore never to be marked as accepted).



This solution isn't a secure method, it circumvents the encryption.

This one requires editing fstab, which necessitates entering an additional password at boot. It's not automatic like mounting /home.

This question is very similar, but does not apply to an encrypted drive. The solution won't work for my needs.

Here is one but it's for NTFS drives, mine is ext4.



I can re-format and re-encrypt the second drive if a solution requires this. I've got all the data backed up elsewhere.


More From » encryption

 Answers
3

You no longer need the solutions above.


Prerequisites:



Note: this method is less secure than mounting an encrypted drive manually. If someone has physical access to your computer, you are careless with your root password, or your computer has multiple users/guest accounts, this method is not secure; the secondary drive stays mounted when you log out but do not shut down the system, so its contents are visible to other users.


Part 1: Encrypt the secondary drive.



  1. In the Unity dash type "disks" and hit enter.

  2. Below "Devices" click on the hard drive you want to encrypt.

  3. Below "Volumes" click on the cog/more actions button.

  4. Click "Format Volume". For type, choose "Encrypted, compatible with Linux systems." Name your drive and give it a strong pass phrase.

  5. Click "Format"


Part 2: Automatically mount the HDD on system start-up.



  1. Keep the "Disks" application open, and click on the cog.

  2. Click "Edit Encryption Options."

  3. "Automatic Encryption Options" will be turned on, and the menu below greyed out. Turn automatic encryption options off.

  4. Enter the pass phrase from when you formatted the disk. Click "Ok".


You now have an encrypted hard drive that will automatically mount when your computer boots.


[#40407] Tuesday, October 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rstride

Total Points: 305
Total Questions: 112
Total Answers: 118

Location: Mali
Member since Sat, Dec 26, 2020
3 Years ago
;