I’m setting my RPi3 to serve OwnCloud and I’ve got external drive for the data. My issue is that when selecting location where my data folder is into the set-up page it gives me: error can't create or write into the data directory
so I added UUID=F307-C810 /media/pi/F307-C810 auto nofail,uid=33,gid=33,umask=0027,dmask=0$ into /etc/fstab file which sets ownership of the drive on every boot. 33 is id of the OwnCloud user and F307-C810 being the drive name.
I also ran sudo chmod -R 775 /media/pi/F307-C810 which should give sufficient permissions for my use case.
What filesystem is your drive?
The user and group id is only set on non POSIX filesystems like NTFS or FAT.
If you’re using a native filesystem like EXT4, you’ll just mount as root, and create a user folder inside the mount point.