![]() |
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) Pages:
1
2
|
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 (2024-10-17, 11:29 PM)mjpatey Wrote: By the way, here's the line I added to /etc/fstab: 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 RE: Jellyfin Server - Ubuntu external drives - mjpatey - 2024-10-18 @TheDreadPirate thanks again for all your help. I just changed the /etc/fstab entry to: UUID=(xxx...) /media/Media exfat defaults 0 0 ...then did the following and got the response shown at the end: Code: $ sudo umount /media/(username)/Media It still can't find it. So I thought maybe I'm copying the wrong string as the UUID... When I do ls -lx, there are two long strings, one of which is labeled "Type-UUID" and the other of which is labeled simply "UUID". I've been using the one in the "UUID" column. Just tried changing the fstab entry to the other string, and that didn't work (as you might have predicted!) What seems to be happening when I disconnect and reconnect the drive is that as soon as I reconnect it, the OS grabs it and places it in /media/(username)/(drivename). Some more info: it's a 2TB drive, formatted as exFAT on a Mac, connected via USB 2. RE: Jellyfin Server - Ubuntu external drives - mjpatey - 2024-10-18 I just tried one more thing, plugging in a USB thumb drive to see if I could get that to be recognized using the same process. I get the same error message for both drives: Code: $ sudo mount -a The drives are still being mounted by the OS in /media/(username)/(drivename)... and with this one I noticed that the drives are being named using their original labels when Ubuntu is mounting them there, not the names I'm assigning in fstab. (Makes sense, since it's saying it can't find them as entered in fstab)... RE: Jellyfin Server - Ubuntu external drives - TheDreadPirate - 2024-10-18 Can you share the full output of "sudo fdisk -lx"? RE: Jellyfin Server - Ubuntu external drives - mjpatey - 2024-10-18 @TheDreadPirate here's the full output of sudo fdisk -lx: Code: $ sudo fdisk -lx ...sda is the drive I care about, and sdb is the thumb drive I inserted as a test. RE: Jellyfin Server - Ubuntu external drives - theguymadmax - 2024-10-18 Run this command Code: sudo blkid /dev/sda1 |