Skip to content

Instantly share code, notes, and snippets.

@h4de5
Last active July 20, 2022 22:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4de5/2e3fe4997db56325bfbc4a26625c29fb to your computer and use it in GitHub Desktop.
Save h4de5/2e3fe4997db56325bfbc4a26625c29fb to your computer and use it in GitHub Desktop.
Synology - Make Plex PMS log to ram (tmpfs)
# change to Plex PMS directory on the nas (volume1 could be different)
cd "/volume1/Plex/Library/Application Support/Plex Media Server"
# stop Plex application for now
sudo synopkg stop "Plex Media Server"
# move away existing logs
mv Logs Logs-bkp
# list directory content
# remember group and userid from user plex and group users
ll -n
# create mount point for the Logs directory with the uid listed above
sudo mount -t tmpfs -o size=100M,mode=0777,gid=100,uid=1026 tmpfs "/volume1/Plex/Library/Application Support/Plex Media Server/Logs"
# start Plex applikation again
sudo synopkg start "Plex Media Server"
# if it works, add the mount point to the fstab to have it ready on next restart
sudo vi /etc/fstab
# add line:
> tmpfs "/volume1/Plex/Library/Application Support/Plex Media Server/Logs" tmpfs size=100M,mode=0777,gid=100,uid=1026 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment