Page 1 of 1

Plex not seeing into mounted hard drive

Posted: Tue Nov 03, 2015 12:30 pm
by Frankie842
Hi there.
I have setup plex media streamer on my Raspberry Pi 2, and have an external hard drive mounted properly, but when I direct the plex to my hard drive, it doesn't see into it at all. It sees the 3 different partitions, but no files or folders inside them.
I can see the files and folders from the Pi desktop though.
Any thoughts how to get plex media streamer to scan my hard drive for movies?

Re: Plex not seeing into mounted hard drive

Posted: Tue Nov 03, 2015 3:31 pm
by topguy
The result of a couple of

Code: Select all

ls -al
in relevant areas would probably be helpful.

The output from "mount" is also useful.

Is the plex server running as the "plex" user or as "pi" ?

Re: Plex not seeing into mounted hard drive

Posted: Tue Nov 03, 2015 4:21 pm
by Frankie842
This is what I got:
pi@raspberrypi ~ $ ls -al
total 112
drwxr-xr-x 19 pi pi 4096 Nov 3 13:09 .
drwxr-xr-x 3 root root 4096 Dec 31 1969 ..
-rw-r--r-- 1 pi pi 69 Nov 3 00:02 .asoundrc
-rw------- 1 pi pi 2485 Nov 3 13:30 .bash_history
-rw-r--r-- 1 pi pi 220 Sep 24 13:26 .bash_logout
-rw-r--r-- 1 pi pi 3243 Sep 24 13:26 .bashrc
drwxr-xr-x 11 pi pi 4096 Nov 3 00:10 .cache
drwx------ 8 pi pi 4096 Nov 3 12:29 .claws-mail
drwx------ 13 pi pi 4096 Nov 3 13:12 .config
drwx------ 3 pi pi 4096 Sep 24 15:33 .dbus
drwxr-xr-x 2 pi pi 4096 Nov 3 03:31 Desktop
-rw-r--r-- 1 pi pi 55 Nov 3 11:53 .dmrc
drwxr-xr-x 5 pi pi 4096 Dec 31 1969 Documents
drwxr-xr-x 2 pi pi 4096 Nov 3 01:49 Downloads
drwxr-xr-x 2 pi pi 4096 Nov 3 00:02 .gstreamer-0.10
drwx------ 3 pi pi 4096 Nov 3 00:09 .local
drwxr-xr-x 2 pi pi 4096 Sep 24 15:33 Music
drwxr-xr-x 2 pi pi 4096 Sep 24 15:33 Pictures
-rw-r--r-- 1 pi pi 675 Sep 24 13:26 .profile
drwxr-xr-x 2 pi pi 4096 Sep 24 15:33 Public
drwxrwxr-x 2 pi pi 4096 Dec 31 1969 python_games
drwxr-xr-x 2 pi pi 4096 Sep 24 15:33 Templates
drwxr-xr-x 3 pi pi 4096 Sep 24 15:33 .themes
drwx------ 4 pi pi 4096 Nov 3 00:20 .thumbnails
drwxr-xr-x 2 pi pi 4096 Sep 24 15:33 Videos
-rw------- 1 pi pi 56 Nov 3 13:09 .Xauthority
-rw------- 1 pi pi 354 Nov 3 13:09 .xsession-errors
-rw------- 1 pi pi 354 Nov 3 12:13 .xsession-errors.old

I don't see my external hard drive there.
Am very new to Raspberry Pi, so I don't really understand "The output from "mount" is also useful.

Is the plex server running as the "plex" user or as "pi" ?"

Thanks for your help

Re: Plex not seeing into mounted hard drive

Posted: Tue Nov 03, 2015 4:28 pm
by RaTTuS
1) get pastebinit
sudo apt-get update && sudo apt-get install pastebinit
2)
use pastebin
df -h |pastebinit
sudo fdisk -l | pastebinit
mount | pastebinit

and post the links

Re: Plex not seeing into mounted hard drive

Posted: Tue Nov 03, 2015 6:15 pm
by Frankie842
http://paste.debian.net/320751/
http://paste.debian.net/320752/
http://paste.debian.net/320753/

Hope that's what you need. I just started using Rasp Pi today
Thanks again

Re: Plex not seeing into mounted hard drive

Posted: Wed Nov 04, 2015 9:54 am
by RaTTuS
do you get brown outs ? is the power good?
the drive is mounted as

Code: Select all

/dev/sda4       419G  386G   34G  92% /media/pi/Spare Space
/dev/sda3       280G  264G   16G  95% /media/pi/Time Capsule
/dev/sda2       233G  212G   22G  91% /media/pi/Carbon Copy
all as hfsplus (mac)

Code: Select all

/dev/sda4 on /media/pi/Spare Space type hfsplus (rw,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8,uhelper=udisks2)
/dev/sda3 on /media/pi/Time Capsule type hfsplus (ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8,uhelper=udisks2)
/dev/sda2 on /media/pi/Carbon Copy type hfsplus (rw,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8,uhelper=udisks2)
does

Code: Select all

ls -l " /media/pi/Spare Space"
ls -l " /media/pi/Time Capsule"
ls -l " /media/pi/Carbon Copy"
show you anything of use ?

Re: Plex not seeing into mounted hard drive

Posted: Mon Nov 04, 2019 1:17 am
by KevinNAZ
This is how I enabled Plex Server to see my exFAT formatted USB3.0 External 3TB media drive with movies, tv, etc.

Code: Select all

#! /bin/bash
#
# This file is a list of shell commands for the
# Raspberry Pi to fix groups and permissions to allow the Plex
# media server to access media on an external USB drive.
# I am using Plex Server on a Raspberry Pi 4 with Raspi Buster.
sudo usermod -a -G pi plex
sudo usermod -a -G plugdev plex
sudo chmod 775 /media/pi

Re: Plex not seeing into mounted hard drive

Posted: Sun Nov 17, 2019 1:08 am
by hydra3333
KevinNAZ wrote:
Mon Nov 04, 2019 1:17 am
This is how I enabled Plex Server to see my exFAT formatted USB3.0 External 3TB media drive with movies, tv, etc.

Code: Select all

#! /bin/bash
#
# This file is a list of shell commands for the
# Raspberry Pi to fix groups and permissions to allow the Plex
# media server to access media on an external USB drive.
# I am using Plex Server on a Raspberry Pi 4 with Raspi Buster.
sudo usermod -a -G pi plex
sudo usermod -a -G plugdev plex
sudo chmod 775 /media/pi
Thanks !!!!!!!!!

Also, what is group plugdev used in/for ?

Re: Plex not seeing into mounted hard drive

Posted: Sun Nov 17, 2019 5:58 am
by dustnbone
From https://wiki.debian.org/SystemGroups

plugdev: Allows members to mount (only with the options nodev and nosuid, for security reasons) and umount removable devices through pmount.

Re: Plex not seeing into mounted hard drive

Posted: Sun Nov 17, 2019 8:51 am
by hydra3333
dustnbone wrote:
Sun Nov 17, 2019 5:58 am
From https://wiki.debian.org/SystemGroups
plugdev: Allows members to mount (only with the options nodev and nosuid, for security reasons) and umount removable devices through pmount.
OK, so with

Code: Select all

sudo usermod -a -G plugdev plex
user plex can mount/dismount removable drives with security limitations.

Thank you !