How to create an encrypted local drive in Ubuntu?

How to create an encrypted local drive in Ubuntu?

I've done it several ways, but it doesn't seem to work.

I have some encrypted files in a local folder, and I would like to access them by mounting the decrypted drive.

On Windows I can do it, but on Ubuntu it looks totally different.

I created the encrypted remote and it looked like this:

[Location]
type = crypt
remote = /home/user/Desktop/Folder1/:/home/user/Desktop/PLX/
directory_name_encryption = true
password = xxxxxxxxxxxxxxxxxxxxx

The other one I created like this

[Location]
type = crypt
remote = Folder1:PLX
directory_name_encryption = true
password = xxxxxxxxxxxxxxxxxxxxx

I'm setting it up like this:
rclone mount /home/user/Desktop/Folder1/: /home/user/Desktop/PLX/
And it causes this error:

Local file system at /home/user/Desktop/Folder1/:: Statfs failed: failed to read disk usage: no such file or directory

So it doesn't work either:
rclone mount Folder1:PLX

I just want to mount the drive in the folder where the encrypted files are, so I can access them without encryption. I already did this 2 years ago, but I don't remember how.

Sorry if it's confusing :S

Assuming that Folder1 is where you want to store your data and PLX is mount point create your encrypted remote:

[Location]
type = crypt
remote = /home/user/Desktop/Folder1
directory_name_encryption = true
password = xxxxxxxxxxxxxxxxxxxxx

and mount it:

rclone mount Location: /home/user/Desktop/PLX

Thank you very much, friend! It worked perfectly. Something simple, but it was driving me crazy, as it had been a while since I had touched rclone.

Thank you very much, may God bless you greatly! :pray:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.