# \[SOLVED\] Server default directories location and size

**URL:** <https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [November 23, 2021, 6:23pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661 "2021-11-23T18:23:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![HEXYEBO](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@HEXYEBO](https://forums.plex.tv/u/HEXYEBO)\
**Post date:** [November 23, 2021, 6:23pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/1 "2021-11-23T18:23:05Z")

</div>

Server Version#: 1.24.5.5173  
Player Version#: N/A

Hello all,  
This is a fresh install on a Ubuntu 20.04.3 Server OS.  
The server has a large (16 TB) disk array for media storage, but a tiny (40 GB) system drive. Right after I scanned all of the local media files into library, I noticed that the system drive started filling up.  
Quick scan trying to determine disk usage:

_/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ du -h --max-depth=1_  
_24K ./Crash Reports_  
_4.0K ./Plug-ins_  
_ **1.9G**./Cache_  
_ **2.1G**./Media_  
_ **1.7G**./Metadata_  
_6.1M ./Codecs_  
_58M ./Logs_  
_84M ./Plug-in Support_  
_ **5.7G** _ .

Can I change the location of these large directories?

Thanks in advance,  
Cheers.

---

<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:** [November 23, 2021, 7:03pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/2 "2021-11-23T19:03:59Z")

</div>

Yes but it’s recommended (and supported) to move the entire structure

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/6):
>
> Moving Plex’s metadata (Library) directory on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. If your system returns init, please see the next post in this thread. While you may change /lib/systemd/system/plexmediaserver.service, it is under the control of the package manager and subject to replacement without warning at any time during an update. To provide stability, systemd allows creation of an override.conf file to customiz…

---

<div class="post-metadata">

**Author:** ![HEXYEBO](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@HEXYEBO](https://forums.plex.tv/u/HEXYEBO)\
**Post date:** [November 23, 2021, 10:23pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/3 "2021-11-23T22:23:28Z")

</div>

[ChuckPa](https://forums.plex.tv/t/server-default-directories-location-and-size/759661/2),  
Thanks for the prompt response and easy to follow instructions.

Specifying user & group in the `override.conf` was an issue and, apparently, not needed on the server OS. Changed to root:root and service started right up. Also check remote access by navigating to [server IP]:32400/web as well as playing media on Smart TV.

Al little concerned and wanted to check with you before removing the old directories. Seems like those are still being referenced?

 ![ScreenshotPlexMediaServerServiceStatus](https://global.discourse-cdn.com/plex/original/4X/c/d/d/cdd0a109910fbc1634f47480379ad3b8a9b7590b.png)

This is the override.conf

 ![override.conf](https://global.discourse-cdn.com/plex/original/4X/9/8/8/98832adf58b6d842fee03ea4a56d172c2c564afa.png)

---

<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:** [November 23, 2021, 10:38pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/4 "2021-11-23T22:38:31Z")

</div>

If you created the new directory as owned by `plex:plex`  
then used the tar ball,

you wouldn’t need to run as root:root ( an FYI 😉 )

As root, you can delete media, regardless of permissions, so please do be VERY careful.  
We run as a non-privileged user for this reason – safeguard your media as much as possible.

---

<div class="post-metadata">

**Author:** ![HEXYEBO](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@HEXYEBO](https://forums.plex.tv/u/HEXYEBO)\
**Post date:** [November 23, 2021, 11:11pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/5 "2021-11-23T23:11:09Z")

</div>

OK, changed override.conf to plex:plex  
Ran chown -R plex:plex . on the new directory just in case.  
Everything started up just fine.

Just to confirm, as long as I have this in place, nothing’s going to get overwritten on the next update?

 ![plexmediaserver.list](https://global.discourse-cdn.com/plex/original/4X/5/0/0/500d91e5bcc3831a75b8fb25c285f6ea6d282d1b.png)

And by “nothing”, I mean the settings I just changed, of course.

---

<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:** [November 23, 2021, 11:29pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/6 "2021-11-23T23:29:52Z")

</div>

Software is in /usr/lib/plexmediaserver (where the package manager puts it)  
Data (your server’s metadata and all it’s databases) were in /var/lib/plexmediaserver but are now where you put them.

The software will be replaced with each update.

Database updates will be whenever engineering releases them.

The UID/GID you set is locked.

The installer does not modify any of that. It only inspects and lets you know if there are problems.

---

<div class="post-metadata">

**Author:** ![HEXYEBO](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@HEXYEBO](https://forums.plex.tv/u/HEXYEBO)\
**Post date:** [November 23, 2021, 11:33pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/7 "2021-11-23T23:33:10Z")

</div>

Awesome,  
Thanks again for your help. [SOLVED]!

Cheers.

---

<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:** [February 21, 2022, 11:33pm UTC](https://forums.plex.tv/t/solved-server-default-directories-location-and-size/759661/8 "2022-02-21T23:33:57Z")

</div>

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