Jellyfin Forum
Jellyfin paths to other partition - how to? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Jellyfin paths to other partition - how to? (/t-jellyfin-paths-to-other-partition-how-to)



Jellyfin paths to other partition - how to? - ZombieHunter - 2024-01-31

I have a separated home partition and sure its the biggest partition.

Now I see that there are 3 paths i can change:
Metadata > Manager: /var/lib/jellyfin/root/default/Movies
General > Cache path: /var/cache/jellyfin
General > Metadata path: /var/lib/jellyfin/metadata

Which ones make sense to move regarding the size or maybe if I need to make a new installation?

How is the right way to do it?
1. Stop Jellyfin
2. Make directories:
    /home/jellyfin/root/default/Movies
    /home/jellyfin/cache
    /home/jellyfin/metadata
3. Copy the files
4. Start Jellyfin and change the setting
5. Delete the contents of the default directories

What directories and file permission do I have to set?
Do I need to set /home/jellyfin owner and group to jellyfin:adm and also with setgid?


RE: Jellyfin paths to other partition - how to? - TheDreadPirate - 2024-01-31

This is just asking for trouble. How big/small is /var compared to /home?


RE: Jellyfin paths to other partition - how to? - ZombieHunter - 2024-01-31

var is 28GB and home 440GB
This is just for testing and a small SSD I already had.

If this is calling for trouble, then why can we change it in the setting?
Isn't it best practice to separate home?


RE: Jellyfin paths to other partition - how to? - TheDreadPirate - 2024-02-01

On mission critical servers with a lot of users logging into it, sure. On my server, my home directory has pretty much nothing in it except a couple dozen KB worth of scripts I wrote to automate some tasks. On the servers at my work, the /home partition is usually around 10GB and is used by 10-20 admins.

Shared media should not be hosted in /home. Service users (jellyfin) don't have homes and don't need homes. You should create a directory in /mnt or /media or something like that to put your library.

If you're able to, shrink /home, give /var a bit more space for metadata, cache, and transcodes. Give the rest to the / partition or create a separate /media partition.


RE: Jellyfin paths to other partition - how to? - tmsrxzar - 2024-02-01

(2024-01-31, 11:56 PM)ZombieHunter Wrote: Isn't it best practice to separate home?

more of an admin preference and system usage type https://www.baeldung.com/linux/separate-home-partition

on a multi-user server it may be better to have separate home partitions for the users
on a server it will not be as useful because "services" do not have or use a home, they use the system partition

on all my servers there is 1 user, root, which has a home and that home space is less than 256MB almost always
on my personal use machines i use a separate (encrypted) partition for home because that's for my files and there are no space hungry services running

for jellyfin, it needs to run as it's own user id (as most services do) and that userid should not be allowed access to another accounts home folder
so this goes back to 'server' use instead of multi-'user' use


RE: Jellyfin paths to other partition - how to? - ZombieHunter - 2024-02-01

(2024-02-01, 12:18 AM)TheDreadPirate Wrote: You should create a directory in /mnt or /media or something like that to put your library.

If you're able to, shrink /home, give /var a bit more space for metadata, cache, and transcodes.  Give the rest to the / partition or create a separate /media partition.
You mean if you move the files to /media then its OK?
I don't get the difference.
/media and /home are both owned by root:root

EDIT
To make live easier i merged / and /home
So everything on one partition now.