javiergc
Posts: 4
Joined: Tue Oct 18, 2016 9:26 am

Plex and mount point

Fri Feb 07, 2020 12:44 am

Hello everybody,

I hope anyone can help me, I'm having problems trying to accessing subdirectories 'ssd1' and 'ssd2' (external ext4 ssd partitions) and 'BACKUP-VIDEO' (ntfs with ntfs-3g installed) in /media/pi/ from Plex Server in my Raspberry Pi 4:

Code: Select all

$ ls -la /media/pi/

        drwxr-x---+  8 root root  4096 feb  6 23:50 .
        drwxr-xr-x   3 root root  4096 sep 26 01:46 ..
        drwxrwxrwx   1 pi   pi    4096 feb  6 23:41 BACKUP-VIDEO
        drwxr-xr-x   3 root root  4096 feb  2 23:33 data
        drwxr-xr-x   7 pi   pi    4096 feb  6 23:56 ssd1
        drwxrwxrwx   5 pi   pi    4096 feb  6 21:18 ssd2
        drwxr-xr-x  14 root root  4096 abr 11  2019 Storage
        drwxr-xr-x   4 pi   pi   16384 ene  1  1970 System
However, I can access to directories (owned by 'pi') outside /media/pi from Plex, such as /disks/pplex/:

Code: Select all

    $ ls -la /disks/

        drwxr-xr-x  3 pi   pi   4096 feb  7 00:04 .
        drwxr-xr-x 22 root root 4096 feb  6 22:10 ..
        drwxr-xr-x  2 pi   pi   4096 feb  6 22:11 pplex
I think the 'problem' is due /media/pi/ folder is owned by 'root'...

Code: Select all

    $ ls -la /media/

        drwxr-xr-x   3 root root 4096 sep 26 01:46 .
        drwxr-xr-x  22 root root 4096 feb  6 22:10 ..
        drwxr-x---+  8 root root 4096 feb  6 23:50 pi
... but I doubt it would be a good idea to change owner or permissions (chmod -R 755 /media/pi), and I don't know what the final '+' means.

How could I give (secure) access to Plex for that directories in '/media/pi', or force mounting external drives outside it, please ?

Finally, is there any cons by having mounted a directory for plex and samba at the same time ?

Thanks !

javiergc
Posts: 4
Joined: Tue Oct 18, 2016 9:26 am

Re: Plex and mount point

Fri Feb 07, 2020 12:34 pm

I moved the directories I want to use with Plext from /media/pi to /mnt and added the next line to /etc/fstab:

Code: Select all

UUID=A6456E1C856DR9A4 /mnt/BACKUP-VIDEO ntfs defaults,auto,users,rw,nofail,umask=000 0 0
It's working, but the drive is not automatically mounted at boot, it's mounted when I access the mount point by using the file explorer or with commands in the terminal (ls, cd, etc.).

Other problem is the device doesn't appears when I clic on the 'eject' icon at the top right of the status bar, and I must to use the 'umount' command... any idea ?

Return to “Networking and servers”