Jellyfin Forum
jellyfin unable to access files on external and internal storage - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: jellyfin unable to access files on external and internal storage (/t-jellyfin-unable-to-access-files-on-external-and-internal-storage)

Pages: 1 2 3


RE: jellyfin unable to access files on external and internal storage - TheDreadPirate - 2024-02-22

Instead of automounting, lets manually mount it.

Code:
umount /media/mhkb/CRUISERBLADE
sudo nano /etc/fstab
sudo mkdir -p /media/external
sudo fdisk -l

In the output of the fdisk command, find your USB hard drive. Make a note of the device name. Usually something like /dev/sdb1
In the /etc/fstab you will add the following line.

Code:
/dev/sdb1 /media/external ext4 defaults 0 0

Save and quit.

Code:
sudo mount -a
sudo chown -R mhkb:jellyfin /media/external
sudo chmod -R 770 /media/external



RE: jellyfin unable to access files on external and internal storage - mhkb - 2024-02-24

mhkb@Pi5:~ $ cat /proc/mounts
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=1897104k,nr_inodes=118569,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=414368k,mode=755 0 0
/dev/mmcblk0p2 / ext4 rw,noatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14750 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
ramfs /run/credentials/systemd-sysctl.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
ramfs /run/credentials/systemd-sysusers.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
ramfs /run/credentials/systemd-tmpfiles-setup-dev.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
/dev/mmcblk0p1 /boot/firmware vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
ramfs /run/credentials/systemd-tmpfiles-setup.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
sunrpc /run/rpc_pipefs rpc_pipefs rw,relatime 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=414352k,nr_inodes=103588,mode=700,uid=1000,gid=1000 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/sda1 /media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0
(2024-02-22, 04:46 PM)TheDreadPirate Wrote: Are you letting Raspbian auto mount it?  Or are you mounting it with /etc/fstab?  What are the mount parameters now?

Code:
cat /proc/mounts



RE: jellyfin unable to access files on external and internal storage - mhkb - 2024-02-25

(2024-02-22, 03:39 AM)mhkb Wrote:
(2024-02-22, 03:07 AM)TheDreadPirate Wrote: If you don't have any data on the drive, reformat it as ext4.

Getting new error now

(2024-02-22, 04:46 PM)TheDreadPirate Wrote: Are you letting Raspbian auto mount it?  Or are you mounting it with /etc/fstab?  What are the mount parameters now?

Code:
cat /proc/mounts

(2024-02-22, 04:55 PM)mhkb Wrote: Pi auto mounts

mhkb@Pi5:~ $ cat /proc/mounts
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=1895056k,nr_inodes=118441,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=413952k,mode=755 0 0
/dev/mmcblk0p2 / ext4 rw,noatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12938 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
ramfs /run/credentials/systemd-sysusers.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
ramfs /run/credentials/systemd-sysctl.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
ramfs /run/credentials/systemd-tmpfiles-setup-dev.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
/dev/mmcblk0p1 /boot/firmware vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
ramfs /run/credentials/systemd-tmpfiles-setup.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
sunrpc /run/rpc_pipefs rpc_pipefs rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=413936k,nr_inodes=103484,mode=700,uid=1000,gid=1000 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/sda1 /media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0


RE: jellyfin unable to access files on external and internal storage - TheDreadPirate - 2024-02-25

Looks like it is already mounted at

media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f


RE: jellyfin unable to access files on external and internal storage - mhkb - 2024-02-25

(2024-02-25, 03:20 PM)TheDreadPirate Wrote: Looks like it is already mounted at

media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f

yes, but i do not have permissions to view the contents.


RE: jellyfin unable to access files on external and internal storage - TheDreadPirate - 2024-02-25

Code:
sudo setfacl -b -R media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
sudo chown -R mkhb:jellyfin media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
sudo chmod -R 770 media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f



RE: jellyfin unable to access files on external and internal storage - mhkb - 2024-02-26

(2024-02-25, 07:51 PM)TheDreadPirate Wrote:
Code:
sudo setfacl -b -R media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
sudo chown -R mkhb:jellyfin media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
sudo chmod -R 770 media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f

getting this error now

mhkb@Pi5:~ $ sudo setfacl -b -R /media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
mhkb@Pi5:~ $ sudo chown -R mkhb:jellyfin /media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
chown: invalid user: ‘mkhb:jellyfin’


RE: jellyfin unable to access files on external and internal storage - TheDreadPirate - 2024-02-26

Redo, I had a typo for your user name

Code:
sudo setfacl -b -R media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
sudo chown -R mhkb:jellyfin media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f
sudo chmod -R 770 media/mhkb/dd085415-2b35-43eb-99cc-961c547c1c6f



RE: jellyfin unable to access files on external and internal storage - mhkb - 2024-02-26

used the said commands without any error but still not able to open usb in file manager and jellyfin, getting same error, no permission to view contents. shall i change 770 to 777?
i am new at this with zero knowledge.

Thank you for your replies so far.


RE: jellyfin unable to access files on external and internal storage - TheDreadPirate - 2024-02-26

Unfortunately, I can't get enough feedback and information and you aren't able to do the basics.

This is like asking a blind person to drive while I give them directions over the phone.

Even more user friendly Linux distros require a level of knowledge you don't have yet. If you're more familiar with Windows, I'd suggest using that as a server. Obviously that is not possible on a RPi. But a cheap, used PC or laptop can be used as a server. I'm not sure if that is an option for you.