2023-12-02, 08:32 PM
(This post was last modified: 2023-12-02, 08:34 PM by intael. Edited 2 times in total.)
I'm storing my media in an NFTS partition while jellyfin server runs on a separate one. I use debian so my situation should be very similar to yours. In order to make this work I had to properly configure the mount of the NTFS partition.
Try the following:
- Given that Jellyfin runs under the jellyfin user and group, do add your user to the jellyfin group so that both the jellyfin user and your user share the permissions of the jellyfin group (this is just for convenience):
- Run the following to get the id of the jellyfin group:
- Run the following to get the id of your user:
- Edit the /etc/fstab file where you can configure your NTFS media partition. The entry of mine looks like this. Replace YOUR_UID and YOUR_GID by your groupid and userid from the previous steps. Permission-wise the key here is on that umask option. Apparently permissions on NTFS work by stating what's NOT allowed. So the 0s are actually 7 (allow all). In this case we're saying: Allow everything to the user and group, but nothing to others.
- Save and run the following to apply the mounting:
If everything went alright you should see the name of your partition and the result of mounting it.
Try the following:
- Given that Jellyfin runs under the jellyfin user and group, do add your user to the jellyfin group so that both the jellyfin user and your user share the permissions of the jellyfin group (this is just for convenience):
Code:
usermod -a -G jellyfin yourusername
- Run the following to get the id of the jellyfin group:
Code:
getent group jellyfin
- Run the following to get the id of your user:
Code:
id -u <username>
- Edit the /etc/fstab file where you can configure your NTFS media partition. The entry of mine looks like this. Replace YOUR_UID and YOUR_GID by your groupid and userid from the previous steps. Permission-wise the key here is on that umask option. Apparently permissions on NTFS work by stating what's NOT allowed. So the 0s are actually 7 (allow all). In this case we're saying: Allow everything to the user and group, but nothing to others.
Code:
yadayada_partition_name ntfs rw,uid=YOUR_UID,gid=YOUR_GID,umask=007 0 2
- Save and run the following to apply the mounting:
Code:
mount -a --verbose
If everything went alright you should see the name of your partition and the result of mounting it.