Help with SMB share please

  • Hey all,

    I am not new to Kodi, but I am a complete beginner with linux and command line stuff, and have got stuck, and I'm hoping someone can help.

    So I'm replacing my dying Shield TV, new hardware is a mini pc, AMD 8845hs based, 32GB ram and it has 2x 4TB nvme drives internally. one of them has LibreELEC installed on it. It hooks up to my network via ethernet cable.

    I want to use the remaining space on the drive with LibreELEC on it, as storage for movies, music etc, and the entirety of the other drive for the same kind of thing, but obviously with a different name. The problem is that I can't get the SMB to work properly from my macbook. I enabled SMB and gave it a username and password, but I can't find where to choose a folder? I can log in to the default folder, I think it is called storage, and it contains a load of other folders. I can start a transfer from my mac to the storage folder or a subfolder within, but when the file gets there, it disappears. I even got chatgpt on it and ties myself in nots. I managed to format the second drive and create a shared folder called mydrive, and I can access it from my mac, but the same thing happens when I send any files to it, they just disappear at the end of the transfer. Does all this have to be done via command line or is there another way?

    Can anyone point me in the right direction direction please? Any help would be much appreciated, thanks!

  • There is no default SMB share for /storage but there are shares for e.g. 'Videos' which map to /storage/videos so if you drop files into that share they should show up in that location?

    Samba will also auto-share "removable" drives that are mounted to /var/media so even though it's not a removable device it sounds like the second NVME drive is being auto-mounted to that location. Samba will create a share based on the disk label of the mounted device so if you labelled it as 'MyDrive' it will create an SMB share using that name that maps to the underlying /var/media/MyDrive location.

    If you want to edit the default SMB shares: https://wiki.libreelec.tv/configuration/samba

    It doesn't really sound like you've done anything wrong and using a Mac as the client device accessing shares isn't unusual.

    If you SSH into the HTPC using Terminal.app on macOS, run this command and share the URL that's generated by 'paste'

    Code
    ls -alh /storage/videos /storage/tvshows /var/media/MyDrive | paste

    (edit /var/media/MyDrive to match whatever you called it).

  • Thanks for the reply.

    So I did your command and it gave me this:

    Code
    LibreELEC:~ # ls -alh /storage/videos /storage/tvshows /var/media/MyDrive | paste
    ls: /var/media/MyDrive: No such file or directory
    https://paste.libreelec.tv/live-emu.log

    I think I made it in the storage folder. I'm wondering if I should start again, and just follow your wiki.