How do you add a media library that is located in a NAS?
from quediuspayu@lemmy.dbzer0.com to jellyfin@lemmy.ml on 25 Aug 23:23
https://lemmy.dbzer0.com/post/51906093
from quediuspayu@lemmy.dbzer0.com to jellyfin@lemmy.ml on 25 Aug 23:23
https://lemmy.dbzer0.com/post/51906093
It is a synology NAS and all forum posts and tutorials say to install container managerand set up docker. Well tough luck because my model doesn’t seem to be compatible with container manager.
Ok, I install the the server in a pc running linux mint, now when I try to create a library I can’t point where the files are.
threaded - newest
It sounds like in your situation, you’d create a shared folder where your media lives (smb or nfs) on the Synology and mount that share to the machine running jellyfin. Then adding the folder as a library will be the same as choosing a local folder.
This is what I do. Shared folder via NFS, mounted inside the VM (fstab), added to the volumes of the docker container in the compose file…
That was the idea but it comes to give it the path to the folder I don’t know what path I have to give it, the one I have from the file manager (smb://nas/videos/) jellyfin says it is not a valid path.
My guess is that I need to give it the path to where it is mounted but I can’t find it or even know if it is somewhere at all.
On jellyfin you have to give the local path on the server, where your SMB share is mounted
The smb path to mount from Synology is like:
if you have more than one volume you need to choose the good one
Edit: not sure if it was the question actually
Oh!
Yes, I have two volumes but they never showed in the file manager, I’ll try it right now.
It didn’t work. Is it possible that jellyfin just don’t have access? if so, how do I grant it access?
In the long run you’ll want to specify where it lives. Manually you could use the
mount
command, but really you want the share to mount every time you reboot the machine so it’s always available. If you’re after a GUI app to do that, check out smb4k. I think that has options to do automatic mounting to a directory of your choosing (the path would typically be something like/media/<your username>/<synology hostname>/<name of share>
).If you want to do this from the command line, look into
autofs
, which lets you define a configuration and automatically mount an SMB share whenever your system needs it.I agree, I will have to learn to do it. One headache now to avoid all future headaches.
I’ll check them out, thanks.
…jellyfin.org/t-mounting-local-storage-in-linux-l…
This guide may be of help.
It help to understand some things, I’m with the last poster:
you should be able to find the user jellyfin is running as with:
the first column is the user name or ID
you’re looking for a line something like this
Let’s see, it returned three lines:
looks like jellyfin is running as the user “oriol”. does that sound right?
assuming you have your files mounted somewhere locally that jellyfin can access, their file permissions will need to allow access to that user
The thing is that I mount the files using the GUI and I have no idea where they are mounted.
if you want it to be permanent you’ll probably want to mount via /etc/fstab (this is the list of things that are mounted every boot, so it’ll persist after a reboot)
that said, i’d guess it’ll be in /mnt
@quediuspayu from ubuntu i use the following command, mounts it as readonly so nothing on nas can be altered
sudo mount -t cifs -r -ro username=username,password=password,uid=root,gid=root //nasip/videos /mnt/videos
From your command and the help of mount I manage to understand a few things:
cifs is the type of filesystem I’ve seen mentioned
-r is the read only part you mentioned, what’s -ro for?
And I guess that I could change uid=root for my user name and gid=root for some of the groups I see under my user name.
Thanks
Ps: I just tried, I get a syntax error. I suspect it is because the password contains a parenthesis.
On my DS1522+ I have installed the Jellyfin app from the SynoCommunity repository. I used to have Jellyfin on a separate host, but using the app has been much less painful. Maybe that’s an option for you?