I’ve been running NextcloudPi with data stored on a large external USB drive. Now I’m installing Nextcloud AIO and would like it to have access to files on the USB drive. I’ve never used Docker before.
The files (from the previous NextcloudPi installation) are currently at /media/nextcloud/myCloudDrive/ncdata/data/tomgeller/files. (Where tomgeller was my NextcloudPi username.)
I’m using shell with the Linux username nextcloud, and am able to cd down to /media/nextcloud/myCloudDrive/ncdata without problems. but then when I try to cd down to data, I get Permission denied. Permissions for the data directory are 750 / www-data:root.
I’ve tried using –env NEXTCLOUD_MOUNT=“/media/” during installation, along with --env NEXTCLOUD_DATADIR="/media/nextcloud/myCloudDrive/ncdata/data". This never works. I assume it’s because of permissions issues.
I see directions at GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance. · GitHub :
…please make sure to apply the correct permissions to the directories that you want to use in Nextcloud. E.g.
sudo chown -R 33:0 /mnt/your-drive-mountpointandsudo chmod -R 750 /mnt/your-drive-mountpointshould make it work on Linux when you have used--env NEXTCLOUD_MOUNT="/mnt/".
Changing ownership on every single file and directory on an 18TB drive seems irresponsible to me. Most (but not all) appear to be owned by www-data:www-data. I don’t have a second drive of this size, so making a backup first isn’t possible.
Thank you for any help you could offer!