As you can see from the attached images files within my hard drive isn’t showing in nextcloud but does show in other places. It is added through the administration using these settings: Imgur: The magic of the Internet When I try and write to the drive it says unable to create file from template: Imgur: The magic of the Internet
This is what happens when I rescan my files: https://imgur.com/a/CF7z8hz It seems to be a permission issue, one problem is that idk how to fix this.
I followed those instructions and I am still getting messages saying permission denied when I rescan. and now no drives at all are showing in my media folder in nextcloud where I am trying to mount my HDDs, I had it working before but its decided to break itself now after I reformatted one of my hard drives.
Snap has very little but very specific set of customization option. You can’t change the location of the default storage unless you follow that exact steps.
External Storage must be mounted under either “mnt” or “media”
Snap must be commanded to access external sudo snap connect nextcloud:removable-media
Config file located at /var/snap/nextcloud/current/nextcloud/config/config.php must be edited for value DataDirectory for the new location (that external drive
Contents of default storage location /var/snap/nextcloud/common/nextcloud/data must be moved to new location
So you can’t just mount the whole of the media folder so you have access to all of your files over next cloud like I did before it broke? Just in case I created separate mounts for the different drives and it still doesn’t work
I don’t really think you understand what I am doing, I am trying to mount external storage inside of next cloud using the external storage app not change my data directory for next cloud
Like you I had some troubles setting up my external storage to make it work at the beginning.
What you need is make sure that “www-data” has the ownership of all your files (also the root directory) in the mounted drive, and the permissions iirc are set to -rw-r-----.
And make sure you have configured correctly your external storage in the Nextcloud settings:
Folder: is the folder where you can access you external drive in Nextcloud