• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Jellyfin paths to other partition - how to?

     
    • 0 Vote(s) - 0 Average

    Jellyfin paths to other partition - how to?

    ZombieHunter
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #1
    2024-01-31, 11:38 PM
    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?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-31, 11:51 PM
    This is just asking for trouble. How big/small is /var compared to /home?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    ZombieHunter
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #3
    2024-01-31, 11:56 PM
    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?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-02-01, 12:18 AM (This post was last modified: 2024-02-01, 12:59 AM by TheDreadPirate. Edited 4 times in total.)
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    1
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #5
    2024-02-01, 12:20 AM
    (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
    ZombieHunter
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #6
    2024-02-01, 06:26 AM (This post was last modified: 2024-02-01, 09:07 AM by ZombieHunter. Edited 1 time in total.)
    (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.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode