Hello everyone,
I had to reset my NCP because my SD card was apparently defective.
I had my hard disk inserted and formatted via Nextcloud wizard.
Now, as you can see in the following pictures, this hard disk is not being used as a storage medium. I only have the memory of the SD card available.
Since I got an error message during setup, I suspect that something is wrong with the path of the hard disk. Or is the hard disk mounted incorrectly?
Unfortunately, I lack a lot of knowledge about Linux and mounting and I have not found a suitable article in the forum.
I need your help!
PS: Please keep in mind that I am not an expert and rather a beginner
Here is the data for the NC:
Operating system: Linux 6.6.44-current-bcm2711 aarch64
Processor: Raspberry Pi 4 Model B Rev 1.5 (4 cores)
Memory: 1.80 GB
PHP version: 8.1.29
NextcloudPi version v1.55.1
datadir /media/USBdrive/ncdata/data
Nextcloud version 28.0.7.4
Can no one really help? I just can’t imagine that the problem with the hard disk can’t be solved.
Can someone tell me how to find the path to the hard disk? You can move the data directory in the Config menu. Maybe that would help?
But I don’t know how to find the correct path to the hard disk.
THX
Hello Oliver,
Thank you for your message. Unfortunately, it fails at the first command. I access the NCP via Putty and have entered your first command from your instructions ( sudo mkdir/media/ncp).
The answer I get is: command not found
So I think I got it right then. In the web interface, it then showed me sda1 as mount: /media/ncp (previously /media/myclouddrive)
However, this did not solve my problem. It still showed the free space of the SD card and not that of the hard disk.
I then tried to move the data directory in the Web Config interface to this new path (/media/ncp/ncdata), but it didn’t work (the message that the old folder was not empty was displayed - abort).
And now nothing works anymore (Nextcloud no longer works / NCP config still works). Always brings the message that .ocdata is missing. Apparently I am entering the wrong path!?
Could it be that the mounting is not my problem but the correct path to the hard disk?
What preconditions (preparations) must be given so that the data directory can be moved and which folder must I specify?
Does your new data dir actually contain your files? Usually .ocdata is a file that tells nextcloud that this is the root data folder containing subfolders for each user. The leading . before the name means it is a hidden file in linux. If you have the user folders but no .ocdata file, you could try to create it:
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).
“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)
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.