# Linux Symlink for Application Data and Sonic Analysis

**URL:** <https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [January 16, 2023, 6:13pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108 "2023-01-16T18:13:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hank126](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hank126](https://forums.plex.tv/u/hank126)\
**Post date:** [January 16, 2023, 6:13pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/1 "2023-01-16T18:13:15Z")

</div>

Server Version#: Version 1.30.0.6486  
Player Version#: Plex amp 4.6.1  
I am using a symlink to relocate my plexdata/Library/Application Support/… directory and data to a different hard drive than my / (file system hard drive). This aspect and symlink are working properly.

I am conducting a Sonic Analysis and my root drive is losing free space, while the path plexdata/Library/Application Support/… is not changing size.

Can you advise if this is temporary, will the Sonic Analysis ignore the SymLink, or does the Sonic Analysis go to some other directory on the root drive?  
Can you advise of the file name for the Sonic Analysis, which i read was supposed to be in the Database directory?  
If the Sonic Analysis is not in the Application Data tree, can i symlink that file and move it to another hard drive? Will there be an issue on upgrades?  
I ask because i am getting very limited on my file system drive.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 16, 2023, 8:58pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/2 "2023-01-16T20:58:21Z")

</div>

Instead of using the symlink (not supported), use the systemd supported method which PMS will respect to configure the service through the environment variables.

You can set any variable PMS respects/expects in an `Envirionment="Var=Value"` clause

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/3):
>
> Customizing your Plex configuration on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. On systems which use Systemd (Ubuntu 16+, Fedora, Centos 7, Debian 8,) you create this customization file which SystemD reads prior to launching PMS. This file is independent of the default configuration and service control mechanisms in /lib/systemd/system/plexmediaserver.service. Your customization override is preserved across updates, uninstal…

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [January 16, 2023, 9:39pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/3 "2023-01-16T21:39:23Z")

</div>

Sonic analysis is using your system’s /tmp folder to store the decoded albums which are being analyzed. Once this is finished, those files should be removed again.

---

<div class="post-metadata">

**Author:** ![hank126](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hank126](https://forums.plex.tv/u/hank126)\
**Post date:** [January 16, 2023, 9:59pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/4 "2023-01-16T21:59:55Z")

</div>

Thank you. That is it. I appreciate your response. thank you.

---

<div class="post-metadata">

**Author:** ![hank126](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hank126](https://forums.plex.tv/u/hank126)\
**Post date:** [January 16, 2023, 10:23pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/5 "2023-01-16T22:23:31Z")

</div>

Hi ChuckPa,

Thank you for the note about Environmental Variable. My notes show you spoke of this in 2017 too. I will integrate that solution into override.conf as well, make new OS’s easier to get up.

Interesting, the symlink solution is from 2013 notes I have. While not supported, it does seem work quite well.

I am trying to find a listing of environmental variable, can you share a link?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 16, 2023, 11:33pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/6 "2023-01-16T23:33:51Z")

</div>

I can do better 🙂

```auto
    export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${QPKG_DIR}/Library"
    export TMPDIR="${QPKG_DIR}/Library/tmp"

```

You can temporarily override some system settings on the command line.  
Those are on a case-by-case basis (I’d have to look at the code)

---

<div class="post-metadata">

**Author:** ![hank126](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hank126](https://forums.plex.tv/u/hank126)\
**Post date:** [January 16, 2023, 11:53pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/7 "2023-01-16T23:53:16Z")

</div>

Appreciated. Topic resolved. 🤠

---

<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 16, 2023, 11:53pm UTC](https://forums.plex.tv/t/linux-symlink-for-application-data-and-sonic-analysis/827108/8 "2023-04-16T23:53:55Z")

</div>

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