How to mount an SMB share for Jellyfin

So I’m trying to convert my jellyfin server over to Linux. I assumed I could just copy the path to it once I mounted it in Pop OS’s GUI, but this isn’t recognized by Jellyfin.

What do I need to be doing to get Jellyfin to see this share?

How did you install Jellyfin?
If via docker then you need to map the directories, so the container can even see your smb share.
Besides I wouldn’t use the gnome vfs to mount stuff permanently as it uses Fuse and that’s not the best performing as I understand it.

Install cifs-utils and mount the volume via ‘mount’ command or using an entry in ‘/etc/fstab’

I installed it using the Repository Automatic install script so I just ran this from the Jellyfin site

curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash

I was trying to use this CIFS install guide but I’m getting an error where it only lets me sign in as root which is not the user account on Truenas where the jellyfin media is stored.

I even tried ignoring that error and doing the next step of addiing a .crednetials but that wasn’t working either

Is there a better guide to follow for this or something I’m doing wrong. I don’t know if using the hostname instead of 192.168.1.5 is prefered or if I messed up the pathway to the share.

/mnt/ProdNas/media is the home directory of my “media” user account with access to all the files. From what I understand I shouldn’t be able to access it with root or admin in Truenas Scale.

Don’t mixup share name and path.
To mount the share you will need to put the share’s name after the host name, not the path.

Without examining the install script or the Linode tutorial, I find this one straightforward and easy to follow: How to mount CIFS shares permanently - Ubuntu Server documentation

I feel goofy lol

So I followed that nearly perfectly and kept getting this error

[Wed Oct 30 20:23:33 2024] CIFS: Attempting to mount //prodnas.local/mnt/ProdNas/media
[Wed Oct 30 20:23:33 2024] CIFS: VFS: BAD_NETWORK_NAME: \prodnas.local\mnt
[Wed Oct 30 20:23:33 2024] CIFS: VFS: cifs_mount failed w/return code = -2
[Wed Oct 30 20:25:39 2024] Malformed UNC in devname

[Wed Oct 30 20:25:39 2024] CIFS: VFS: Malformed UNC in devname

Turns out I was messing up the name of my share.

I found this forum post that pointed out that user was putting in the full server location and not the share name.

I was putting in my /etc/fstab

//prodnas.local/mnt/ProdNas/[name of share]

what I needed was

//prodnas.local/[name of share]

It worked flawlessly after. now Jellyfin recognizes the directories.

2 Likes

I’m happy you’ve managed to solve it!

1 Like