Nextcloud addon external hdd

  • Hi all,

    first of all thank you all for sharing your knowledge in here.

    After reading for hours i finally seem to be close to get the nextcloud working...thinking it will work out of the box turned out to be wrong and as a total newbie to linux/docker/ssh it was quite a lot

    to understand what is happening.

    right now i got the nextcloud working after having issues with gateway/redirects and all that stuff.

    What stops me right now is to access my external HDD.

    I installed linuxserver.io repo and then nextcloud.

    Running fine according to docker ps and can access from WEB.

    I already added -v /var/media/hddname:/HDD1 as a docker parameter

    -not able to see the HDD in the menu inside nextcloud.

    Thought this should make me able to access it as HDD1 ?

    Also activated external device addon in nextcloud and added this location as a local volume. Still not able to access the hdd.

    Am i missing something ?

    After reading a lot of posts here and on nextcloud-forums/linuxservers.io i become more and more confused.

    Can somebody help with this ?


    Edit: Got it working with -v <path>:/hdd for docker container and adding /hdd as external storage inside nextcloud.

    Sadly can't delete files inside that folder now.

    Edited once, last by Innos (August 20, 2019 at 10:41 PM).

  • Yup, any external storage path needs to be added via the plugin in the gui.

    When you mount external drives, you need to make sure the permissions are set correctly. Nextcloud runs as user nobody in libreelec, which is 65534 (iirc). So mount the drive as that user and you shouldn't have permission issues.

  • It's 65534, yes.

    So i would have to chown on /var/media/hdd and Set nobody as a owner of the hole hdd?

    Will this not cause any problems in libreelec?

    Thanks for trying to help.

  • Thanks for your suggestion.

    chown is not working when device is mounted.

    So i unmounted device (called RAID1) and try to mount it as nobody:root

    seems that i do not know how to mount the usb in the right way.

    tried /dev/sdb1 /dev/RAID1 and for each /var/media and /var/media/RAID1

    If i unplug the device libreelec mounts it fine. Could you may tell me how to mount the device as nobody ?

  • As i am still tinkering with this.. Maybe somebody can assist?

    As it's a ntfs drive i understood why i cant chown.

    When i boot freshly it gets mounted as nfts on /dev/sda1.

    Using umount /dev/sda1 i get it unmounted.

    Then i try to Mount it using

    Mount -t ntfs-3g /dev/sda1 /var/media/RAID1

    Still getting the error No such device.

    I do not understand why i cant Mount the device.

    Also tried to chkdsk and remove safely already

    Edited once, last by Innos: Additional Information (September 3, 2019 at 7:17 PM).