# Large Raspberry Pi Library Completely Local Files

**URL:** https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739
**Category:** Plex Media Server
**Tags:** server-linux, server-linux-arm
**Created:** [December 23, 2024, 7:58pm UTC](https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739 "2024-12-23T19:58:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bwfollis](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bwfollis/32/285187_2.png) [@bwfollis](https://forums.plex.tv/u/bwfollis)
#### Post date: [December 23, 2024, 7:58pm UTC](https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739/1 "2024-12-23T19:58:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)
#### Post date: [December 23, 2024, 8:29pm UTC](https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739/2 "2024-12-23T20:29:08Z")

</div>

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:

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/2):
>
> Using other hard drives (Windows or Linux) with PMS This How-To is written to help with Internal and External drives. It also is written to demonstrate how to cope with NTFS and EXT4 formatted drives. By logical extension, any format supported by Linux can be handled using the technique shown here. In all cases, the goal is to give user plex permission to read your media files which Linux doesn’t allow by default due to its strict security model. We will walk through the steps needed …

---

<div class="post-metadata">

### Author: ![bwfollis](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bwfollis/32/285187_2.png) [@bwfollis](https://forums.plex.tv/u/bwfollis)
#### Post date: [December 23, 2024, 10:25pm UTC](https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739/3 "2024-12-23T22:25:21Z")

</div>

Only the NVME.

---

<div class="post-metadata">

### Author: ![bwfollis](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bwfollis/32/285187_2.png) [@bwfollis](https://forums.plex.tv/u/bwfollis)
#### Post date: [January 6, 2025, 6:49pm UTC](https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739/4 "2025-01-06T18:49:21Z")

</div>

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.

```auto
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`

```auto
[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/](https://support.plex.tv/articles/200288596-linux-permissions-guide/)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [April 6, 2025, 6:49pm UTC](https://forums.plex.tv/t/large-raspberry-pi-library-completely-local-files/899739/5 "2025-04-06T18:49:56Z")

</div>

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