Server Version#:
Player Version#:
In the process of upgrading my Plex server, I’m moving from Windows 10 to Linux Mint, which is my preference for Linux. Maybe not the lightest distro, but it is easy to use. However I can’t seem to get Plex to read my NAS libraries. I can see them from the Linux desktop, but not Plex. Suggestions?
My assumption is permissions, permissions and permissions, as always on Linux ![]()
Originally, I had the plex server in the server room, as the nas. I set up a client PC (Actually a Raspberry PI autoset to start up a web browser) in the living room. That way, the worst the kids could do was mess up their player. The permissions would let any system in the server room add/delete files to the nas, but the kids couldn’t do anything permanent. So the nas has been running for a while now. Recently, I’ve noticed some strange traffic on the network, so I thought it’d be the perfect time to upgrade the Plex to a SSD and move from Win10 to linux for security. Kinda regretting it now, windows shares were SO easy to set up.
Hi, plex must have the NAS mounted prior to plex startup. So you need to add an entry to /etc/fstab to automatically mount your NAS Library to a local mountpoint, e.g. /srv/plex.
So the steps would be:
sudo mkdir -p /srv/plex
sudo chown plex:plex /srv/plex
id plex
sudo nano /root/.credentials-plex
with the content
username=plex
password=secret
domain=WORKGROUP
sudo nano /etc/fstab
and add an entry at the end of the file:
//192.168.1.2/plex /srv/plex cifs ip=192.168.1.2,uid=plex,gid=plex,user,vers=3.0,credentials=/root/.credentials-plex 0 0
Of course you have to adapt those changes to your environment, id prints out the numeric uid and gid you need in the last line just in case your linux is older and does not support usernames in the fstab.
At the very last, you have to reboot:
sudo reboot
By
ls /srv/plex
you will see whether you succeeded…
HTH
Holger
Forgot one thing:
sudo chmod 600 /root/.credentials-plex
this makes the credentials file only readable by root.
Supplemental:
The CIFS form of the tips are here:
So, with the plex @ .99, and the nas @ .100, on the plex it would be:
[//192.168.1.100/plex /srv/plex cifs ip=192.168.1.99,uid=plex,gid=plex,user,vers=3.0,credentials=/root/.credentials-plex 0 0
or did I get those backwards. (modifying fstab on the plex machine)?
If the NAS (which contains the media), is at 192.168.1.100,
this goes where Plex is running .
//192.168.1.100/<share-name> /local/path/name cifs uid=<name>,gid=<name>,credientials=/path 0 0
The more you let it take defaults, the better.
Order doesn’t matter here as long as the needed options are declared.
Before you make that mount active, make certain user plex can read the local path.
Linux will have its security/permissions requirement.
The NAS will have its own which take effect for everything below the ‘mount point’.
Wow… the thing that was primarily kicking my tush was an extra space in the /etc/fstab (I also updated my OMV software). The ‘trick’ was although it may LOOK like a new line, after the “cifs”, it is actually just 1 long line, but the word-wrap made it look like two. I also had problems with doing this with ‘nano’, because that inserted a ‘$’ when I tried to copy/paste multiple occurrances, so I switched to ‘gedit’. Also another tip, make sure that your {share names} don’t have a space in them!
//192.168.1.100/tvshows /srv/plex/tvshows cifs username=dm,password=pass1111,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0
//192.168.1.100/movies /srv/plex/movies cifs username=dm,password=pass1111,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0
//192.168.1.100/HalloweenCartoons /srv/plex/halloweencartoons cifs username=dm,password=tpass1111,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0
Examples above:
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.