Hello everyone,
I’m reporting back as I have finally found a solution or my error after a lot of research.
Many thanks to the few members who helped with a comment.
My solution is perhaps not the most professional and also not the shortest, but it worked.
Here is my solution.
Problem:
After setting up the Nextcloudpi again (SD card was defective and I had no backup), the external hard disk was no longer used as a storage medium. Only the storage space of the SD card was available.
Solution:
-Hard disk formatted again as NTFS. I simply installed the Raspberrypi OS on the SD card and then reformatted it using the “gparted” program.
Windows does not recognize BTRFS hard disks! You need a Linux operating system for this.
-Now mount the hard disk automatically (format and mount) with a newly installed Nextcloudpi and the Nextcloud Wizard.
-This did not work properly for me → The hard disk was mounted, but apparently the file system was not moved correctly.
-Now create the correct path via the command line either via SSH (Putty) or Nextcloudpi directly (connect screen and keyboard).
sudo btrfs subvolume create /media/myCloudDrive/ncdata
sudo chown www-data:www-data /media/myCloudDrive/ncdata
“myCloudDrive” is the automatically assigned name. Think that this is always assigned for the first hard disk that is automatically mounted via the wizard.
Pay attention to spaces and capitalization (this will be important again later)
The correct path can also be found in the following image (then add /ncdata)
-Now use the configuration interface to change the file directory to
/media/myCloudDrive/ncdata
via the configuration interface.
See picture
And that’s it.
After that it worked for me again. I don’t know if some steps are superfluous but that’s how it worked.
One of my mistakes was that I didn’t pay attention to upper and lower case.
I hope I can help the one or other unknowing user.
Best regards
Rico