Jump to content

Access SMB share and add it to a library


jemus

Recommended Posts

hapylestat
On 12/1/2023 at 10:38 PM, Carlo said:

Curious how you are mounting these? 

 

 

For local storage I'm mounting it like .....

/mnt/fakevolumes/Movies/volume1/...

/mnt/fakevolumes/Movies/volume2/...

 

And for samba...something like:

/mnt/samba/Movies/

....

 

To mention, i'm running emby in podman container(not the one from dockerhub) with mounted gpu & volumes and mounting CIFS before starting emby:

# podman logs emby-server
!!! NON-Root environment detected, using sudo.
Mounting SAMBA Volumes...
  ==> Mounting (sudo) "//nas/Clips" to "/mnt/samba/Clips"...
[EXEC] sudo -h 127.0.0.1 mkdir -p /mnt/samba/Clips -> [ok]
[EXEC] sudo -h 127.0.0.1 mount -t cifs //nas/Clips /mnt/samba/Clips -o user=,password= -> [ok]
  ==> Mounting (sudo) "//nas/Music" to "/mnt/samba/Music"...
[EXEC] sudo -h 127.0.0.1 mkdir -p /mnt/samba/Music -> [ok]
[EXEC] sudo -h 127.0.0.1 mount -t cifs //nas/Music /mnt/samba/Music -o user=,password= -> [ok]
Starting server ...
Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
Info App: Setting default culture to en-US
Info Main: Emby

 

It somehow works and are manageable with only one drawback, mounted folders could lose connection (on remote restart for example or router restart), and it would require container restart to remount folders. That's why implementation on emby side would be preferable.   At the moment some connection checker is required in the background to remount these static cifs mounts...  

Edited by hapylestat
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...