hi guys, im new here.
soo ive configured nextcloud to use my external disk as storage but its not showing the correct free space, any help would be appriciated
hi guys, im new here.
soo ive configured nextcloud to use my external disk as storage but its not showing the correct free space, any help would be appriciated
Hi @anhwaivo
What would be the free space you would expect Nextcloud to show you? You did not provide the size of your external drive and the filesystem used to format it.
What is the output of
df -TPk
h.t.h.
ernolf
it should be around 1tb (the disk is /dev/sdb1 and should be mounted on /mnt/1tb)
and heres output from df -TPk
www-data@22a9398e7d12:~/html$ df -TPk
Filesystem Type 1024-blocks Used Available Capacity Mounted on
overlay overlay 478096136 72447996 381288716 16% /
tmpfs tmpfs 65536 0 65536 0% /dev
shm tmpfs 65536 0 65536 0% /dev/shm
/dev/sda2 ext4 478096136 72447996 381288716 16% /etc/hosts
tmpfs tmpfs 4007484 0 4007484 0% /proc/asound
tmpfs tmpfs 4007484 0 4007484 0% /proc/acpi
tmpfs tmpfs 4007484 0 4007484 0% /sys/firmware
tmpfs tmpfs 4007484 0 4007484 0% /sys/devices/virtual/powercap
It “should” be mounted but it is not.
Everything is written on the drive /dev/sda2 in that mount path but since your usb drive is not mounted there at all, you only get the free space from your /dev/sda2 disk, wich is round about 360 GB.
Is that from within a docker container or how do I have to understand that output?
I need the output called by root from the host where your usb drive “should” be mounted.
that is a very uncommon mount point in my opinion. What was the reason for that?
/etc/hosts is an important system file. I have never heard about mounting drives on that path.
Much and good luck,
ernolf
sorry for taking your time, i eventually figured out that i didnt mount the drive correctly, ty for your help!
edit: bruh, i got this error now:
Your data directory is invalid.
Ensure there is a file called ".ncdata" in the root of the data directory. It should have the content: "# Nextcloud data directory"
of course you have got that error, since the data directory is located on the filesystem from your mountpoint and is not on the mointed disk.
You should now first mount your disk on an other temporary mountpoint and move the content of /mnt/1tb/nextcloud
into your disk. I wrote “move” becaus the mountpoint itself has to be empty after that. Then, mount your disk on the planned mountpoint and start your container again.
Then it should work.
This works the best, if you know exactly what you are doing!
h.t.h.
ernolf
i tried that before your reply, but the directory on the first disk should be empty?
edit: ty man, ive done it and it worked
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.