# Cannot add media source to library (linux)

**URL:** <https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078>\
**Category:** General Discussions\
**Tags:** server-linux\
**Created:** [June 10, 2020, 2:51pm UTC](https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078 "2020-06-10T14:51:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrtcpip](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mrtcpip](https://forums.plex.tv/u/mrtcpip)\
**Post date:** [June 10, 2020, 2:51pm UTC](https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078/1 "2020-06-10T14:51:06Z")

</div>

PMS - ver. Version 1.19.1.2701  
OS - Pop!\_OS 20.04 LTS

First time post, please forgive my inability to find the answer in the forum search…  
Problem: When I try to “add library” and then “browse for media folder” I cannot view or select the folder. I checked permissions, and have rwx for all directories and files.  
I actually cannot view the folder, I can see the drive partition name, but no folders…  
This partition is on a second drive in my laptop.

Any help is much appreciated!

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [June 10, 2020, 4:02pm UTC](https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078/2 "2020-06-10T16:02:22Z")

</div>

The Plex Media Server on Linux based systems is using a dedicated local account (`plex`). That account must be able to see the files and to “execute” the directories (so Plex can drill down through the folder structure).

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247):
>
> Tips & Tricks of the Linux trade. Below, you’ll find a collection of tips, tricks, and how-to’s to help make setting up, administrating, and using Plex Media Server on Linux a little easier. [Reporting problems](https://forums.plex.tv/t/linux-tips/276247/20)[Using other hard drives (Windows or Linux) with PMS](https://forums.plex.tv/t/linux-tips/276247/2)[Customizing your Plex configuration on systemd based systems](https://forums.plex.tv/t/linux-tips/276247/3)[Using other EXT4, NTFS, or other drives (internal or USB)](https://forums.plex.tv/t/linux-tips/276247/2)[Mounting CIFS + SMB network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/4)[Mounting NFS network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/5)[Moving…](https://forums.plex.tv/t/linux-tips/276247/6)

PS: not sure if there’s any additional obstacles / restrictions implied by the particular distribution

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [June 10, 2020, 4:31pm UTC](https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078/3 "2020-06-10T16:31:46Z")

</div>

Tom’s suggestion is absolutely the recommended way to ensure a drive has a dedicated mount point with the correct permissions applied. I’d suggest sticking with that.

There is (potentially) another (easier) way to tackle this problem, if the drive is currently being automatically mounted under /media/yourusername/volumelabel. If it is, you can try the following:  
`sudo setfacl -m u:plex:rx /media/mrtcpip/`

This assumes that you are running Plex Media Server as user “plex” and that your user on Linux is “mrtcpip.” Adjust the command as appropriate. This command give user “plex” read and execute access to the user-specific automatic mount directory. You could also add write permissions (change “rx” to “rwx”).

The main thing to recommend this method is that just requires a single command to implement. There are a couple of drawbacks to this method, the primary being that it relies on automatic mounting continuing to work in the future as it does now, for example that the OS will always mount the disk in the same place.

---

<div class="post-metadata">

**Author:** ![mrtcpip](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mrtcpip](https://forums.plex.tv/u/mrtcpip)\
**Post date:** [June 10, 2020, 4:56pm UTC](https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078/4 "2020-06-10T16:56:27Z")

</div>

Thank you Tom & Philip! It is working.

Best regards!

---

<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:** [September 8, 2020, 4:56pm UTC](https://forums.plex.tv/t/cannot-add-media-source-to-library-linux/602078/5 "2020-09-08T16:56:57Z")

</div>

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