Hello,
how can i add my external hard drive as main data for nextcloud ?
After check this tuto : https://github.com/nextcloud/nextcloudpi/wiki/Configuration-Reference#nc-datadir
I dont see nc-datadir in my panel …
My setup :
Raspberry pi3 - Raspbian
Docker
Nextcloudpi
External storage 1TB ext4
Thx for your help.
Patesz
2
Hi,
that’s the same problem for me.
Could someone help me?
thank you very much in advance
OliverV
3
nc-datadir is not available in ncp’s docker image
This is how I make it work for me.
Preparations:
- Create a mountpoint for ncdata
sudo mkdir /media/ncp
- Find UUID of external drive
ls -lh /dev/disk/by-uuid/
(Mine looks like this)
total 0
lrwxrwxrwx 1 root root 15 Aug 11 09:10 29075e46-f0d4-44e2-a9e7-55ac02d6e6cc → …/…/mmcblk0p2
lrwxrwxrwx 1 root root 10 Aug 11 09:10 35e98a80-8895-41f4-93e7-39940a1fda70 → …/…/sda1
lrwxrwxrwx 1 root root 15 Aug 11 09:10 9304-D9FD → …/…/mmcblk0p1
- Add a ligne to /etc/fstab
sudo nano /etc/fstab
add line for your drive (copy/paste your drive’s UUID):
UUID=YourDrive’sUUID /media/ncp ext4 rw,users 0 0
sudo mount -a
Now you can :
- remove existing container,
docker rm nextcloudpi
- create a new directory for ncdata as for example
sudo mkdir /media/ncp/ncdata
- then run/create container with
docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /media/ncp/ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-armhf 192.168.n.nn
docker logs -f nextcloudpi
(ctrl+c to exit log)
As this question was asked before (also on Telegram) I’ve added above answer to the docker getting started documentation for future reference