• 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 Media Scanning & Identification jellyfin cant access external drive on linux

     
    • 0 Vote(s) - 0 Average

    jellyfin cant access external drive on linux

    help with jellyfin permissions acessing external drive on linux
    bac0n0
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2025 Feb
    Reputation: 0
    Country:Switzerland
    #1
    2025-02-21, 04:07 PM
    ive been trying to allow jellyfin access to the external hard drive. I go to the localhost control panel and look to add the drive folder but jellyfin cant even see the drives directory.

    I have mounted my external hardrive in fstab to home/pirate/storage. ( yes i know its not good to mount to your home folder, i don't care, unless its the problem) 

    UUID=773EE99261AB03BC    /home/pirate/storage            ntfs    defaults 0 0


    It seems like no matter what I do the external drive is owned by root.

    $ groups jellyfin
    pirate media jellyfin

    $ groups pirate
    wheel lp sys network power autologin pirate

    ill be honest, im not very good with the terminal, iv been playing with chown and chmod to try and give jellyfin access to my external drive.


    I appreciate anyone's help and thank you
    bitmap
    Offline

    Community Moderator

    Posts: 775
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #2
    2025-02-21, 04:32 PM
    So I don't think chown and chmod will work with an NTFS drive without some additional kajiggering.

    I would add options to fstab regarding your user and/or default file permissions on mount. This guide seems like a good place to start: https://linuxconfig.org/changing-file-pe...s-in-linux.

    Ignore installing ntfs-3g unless you have an ancient kernel (uname -r will show you kernel version). The guide has options for dmask and fmask, though I have also seen umask used as part of mounting. I would follow the guide, as it seems trivial to add the information there to fstab and remount.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    LinuxGeek28
    Offline

    Junior Member

    Posts: 5
    Threads: 0
    Joined: 2024 Feb
    Reputation: 0
    #3
    2025-02-21, 06:15 PM
    You don't mention how you installed Jellyfin.  If you didn't install it directly on the host, you may have additional permissions issues with running in a container/flatpak/snap/etc.  There are ways to grant permissions to non-standard locations for each of these.

    If you did install Jellyfin directly on the host, only after you've mounted it, you should be able to change permissions on the directory. My experience in Ubuntu has been you need to create the directory, mount it with fstab the first time, then sudo chown to the desired owner.  

    It's also a good idea to store files in a subdirectory of the mount point.  This way, if the mount point becomes disconnected, your app does not assume you've deleted all the files and auto update your library.  Instead, if the mount point becomes disconnected, you should get a directory not found error. At least that's the way my other apps work...
    bac0n0
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2025 Feb
    Reputation: 0
    Country:Switzerland
    #4
    2025-02-22, 02:33 AM (This post was last modified: 2025-02-22, 02:34 AM by bac0n0.)
    (2025-02-21, 06:15 PM)LinuxGeek28 Wrote: You don't mention how you installed Jellyfin.  If you didn't install it directly on the host, you may have additional permissions issues with running in a container/flatpak/snap/etc.  There are ways to grant permissions to non-standard locations for each of these.

    If you did install Jellyfin directly on the host, only after you've mounted it, you should be able to change permissions on the directory. My experience in Ubuntu has been you need to create the directory, mount it with fstab the first time, then sudo chown to the desired owner.  

    It's also a good idea to store files in a subdirectory of the mount point.  This way, if the mount point becomes disconnected, your app does not assume you've deleted all the files and auto update your library.  Instead, if the mount point becomes disconnected, you should get a directory not found error. At least that's the way my other apps work...


    I think its because of the ntfs partition like other person said. I didn't know ntfs would have those issues. I installed jellyfin from the aur repository for manjaro.

    (2025-02-21, 04:32 PM)bitmap Wrote: So I don't think chown and chmod will work with an NTFS drive without some additional kajiggering.

    I would add options to fstab regarding your user and/or default file permissions on mount. This guide seems like a good place to start: https://linuxconfig.org/changing-file-pe...s-in-linux.

    Ignore installing ntfs-3g unless you have an ancient kernel (uname -r will show you kernel version). The guide has options for dmask and fmask, though I have also seen umask used as part of mounting. I would follow the guide, as it seems trivial to add the information there to fstab and remount.

    thank you, I will definitely take the time to read that soon. I had no idea that ntfs was treated different
    « 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