• 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 Removable drive management

     
    • 0 Vote(s) - 0 Average

    Removable drive management

    How to deal with Jellyfin clearing metadata on external hard drives
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-04-16, 08:48 PM (This post was last modified: 2024-04-16, 08:49 PM by TheDreadPirate. Edited 1 time in total.)
    (2024-04-15, 07:32 AM)yak Wrote:
    (2024-04-15, 01:59 AM)TheDreadPirate Wrote: When you use the laptop without the drive, is Jellyfin still running in the background?

    It is. It runs automatically at every boot.

    Then the problem you are having is 100% expected.  Stop Jellyfin BEFORE disconnecting the drive and disable auto-start on boot.

    (2024-04-15, 07:32 AM)yak Wrote:
    (2024-04-15, 01:59 AM)TheDreadPirate Wrote: When you disconnect the drive make sure that Jellyfin has stopped before doing so.

    Is there some easy way to make Jellyfin start only if the drive is connected?
    I mean, when I disconnect it Jellyfin is always stopped, the problem is that, being my computer a laptop, there are some times which I use it outdoor and I don't have the drive with me. At boot the service starts anyway and so the next time I'll boot it with the drive connected this problem happens. So having away to prevent the service to start Jellyfin if the drive isn't connected seems to be necessary in this case. Or what's the best way to deal with this scenario?


    Depends.  If this is Linux you can have the Jellyfin service ensure that a drive is mounted before starting.  If this is Windows, I'm not aware of a way to do that.

    (2024-04-15, 07:32 AM)yak Wrote:
    (2024-04-15, 01:59 AM)TheDreadPirate Wrote: You can also have Jellyfin write NFOs and make them read only to preserve metadata.

    Actually this seems to be the best way! Could you point me to a guide to do so, please?
    This wouldn't prevent me to have to rescan library though, right?

    You have to enable NFO saver in the library settings in Jellyfin.  If Jellyfin has already scanned your library you will need to rescan and select "replace all metadata" to trigger NFOs to be written.  After they are written and any mis-identifications corrected, you will need to ensure that the resulting NFOs are read-only to Jellyfin.  In Linux, as Efficient suggested, change the file permissions to 440 or something similar.

    Selecting "lock metadata" will only prevent changes to content already in your library.  For the problem you are having, assuming you don't heed my advise to stop Jellyfin, locking the metadata doesn't apply to "new" content.
    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]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Removable drive management - by yak - 2024-04-14, 10:23 PM
    RE: Removable drive management - by TheDreadPirate - 2024-04-15, 01:59 AM
    RE: Removable drive management - by yak - 2024-04-15, 07:32 AM
    RE: Removable drive management - by TheDreadPirate - 2024-04-16, 08:48 PM
    RE: Removable drive management - by yak - 2024-04-16, 10:15 PM
    RE: Removable drive management - by Efficient_Good_5784 - 2024-04-15, 08:20 AM
    RE: Removable drive management - by yak - 2024-04-15, 10:30 AM
    RE: Removable drive management - by TheDreadPirate - 2024-04-17, 12:09 AM

    • 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