How can I change the path of datadir and dbdir (external drive) to use the USB Disc Label and not USB Drive Number?
I was moving datadir and dbdir to an external drive (formatted a.s.o. from NextCloudPi as described):
/media/myCloudDrive/ncdatabase
and
/media/myCloudDrive/ncdata
These paths are valid (also shown as valid in NextCloudPi)
But in System info, I always get
/media/USBdrive/ncdata
and
/media/USBdrive/ncdatabase
After as soon as I plug in a second drive USBdrive changes to USBdrive1 plugging in a second drive breaks NextCloud.
If I try to set the path to â/media/myCloudDrive/âŚâ using the move database/datadir tools I get an error this folders are not empty - well, yes, they host the current datadir/database , just under the âlabelâ path and not usb drive path.
So - how do I change this? How can I tell Nextcloud to plleeeeeaasssseeeee use the label and not the hard coded drive path� So not MOVING the directory, just use the label name�
Thanks
Matthias
|NextCloudPi version|v1.16.4|
|distribution|Raspbian GNU/Linux 10 \n \l|
Support intro
Sorry to hear youâre facing problems
help.nextcloud.com is for home/non-enterprise users. If youâre running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isnât supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 1.16.04):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):
The issue you are facing:
Is this the first time youâve seen this error? (Y/N):
Steps to replicate it:
The output of your Nextcloud log in Admin > Logging:
PASTE HERE
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
PASTE HERE
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE