Symbolic links are “poor form” in my book and should be avoided unless there is no other way.
HOWEVER, On Linux . we have the environment variable PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
All we need to do is create a directory which will be that new “APP_SUPP_DIR” ,
customize the configuration,
Off we go ![]()
On all ‘systemd’ linux systems (which is 99.9% of them now).
This How-To shows you
Here’s the Plan.
- Setup your new OS with new partitioning
- Install PMS and get the basic ‘claiming’ done. (easy stuff)
- Stop Plex
- Before we start populating it, we move things:
- For you, lets assume
/home/plex
Create the directories
# create the base directory (plex main and a tmp)
sudo mkdir /home/plex /home/plex/tmp
sudo chown -R plex:plex /home/plex
now we EDIT the plex configuration to move its APP_SUPP_DIR
sudo systemctl edit plexmediaserver
Text editor opens,
type:
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plex"
Environment="TMPDIR=/home/plex/tmp"
Save(write) the file and exit the text edit. the configuration will be saved to an ‘override.conf’ file for Plex. (/etc/systemd/system/plexmediaerver.service.d/override.conf)
Before starting Plex, let’s bring it from /var/lib to its new home
sudo bash
cd "/var/lib/plexmediaserver/Library/Application Support"
mv "Plex Media Server" /home/plex
exit
One last system config refresh
sudo systemctl daemon-reload
Start Plex
sudo systemctl start plexmediaserver
And there you are, PMS is now running in /home/plex
As you start to add your library sections,
sudo du -ms /home/plex
You’ll see the space used increase