Problem mounting encrpyted folder on Ubuntu VPS

I’ve been following the Tech Perplexed tutrorial for creating a Plex VPS. Unfortunately it does not include any information about how to mount an encrypted folder.

The encrypted folder contents do show up when I type

rclone -q ls :secure

but I am unable to see the contents when I point Plex to /mnt/secure

The mounting script in TechPerplexed’s tutorial (not sure whether I am allowed to include links) is

[Unit]
Description=Mount Amazon Cloud Drive to /mnt/ACD
After=syslog.target local-fs.target network.target
[Service]
Type=simple
User=root
ExecStartPre=-/bin/mkdir /mnt/ACD
ExecStart=/usr/sbin/rclone mount
–config /home/yourusername/.config/rclone/rclone.conf
–read-only
–allow-other
–allow-non-empty
–acd-templink-threshold 0
–buffer-size 64M
ACD:/Plex /mnt/ACD
ExecStop=/bin/fusermount -u //mnt/ACD
ExecStop=/bin/rmdir /mnt/ACD
Restart=always
[Install]
WantedBy=multi-user.target

My current remotes are shown below and my Plex media folder Movies and TV are subfolders in secure.

Current remotes:

Name Type
==== ====
ACD amazon cloud drive
secure crypt

Iv’e been playing with this part of the script " ACD:/Plex /mnt/ACD " but I can’t seem to get Plex to see anything inside the mount.

Edit: My version of the script is as follows

[Unit]
Description=Mount Secure Amazon Cloud Drive to /mnt/secure
After=syslog.target local-fs.target network.target
[Service]
Type=simple
User=root
ExecStartPre=-/bin/mkdir /mnt/secure
ExecStart=/usr/sbin/rclone mount
–config /home/plexuser/.config/rclone/rclone.conf
–read-only
–allow-other
–allow-non-empty
–acd-templink-threshold 0
–buffer-size 64M
ACD:secure/secure /mnt/secure
ExecStop=/bin/fusermount -u //mnt/secure
ExecStop=/bin/rmdir /mnt/secure
Restart=always
[Install]
WantedBy=multi-user.target

Any help would be appreciated.

Hi, if your ACD drive is called secure and your mount folder is /mnt/secure try with

[Unit]
Description=Mount Secure Amazon Cloud Drive to /mnt/secure
After=syslog.target local-fs.target network.target
[Service]
Type=simple
User=root
ExecStartPre=-/bin/mkdir /mnt/secure
ExecStart=/usr/sbin/rclone mount
–config /home/plexuser/.config/rclone/rclone.conf
–read-only
–allow-other
–allow-non-empty
–acd-templink-threshold 0
–buffer-size 64M
secure: /mnt/secure
ExecStop=/bin/fusermount -u //mnt/secure
ExecStop=/bin/rmdir /mnt/secure
Restart=always
[Install]
WantedBy=multi-user.target

you also have to check if your config file is in this path –config /home/plexuser/.config/rclone/rclone.conf (in my installation, and i guess it’s the default location for ubuntu, it’s located in /home/yourusername/.rclone.conf) and i don’t know if the double backslash here would work, maybe another could tell us. ExecStop=/bin/fusermount -u **//**mnt/secure

It was a a permissions error.

If I tried a simple mount using the following

plexuser@ssdnodes-server1:~$ rclone mount --max-read-ahead 1024k --allow-other secure: /mnt/secure &

I would get an error that the user did not have write permissions and the mount would fail

by using the following (placing the sudo command first)

plexuser@ssdnodes-server1:~$ sudo rclone mount --max-read-ahead 1024k --allow-other secure: /mnt/secure &

then the mount was successful and I could access the encrypted folder.

1 Like

You also could have changed the permissions of the folder to access it with the user of your choice. Then you can use mount it without to sudo the command.