How do I mount my shared media folders Ubuntu

Trying to set up Pms on a new Ubuntu install. I have Pms running on local qnap tvs 871. All of my media is on the qnap in a shared folder “Plex”, with individual media folders within. I believe I have permissions set correctly.
I can’t seem for figure out how to mount these folders to add them to my Ubuntu library.
I’m trying to learn Linux and failing…

You’ll find a lot of how-to info here.

Of interest to you now is,

Setting up PMS and learning Linux simultaneously is going to be painful. It’ll be a while before you understand how/why things work as they do. Hopefully the examples/How-To’s help you to understand as you use them.

yes, painful…
how do i see the "address of my folders in my qnap to create the mount point?
I have a shared folder on my qnap called “plexs” and in that folder there are all of my folders (music, tv, movies).
192.168.1.xxx:/share/plexs/Music? am i totally off here?

1 Like

Are you using NFS or CIFS/SMB?

With either protocol, the name you use on the linux client is the same as the shared folder.

example:

  1. Created shared folder: Movies
  2. Put all my movies in there
  3. Go to Linux:
    – (NFS) sudo mount ip.addr.of.qnap:/Movies /mount/point/directory/Movies
  4. In PMS, add folder /mount/point/directory/Movies

I show all of the mounting commands in the Linux Tips

To now use your example:

You created a shared folder named plexs and then put Music in it?

  • You don’t need to do that for Plex. You can if you want but why?

On Ubuntu: we again access the shared folder name, not the path.

sudo mount ip.addr.of.qnap:/plexs /path/to/mount/directory/here

The shared folder is PlexS with sub folders music, tv 4k, …

However you capitalized it is what you must use.

It might make best sense:

  1. create the parent directory (the mount point) and inherit the sub directories
sudo mkdir /mnt/PlexS
sudo chmod 755 /mnt/PlexS
  1. Now mount the shared folder:
sudo mount ip.addr.of.qnap:/PlexS  /mnt/PlexS
  1. Now you can use the local path /mnt/PlexS/---whatever--- as you wish in PMS

  2. If you’re happy with how this works, you will add the /etc/fstab entry to always mount the NFS share at system startup

Things have been going better, everything up and running properly. My libraries were not updating properly and I was trying to restart pms in terminal but nothing happens.
I have installed pms in ubuntu desktop from the plex downloads page.
i got as far as finding this and i do not know what to do next…

 plexmediaserver.service - Plex Media Server
     Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-03-29 14:49:02 EDT; 1min 32s ago
   Main PID: 599955 (code=exited, status=255/EXCEPTION)

Mar 29 14:49:02 mdheft-HP-Slim-Desktop-S01-pF1xxx systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Mar 29 14:49:02 mdheft-HP-Slim-Desktop-S01-pF1xxx systemd[1]: Stopped Plex Media Server.
Mar 29 14:49:02 mdheft-HP-Slim-Desktop-S01-pF1xxx systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Mar 29 14:49:02 mdheft-HP-Slim-Desktop-S01-pF1xxx systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Mar 29 14:49:02 mdheft-HP-Slim-Desktop-S01-pF1xxx systemd[1]: Failed to start Plex Media Server.

@mdavidh

Go make a tar.gz of the Logs directory under “Plex Media Server” and attach it here.

I do not know how to do that. I can only find the media server logs on the web interface…

You must be new to linux. I recommend reviewing tutorials on the command line use and the tar command.

  1. Open a terminal window
  2. cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server
  3. sudo tar cfz /tmp/plexlogs.tar.gz ./Logs
  4. The file you will upload will be /tmp/plexlogs.tar.gz

Very new to linux but each time I encounter a problem I learn a little more…
plexlogs.tar.gz (1.6 KB)

Are you running two instances of Plex? (Docker or Snap and host)

Mar 29, 2022 14:52:22.753 [0x7fab3e920ac8] ERROR - Error: Unable to set up server: listen: Address in use (N5boost10wrapexceptINS_6system12system_errorEEE)

Not intentionally? My server is up and running, wasn’t updating libraries, couldnt restart then I came here for help.
(I dont know what snap is or how to set up docker)

Is this something I need to address?

@mdavidh

On Ubuntu, while it looks the same, it’s not.

The Ubuntu app store is not the same as installing the Plex server as downloaded from Plex anymore. They changed that behavior as of Ubuntu 20.04

If you install from their store, you get a “snap” package (their installer)
versus the default system “dpkg” installer.

This results in two independent & not-aware installations which will collide.

To figure out what happened.

sudo snap list
sudo dpkg -l | grep -i plexmed

If you see Plex listed in both, then you have the answer.

Please let me know your results.

plexmediaserver 1.25.8.5663-e071c3d62 268 latest/stable plexinc✓

ii plexmediaserver 1.25.9.5673-bf5697c5d amd64 Plex organizes all of your personal media so you can easily access and enjoy it.
looks like they are both present? I have absolutely no Idea how/when I did that.
how do i know which one to remove and how do i do that?
Is there an advantage to one over the other?

Yep… you have the SNAP package and native

This won’t work.

You will lose one of them and might need to rescan your media. There’s no way of knowing.

sudo snap remove plexmediaserver --purge

This will remove it and clean up after itself.
It will also prevent it from making a snapshot before it uninstalls.

Now you can restart Plex

sudo systemctl restart plexmediaserver

poking around the web interface and I noticed that the database backup directory is. /var/snap/plexmediaserver/common/Library/Application Support/Plex Media Server/Plug-in Support/Databases

Would that mean that I would want to keep the snap package?

The choice is yours.

Snaps don’t update as often (only when Public updates)
Snaps don’t have access to the hardware transcoding elements you might have available to you on the host.

If you have simple (low demand/bitrate) media and a sufficient CPU, you’ll be OK.