Plex can't optimize media because it can't write to the drive

Hey there,

I have Ubuntu Server 20.04.3 LTS with plex installed. On my Truenas server, I have my plex media drive and a network share setup for it. On my Ubuntu Server, I have that network share (a.k.a. the plex media drive) mounted (/home/cas/plex-media/[here]). I have it mounted in fstab using the following line:

//192.168.2.16/Plex\040Media /home/cas/plex-media cifs username=USERNAME,password=PASSWORD,uid=1000,gid=1000 0 0

When I cd to /home/cas/plex-media, I see my Movies and Series directory fine (using the user cas which is UID1000).

When I want to optimize a movie, I get the error that plex can’t write to the destination drive. I’ve added plex to the group that all the media files fall under. Still plex gives errors. I think it has to do with the fact that it’s over a network share which require credentials and the user used to access the share is UID1000 forced (see the fstab line above). I don’t know how to fix it as it isn’t as easy as adding the user to the group (as I’ve already done that).

You’re forcing UID, but have you extended the file & directory mode?

e.g.

In /etc/fstab, add options

,file_mode=0660,dir_mode=0770 

to the mount.

Now the group has RW for files, and RWX for directories.