What Linux Distro?

Pretty damn good. Thanks for the help. My computer appreciates not being abused as well. LOL

When this is all done? Maybe treat it to a new keyboard? :joy:

Now for the easy part. Now everything I showed in the other How-To is going to make perfect sense.

I will do it by hand the first time as verification. We will add it to /etc/fstab after it works

you have directory /nas
I will presume the name of your movies share is movies

sudo sh
mkdir /nas/movies
chmod 755 /nas /nas/movies
mount ip.addr.of.qnap:/movies   /nas/movies

There should be no errors

Now look in /nas/movies (ls -la)
You should see the movie top directory

Please confirm or show me what you get

plex@Plex-Server:/nas$ sudo sh
[sudo] password for plex:

mkdir /nas/Movies

mkdir: cannot create directory ā€˜/nas/Movies’: File exists

chmod 755 /nas /nas/movies

chmod: cannot access ā€˜/nas/movies’: No such file or directory

chmod 755 /nas /nas/Movies

mount 192.168.1.2:/Movies /nas/Movies

I think it might have worked once I figured out that things were case sesitive.

yep… linux is case sensitive. That’s all you need remember.
The name Movies is not the same as movies

that’s why we tend to use lower case for everything. :slight_smile:

Does it work? Are you seeing the files on the NAS when you do a
ls -la /nas/Movies ?

Yes I do

If it’s /nas/Movies, then here’s how it will look in /etc/fstab ( all lower case haha)

sudo gedit /etc/fstab

ignore the stuff printed on the console – it does that

ip.addr.of.qnap:/Movies    /nas/Movies        nfs    defaults,auto,rw,nofail,bg  0 0

There are no spaces between the options, only commas (defaults -> bg)

Save the file

Now let’s make the full test:

  1. Unmount the existing manual mount
sudo umount /nas/Movies
  1. Perform the mount by specifying only the target directory (this uses /etc/fstab). There should be no errors. If any errors, show me. we’ll find the typo
sudo mount /nas/Movies
  1. Again, if no errors, it’s done.
  2. It will mount when the system boots but not fail to boot if the QNAP is down.
  3. Test it out by pointing Plex at /nas/Movies

Ok this is strange. Im using localhost connection to Plex but Im on the actual server. If I go in to the file explorer and go to /nas/Movies all the movies are in there. BUT if I search for the /nas/Movies directory when adding the library to Plex, it does not see it at all.

Show me what you’re seeing

You will need to go to the top of the file system, / on the left pane, with nas in the right pane.

You click nas on the right pane and it jumps to the left simultaneous with /nas now showing in the descriptor at the top of the Add Folder .

This is is where you scroll the right panel back up to the top.

You will see Movies listed. Click it.

The top now shows /nas/Movies (which you can just type in if you wanted)
The right pane will now show all the movie folders.

Click ADD

nas doesnt appear in the list. I have bin, boot, dev, etc, lib, lib64

So I think Im in the right place. it goes from mnt directly to opt. No NAS option. How do I reboot the Plex server software? Maybe that will help.

I think I misunderstood your reference a bit.

If you want to add use the local FileBrowser (Nautilus), it’s easy:

Click ā€œOther Locationsā€
Click Computer
Click NAS
Click Movies (which opens it so you can see your movies)

(now for the trick - Make a bookmark )

Screenshot%20from%202019-08-03%2022-49-49

This what you mean?

EDIT: back in the terminal window

cd /nas
ls -la 

Copy/paste that output here for me please.

Made the mistake of rebooting the computer. For some reason today the computer is taking like forever to boot. It even takes a longer to get to the Lenovo boot splash screen. Im begin to think its having a stroke. Maybe tossing it earlier was not a bright Idea.

That might not have been the best way to treat it

drwxr-xr-x 8 root root 4096 Aug 3 14:47 .
drwxr-xr-x 25 root root 4096 Aug 3 14:36 …
drwxr-xr-x 2 root root 4096 Aug 3 14:36 Anime
drwxr-xr-x 2 root root 4096 Aug 3 14:42 dvr
drwxrwxrwx 18 plex users 4096 Jun 12 20:16 Movies
drwxr-xr-x 2 root root 4096 Aug 3 14:42 music
drwxr-xr-x 2 root root 4096 Aug 3 14:42 photo
drwxr-xr-x 2 root root 4096 Aug 3 14:36 TV

On this ubuntu system,
when you add a folder, you can just type it in.

Create a movie Library:
Add Folder:

/nas/Movies       <-- type this in at the top.. type slowly

Add it.

ok… that’s not right

sudo sh
cd /
ls -la

Let me see that copy/paste please

total 2097268
drwxr-xr-x  25 root root       4096 Aug  3 14:36 .
drwxr-xr-x  25 root root       4096 Aug  3 14:36 ..
drwxr-xr-x   2 root root       4096 Aug  3 23:09 bin
drwxr-xr-x   4 root root       4096 Aug  3 23:10 boot
drwxr-xr-x   2 root root       4096 Jan 28  2018 cdrom
drwxr-xr-x  20 root root       4480 Aug  3 23:01 dev
drwxr-xr-x 124 root root      12288 Aug  3 23:10 etc
drwxr-xr-x   3 root root       4096 Jan 28  2018 home
lrwxrwxrwx   1 root root         33 Jan 28  2018 initrd.img -> boot/initrd.img-4.18.0-15-generic
lrwxrwxrwx   1 root root         33 Jan 28  2018 initrd.img.old -> boot/initrd.img-4.18.0-15-generic
drwxr-xr-x  21 root root       4096 Jan 28  2018 lib
drwxr-xr-x   2 root root       4096 Feb  9 19:12 lib64
drwx------   2 root root      16384 Jan 28  2018 lost+found
drwxr-xr-x   2 root root       4096 Feb  9 19:12 media
drwxr-xr-x   2 root root       4096 Feb  9 19:12 mnt
drwxr-xr-x   8 root root       4096 Aug  3 14:47 nas
drwxr-xr-x   2 root root       4096 Feb  9 19:12 opt
dr-xr-xr-x 289 root root          0 Aug  3 23:01 proc
drwx------   4 root root       4096 Aug  3 15:02 root
drwxr-xr-x  35 root root       1060 Aug  3 23:10 run
drwxr-xr-x   2 root root      12288 Aug  3 21:52 sbin
drwxr-xr-x  13 root root       4096 Aug  3 15:02 snap
drwxr-xr-x   2 root root       4096 Feb  9 19:12 srv
-rw-------   1 root root 2147483648 Jan 28  2018 swapfile
dr-xr-xr-x  13 root root          0 Aug  3 23:01 sys
drwxrwxrwt  18 root root       4096 Aug  3 23:10 tmp
drwxr-xr-x  10 root root       4096 Feb  9 19:12 usr
drwxr-xr-x  14 root root       4096 Feb  9 19:20 var
lrwxrwxrwx   1 root root         30 Jan 28  2018 vmlinuz -> boot/vmlinuz-4.18.0-15-generic
#

How is plex running on this machine?

Native app?
Docker?
Snap?

Downloaded thru the package manager, I think thats what you guys call it in the Linux world.

Now I understand. You got it from the Ubuntu store?
if so, that’s a snap package. It won’t see the NAS.

This is easy to fix.

  1. Uninstall it. :slight_smile:
  2. Go to plex.tv/downloads
  3. Linux
  4. X64 Ubuntu
  5. When done downloading, In the terminal window
cd   ~/Downloads
ls *.deb      <-- makes sure you see the plex package name there with **.deb** extension

Do you see just one .deb ?

if so: we can cheat else you need to type in the whole name (or use tab-key file completion)

sudo dpkg -i plexmediaserver*.deb

Make sense?