Ubuntu "Fatal error: mounting is not supported when running from snap"

What is the problem you are having with rclone?

When I try to mount my Proton Drive I get
"Fatal error: mounting is not supported when running from snap"

rclone v1.69.0

  • os/version: ubuntu 24.04 (64 bit)
  • os/kernel: 6.8.0-52-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.4
  • go/linking: static
  • go/tags: snap

Which cloud storage system are you using? (eg Google Drive)

Proton Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount Proton: ProtonLocal --vfs-cache-mode full

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[Proton]
type = protondrive
username = XXXXXXX@XXXXX.com
password = XXX
2fa = XXXXXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX

A log from the command that you were trying to run with the -vv flag

2025/02/04 02:06:40 CRITICAL: Fatal error: mounting is not supported when running from snap

As per docs:

Note: Due to the strict confinement of Snap, rclone mount feature is not supported.

Uninstall it and download directly from rclone website if you need mount.

Thanks for the response! =)

I did this but it seems to still be looking for the snap version.

rclone v1.69.0 has successfully installed.
Now run "rclone config" for setup. Check Documentation for more details.

user@xxxxxxxxx:~$ rclone config
bash: /snap/bin/rclone: No such file or directory

Sorry if this is due to my linux ignorance.

Yeap. It is:) definitely not rclone problem anymore:)

It still remembers old rclone binary location. You have to refresh shell paths' cache. I think hash -r should do the trick. If not, then you can always restart your session or least beautiful but surprisingly effective full system reboot.

1 Like

Thanks so much. It seems to be working. However, after I run the command in the terminal window, it just hangs there. The command prompt never returned nor did I get anything to indicate that it was successful. Is that normal?

Yes. This is normal. If you do not want terminal session occupied by rclone mount you have to run it as a service.

In case of Linux the best approach is to use systemd. You will find plenty of examples online including this forum. For example:

or

https://devblog.jpcaparas.com/setting-up-an-rclone-mount-as-a-systemd-user-service-49fcb0f2bd8f

1 Like

Thank you so much for your patience with a Linux newbie. =)

Sorry, one other question. I disabled 2fa to get this to work. On the Proton Drive configuration page it mentions this.

--protondrive-2fa

Will this prompt me to enter the 2fa code each time it mounts? It is a time based code so I can't add it to the config file.

You have to provide 2FA info when you create Proton remote. It is used only once to create access token so no need to provide it later again.

1 Like

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