I get the error:
Can’t create or write into the data directory
I know there are already a few posts out there about this topic, but I was never able to resolve the problem after looking through most of them.
I want to install Nextcloud of a Raspberry Pi 4 where Ubuntu 21.04 is installed.
My plan is to place to the data directory on an external drive. The drive is formatted as ext4.
I already tried to apply these commands:
sudo chown -R www-data:www-data /media/user/Lexar/Nextcloud
sudo chmod -R 755 /media/user/Lexar/Nextcloud/
sudo chmod -R g+rwx /media/user/Lexar/Nextcloud/
and the directory does belong to www-data,
but still my efforts were to no avail.
After failing miserably for many long hours to resolve this issue,
I would be quite grateful for any help.
Since I am very new to Linux would be extra thankful for easy to understand explanation and maybe even what certain commands do, so I can learn to resolve such errors better my self.
Thank you in advance!