Large Raspberry Pi Library Completely Local Files

Server Version#: 4.141.0
Player Version#: N/A

I am trying to setup Plex on a 4TB Raspberry Pi with EVERYTHING local on the Pi.

I have successfully setup the Pi to boot from the 4TB NVME via GPT and see the whole 4TB.

I have setup PLEX and can access it locally via the web.

However, every attempt I have made to setup LOCAL folders that the ‘plex’ user can access and that I can share via SMB has failed.

My old Plex Server pulled the Libraries from a NAS that I mounted via ‘fstab’ and that worked well. But I want everything self contained now.

I am trying to understand what I can do to get this right. I am not a Linux expert but I manage fairly well.

I need to create a Samba shared folder that can be accessed via the ‘pi’ account remotely to place files that the ‘plex’ account can see when I setup my Libraries.

Are you using external USB drives for your media? If not, what are you using for media, the above-mentioned NVME drive?

If using external drives, make sure you have static mounts for them (don’t allow the OS to mount them dynamically). There’s information in this guide describing how to do that:

Only the NVME.

So, I realized my main problem was just that I was trying to put the files in the Pi user’s home directories.

I decided to instead put them in /svr/plexmedia.

sudo mkdir /srv/plexmedia

This allowed me to create a group to have access there that I called PlexMedia and to put both pi and plex users in that group. I made pi the owner.

sudo groupadd PlexMedia
sudo chgrp -R PlexMedia /srv/plexmedia
sudo chmod -R 775 /srv/plexmedia
sudo usermod -a -G PlexMedia plex
sudo usermod -a -G PlexMedia pi
sudo chown pi /srv/plexmedia

I then was able to share via Samba and navigate to the files from within the Plex server UI.
sudo nano /etc/samba/smb.conf

[plexmedia]
   comment = Plex Media Share
   path = /srv/plexmedia
   public=no
   valid users = @users
   browseable = yes
   writeable = yes

So, all is good now. This helped as well:

https://support.plex.tv/articles/200288596-linux-permissions-guide/

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.