Nextcloud Snap - Data Directory on synology share

Hello,

my target is to use the nextcloud snap with the nextcloud data directory on an synology share.

Unfortunately I am a linux newbie.

I installed Nextcloud snap on Ubuntu 18.04.02. LTS the following way:

Installation Nextcloud:

sudo snap install nextcloud
sudo snap connect nextcloud:removable-media

Mount Synology to /media/nextcloud/next-02:

sudo gedit /etc/fstab

//ds-001/nextCloud/next-02 /media/nextcloud/next-02 cifs defaults,uid=1000,username=,password=

Change Data Directory to synology share:

Now I get “Your data directory is not writable”.

Maybe it is not possible because of security restrictions of the snap environment?

Thanks in advance.
Regards, Jonas

For NTFS formatted drives follow this step by step

  1. Run the blkid command and find the UUID for your drive and write it down.

  2. Create the mount point where you want it to mount. In my case I only managed to get it to work in the /mnt/ folder

Example:
cd /mnt/
mkdir /Nextcloud/

  1. Edit your /etc/fstab file with your preferred editor and add the line below

UUID=0071900363FC570D /mnt/Nextcloud ntfs-3g utf8,uid=root,gid=root,umask=0007,noatime,x-gvfs-show 0 0

Obs

Change the UUID to the value corresponding to your unit

Remember the drive cannot be recognized by Nextcloud if it is mounted at /media/user/path.

Restart the system to apply the settings.