Move Plex Metadata Location on Ubuntu 14.04 5

There is a follow up to this post here – http://pauljhughes.eu/blog/2016/12/20/plex-issues-upgrading-ubuntu-14.04-16.04/

The plex meta data folder can take up a lot of space. It may be required to move this folder to a drive with more space. This is a how to on how to move Plex metadata location on Ubuntu 14.04

 

Shutdown Plex

 

sudo service plexmediaserver stop
sudo killall -u plex

 

Edit the Plex Config

Open up /etc/default/plexmediaserver

 

sudo nano /etc/default/plexmediaserver

 

Uncomment and change the line for the application support folder. e.g

 

# uncomment to set it to something else

PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=”/home/username/plex/Application Support”

 

Move the Folders


Copy the application support folder to its new locations (this can take a while!)

sudo cp -rf ‘/var/lib/plexmediaserver/Library/Application Support’ /home/username/plex/Application\ Support

 

Rename the old application support folder

sudo mv ‘/var/lib/plexmediaserver/Library/Application Support’ ‘/var/lib/plexmediaserver/Library/Application Support.OLD’

 

Change the permissions on the new application support folder

sudo chown -R plex:plex /home/username/plex/

 

Restart Plex and Test

 

sudo service plexmediaserver start


Test its working by going to your media servers URL.  If it doesn’t roll back the changes.

 

Delete the previous application support folder
sudo rm -rf  /var/lib/plexmediaserver/Library/Application\ Support.OLD/

5 thoughts on “Move Plex Metadata Location on Ubuntu 14.04

  1. Reply OBJ May 21,2015 08:37

    Tried, tried, and tried again…does not work. What am I missing here? After the the move start plex: sudo service plexmediaserver start…says she is running.
    Type in: sudo service plexmediaserver status…stop/waiting every single time..going nuts.Followed the above instructions to the “T”

  2. Reply Steve Jul 20,2016 09:33

    This was more helpful than I expected. Thanks for letting my sleep deprived brain not work too hard.

  3. Reply Anton Dec 11,2016 15:31

    Many thanks for clear recipe, bookmarked!

  4. Reply Ste Doc Feb 15,2017 20:59

    Worked brilliantly for me, Many thanks.

Leave a Reply