How do I give Jellyfin permanent access to an external drive?
-
I didn't like Kodi due to the unpleasant controls, especially on Android, so I decided to try out Jellyfin. It was really easy to get working, and I like it a lot more than Kodi, but I started to have problems after the first time restarting my computer.
I store my media on an external LUKS encrypted hard drive. Because of that, for some reason, Jellyfin's permission to access the drive go away after a reboot. That means something like
chgrp -R jellyfin /media/username
does work, but it stops working after I restart my computer.I tried modifying the /etc/fstab file without really knowing what I was doing, and almost bricked the system. Thank goodness I'm running an atomic distro (Fedora Silverblue), I was able to recover pretty quickly.
How do I give Jellyfin permanent access to my hard drive?
-
S [email protected] shared this topic
-
I bet it’s because it’s encrypted. Idk if there’s a fix to that. I had a lot of trouble making local servers auto unlock when using LUKS.
-
You need to setup
/etc/crypttab
to unlock the disk: https://linux.die.net/man/5/crypttab -
What filesystem are you using on the external drive? If it is NTFS or FAT, they won't store permissions on the filesystem, which would explain why the owner/group changes are not persistent. To fix that, you can set the uid/gid on mount in your fstab.
/dev/mapper/YOUR_DRIVE /path/to/mnt <fstype> rw,uid=<jellyfin_uid>,gid=<jellyfin_gid>,dmask=0002,fmask=0113
-
I used GNOME Disks to modify /etc/crypttab and /etc/fstab to auto decrypt and auto mount on boot. Jellyfin still loses its access each time I restart, even though the
jellyfin
group still displays having group ownership. -
Thanks for editing in the solution!
-
What changes were made, exactly? Not everyone has a desktop environment on their server.