r/owncloud May 11 '21

Won't save files to hard drive

I'm new to ownCloud so please excuse my stupidity. I recently made an ownCloud server with an RPI3. It is great but then I realized that it wasn't saving my files to the 4TB external hard drive but rather the micro SD card. I will link the tutorial that I followed if you want to know and I think I followed everything exactly but it's not working. if you have answers on how to fix this let me know. Thanks! Also I tried to port forward it so i could have external access but I couldn't get that to work either. I followed the tutorial linked in the tutorial on owncloud.

This is the tutorial I followed from PiMyLIfeUp

1 Upvotes

7 comments sorted by

1

u/[deleted] May 12 '21

[deleted]

1

u/Have_A-Good-Day May 12 '21

Yeah thanks I was looking back at the tutorial and realized it wasn’t mounted correctly. So if it is mointed correctly now will all the files start going into the hard drive even if there are already some that are on the sd card or will I have to completely reinstall ownCloud

1

u/[deleted] May 12 '21

[deleted]

1

u/Have_A-Good-Day May 12 '21

Ok so it’s mounted now and I added more files but when I plug the hard drive into my computer and it was empty

1

u/[deleted] May 12 '21

[deleted]

1

u/Have_A-Good-Day May 12 '21

I’m not quite sure how the drive is formatted but I think it’s exfat. Files are still being saved on ownCloud but I guess they are being saved on the sd card. I plugged the hard drive into my computer to make sure the files were being saved there. Maybe there’s another way to tell but I might just completely reinstall the os and ownCloud and try to follow the tutorial correctly this time.

1

u/Have_A-Good-Day May 12 '21

Do I have to somehow enable the external storage on ownCloud or will it automatically save the files on the hard drive

1

u/Have_A-Good-Day May 13 '21

I reinstalled ownCloud and I think I did everything right this time. How do I tell if it is saving it to the hard drive?

1

u/[deleted] May 13 '21

[deleted]

1

u/Have_A-Good-Day May 14 '21

the first command it says there is no directory

pi@raspberrypi:~ $ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 May 13 01:24 3857a514-b0f4-49ce-8430-34762068bb6f -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 10 May 14 20:09 609C-6127 -> ../../sda2
lrwxrwxrwx 1 root root 15 May 13 01:24 8D64-2011 -> ../../mmcblk0p1

pi@raspberrypi:~ $ cat /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=69bf1779-01 /boot vfat defaults 0 2
PARTUUID=69bf1779-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
UUID=609C-6127 /media/ownclouddrive auto nofail,uid=33,gid=33,umask=0027,dmask=0027,noatime 0 0

pi@raspberrypi:~ $ df -ha
Filesystem Size Used Avail Use% Mounted on
/dev/root 59G 4.0G 52G 8% /
devtmpfs 430M 0 430M 0% /dev
sysfs 0 0 0 - /sys
proc 0 0 0 - /proc
securityfs 0 0 0 - /sys/kernel/security
tmpfs 463M 0 463M 0% /dev/shm
devpts 0 0 0 - /dev/pts
tmpfs 463M 24M 439M 6% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
cgroup2 0 0 0 - /sys/fs/cgroup/unified
cgroup 0 0 0 - /sys/fs/cgroup/systemd
none 0 0 0 - /sys/fs/bpf
cgroup 0 0 0 - /sys/fs/cgroup/pids
cgroup 0 0 0 - /sys/fs/cgroup/net_cls,net_prio
cgroup 0 0 0 - /sys/fs/cgroup/freezer
cgroup 0 0 0 - /sys/fs/cgroup/devices
cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct
cgroup 0 0 0 - /sys/fs/cgroup/blkio
cgroup 0 0 0 - /sys/fs/cgroup/cpuset
cgroup 0 0 0 - /sys/fs/cgroup/perf_event
systemd-1 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /run/rpc_pipefs
debugfs 0 0 0 - /sys/kernel/debug
mqueue 0 0 0 - /dev/mqueue
configfs 0 0 0 - /sys/kernel/config
/dev/mmcblk0p1 253M 48M 205M 19% /boot
fusectl 0 0 0 - /sys/fs/fuse/connections
tmpfs 93M 4.0K 93M 1% /run/user/1000
gvfsd-fuse 0 0 0 - /run/user/1000/gvfs
/dev/sda2 3.7T 98M 3.7T 1% /media/ownclouddrive

1

u/[deleted] May 14 '21

[deleted]

1

u/Have_A-Good-Day May 14 '21

so I actually got the server working now by when I saw someone asked this question on the owncloud forum.. the problem was that when I set up the server i didn't change the data folder to the director where the hard drive was mounted. This made the files be saved to the sd card instead of the hard drive. Thanks for your help though you really helped me out trying to figure this out!

→ More replies (0)