how to add an external USB disk? Is there an easy way to do this via dietpi?
I have connected the hard disk, I have activated external storage in Nextcloud. But unfortunately the hard disk is not displayed.
Sorry for my bad english

Code: Select all
mkdir /mnt/my_mount/my_data
chown -R www-data:www-data /mnt/my_mount/my_data
Code: Select all
chown -R www-data:www-data /mnt/nextcloud
But now i get:If for some reason you want other data to stay on the root partition, you can alternatively edit /DietPi/dietpi.txt SOFTWARE_NEXTCLOUD_DATADIR=/mnt/nextcloud. But this requires a fresh Nextcloud install (so uninstall it completely and install again).
I try:DietPi-Software: ncc maintenance:install
- Exit code: 1
- DietPi version: v6.24.1 (MichaIng/master) | HW_MODEL:3 | HW_ARCH:2 | DISTRO:4
- Image creator: DietPi Core Team
- Pre-image: Raspbian Lite
Log file contents:
Can't create or write into the data directory /mnt/nextcloud
Unable to continue, DietPi-Software will now terminate.
Code: Select all
chown -R www-data:www-data /mnt/nextcloud
Code: Select all
mkdir -p $datadir
chown -R www-data:www-data $datadir
Code: Select all
chown -R www-data:www-data /mnt/nextcloud
ls -l /mnt/nextcloud