Skip to content

Navigation Menu

Sign in
Sign up

Entry in fstab for mounting the decrypted directory during startup #931

Unanswered
carnap64 asked this question in Q&A
Discussion options

Hello GoCryptFS discussants,

I'm relatively new to Linux and new to GoCryptFS, so please excuse my question if it's trivial, but I haven't found a working answer yet.

My situation:

  • Linux Ubuntu; gocryptfs installed; everything works fine when I mount the directory clear manually.
  • The configuration file is this: /home/carnap/gocryptfs/gocrypt.conf
  • The directory for the encrypted files: /media/backup_cloud/secret
  • a directory as a mount point for displaying the decrypted files: /media/backup_cloud/clear
  • In the root directory I have stored a hidden file with the password for decryption: /root/.gocryptfs_pw

Problem: I would like the clear directory to be mounted accordingly at system startup so that I have immediate access to the decrypted files. How do I do this?
I have added the following line to the fstab:

/media/backup_cloud/secret /media/backup_cloud/clear fuse./usr/bin/gocryptfs rw,nofail,auto,x-systemd.idle-timeout=10,x-systemd.automount,allow_other,quiet,passfile=/root/.gocryptfs_pw 0 0

It cannot find the configuration file. Where in the line should I specify it?

Best regards

You must be logged in to vote

Replies: 1 comment

Comment options

For Ubuntu Linux, the pam_mount works fine: https://github.com/rfjakob/gocryptfs/wiki/Mounting-on-login-using-pam_mount However, it works on user login instead of system startup. If you are ok with that, you could give it a try.
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /