Jellyfin Forum
Jellyfin Server - Ubuntu external drives - 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 Server - Ubuntu external drives (/t-jellyfin-server-ubuntu-external-drives)



Jellyfin Server - Ubuntu external drives - mjpatey - 2024-10-17

Hi,

I've previously installed Jellyfin server on Mac, and it had no trouble recognizing and reading from my external media drive. I've now started a new Jellyfin installation on Ubuntu 24.04LTS, and have attached the same external drive to the new machine via USB. When attempting to add a library in the Jellyfin web setup wizard, I navigate to /media/my_username, and the external drive is not there.

In the OS, I can see it's mounted as /media/my_username/Media, formatted as ExFAT. I can see all the files in Ubuntu's file browser, and double-clicking any media file plays it successfully in VLC. The drive seems to work fine in every other application in this Ubuntu install, and works fine with my Jellyfin server install on Mac.

How can I make Jellyfin server see this drive on Ubuntu 24.04?

Thank you in advance for any light you can shed!

-Mark


RE: Jellyfin Server - Ubuntu external drives - TheDreadPirate - 2024-10-17

The USB drive is being mounted via udisks2. The location the drive is currently at is protected by an ACL. You could remove the ACL as a temporary fix, but the proper solution is to manually mount the drive using fstab.

I've written a guide for how to do this, which also includes a Linux permissions primer.

https://forum.jellyfin.org/t-mounting-local-storage-in-linux-linux-permissions-primer


RE: Jellyfin Server - Ubuntu external drives - mjpatey - 2024-10-17

@TheDreadPirate thanks so much for that very thorough primer! I've edited my /etc/fstab file using Gnome Text Editor, and re-saved. Here's a play-by-play from that point:

$ sudo umount /media/(username)/Media
$ sudo mount -a
mount: /media/(username): can't find UUID=(xxx).
mount: (hint) your fstab has been modified, but systemd still uses
      the old version; use 'systemctl daemon-reload' to reload.
$ systemctl daemon-reload
$ sudo mount -a
mount: /media/(username): can't find UUID=(xxx).

I've checked and the UUID is correct, copied and pasted. This happened once, and I assumed the failure was due to something I'd broken earlier in the process. My Ubuntu install was brand-new otherwise, so I just reinstalled the OS, then Jellyfin. Tnis is my second try, and I'm getting the same result.

My install method is using Jellyfin's repo, as they recommend:

curl -s https://repo.jellyfin.org/install-debuntu.sh | sudo bash

Could it matter that the external drive was originally formatted as exFAT using a Mac, or is there something else I can try?

-Mark


RE: Jellyfin Server - Ubuntu external drives - mjpatey - 2024-10-17

By the way, here's the line I added to /etc/fstab:

Code:
UUID=(xxx) /media/(username)/(drivename) exfat defaults 0 0



RE: Jellyfin Server - Ubuntu external drives - TheDreadPirate - 2024-10-18

(5 hours ago)mjpatey Wrote: By the way, here's the line I added to /etc/fstab:

Code:
UUID=(xxx) /media/(username)/(drivename) exfat defaults 0 0

Move your mount out of /media/username.  That directory almost certainly has an ACL on it preventing Jellyfin from accessing it.  You COULD remove the ACL, but Linux will mount all of your other removable storage in this directory.  To prevent any naming collisions, you should be mounting permanent storage elsewhere.  Directly in /media or /mnt are the most common locations.

Code:
UUID=(xxx) /media/(drivename) exfat defaults 0 0

Or

Code:
UUID=(xxx) /mnt/(drivename) exfat defaults 0 0