I’ve just made the switch to Ubuntu 18 from Windows and am trying to follow guides for moving the Plex Library metadata to an SSD. The issue I’m running in o is that all the guides say the data is located at /var/lib/plexmediaserver but I find that directory at /var/snap/plexmediaserver. Can I just supplement the path and have the guide be accurate still?
I’m also unable to stop plexmediaserver to perform the move. I’ve tried the following commands to stop plex but receive errors saying:
killall ‘Plex Media Server’ “killall ‘Plex Media Server’”
sudo service plexmediaserver stop “Failed to stop plexmediaserver.service: Unit plexmediaserver.service not loaded.”
I’m able to access the server via the webui but cannot figure out how to stop it once running.
First… I’m trying to move this directory to a dedicated SSD but the guide says not to use /media directory because Gnome uses it(although I don’t know about Unity), but this is where the drive mounts to. Is this still an issue in Ubuntu 18? How do I go about moving this SSD that’s mounted in /media/USER/Plex Library to /home/plex? This feels like a very Linux noob question to ask.
The guide also says to delete the original plexmediaserver directory but I tried using rm -rf /path/to/old/plex but it gave me a list of errors that rm could not remove files. Maybe a permission issue?
I’m stumped on how to proceed. Any help would be greatly appreciated.
I did not bring the server data over from Windows, just the media and it’s currently on my Drobo until I get Plex sorted out. Then the media will be transferred to ext4 drives in the new server.
I am using an SSD for Ubuntu and want to use a second SSD for Plex.
I would love for all of my drives to mount on boot along with Plex starting on boot. These are next on my list to figure out.
I’ve tried to follow your guide below and have referenced others allowing the way, but yours seems to be the best and most concise.
I’ve also configured a RAMDISK to use for my transcoding location and pointed plex to that location. I believe that is set to auto-mount via an edit to fstab. That still needs to be tested but I want to get this figured out first.
I’m reading through the guide now but I think it’s going to take me a few to wrap my head around it. I’ll respond with an update or questions as soon as possible. Thanks for your help ChuckPA.
Here’s my unsaved edit to /etc/fstab. Please let me know if they make sense and if the /ssd/c directory is correct. Yes… I need to stop putting spaces in things now.
My OS SSD is formatted to ext4 and a LABEL is not present in the blkid output for it.
# Addtions for external and internal drives
# Mount Big Drobo (ext4) at /ssd/"Big Drobo" for Plex
UUID=06C8EE5EC8EE4C0D /ssd/"Big Drobo" ntfs defaults,auto,rw,nofail 0 1
# Mount Plex SSD (NTFS) at /ssd/"Plex Library" for Plex
UUID=29cf6d21-ed8f-456c-aac1-a8c9790b9b77 /ssd/"Plex Library" ext4 defaults,auto,rw,nofail 0 1
# Mount /dev/sda1 directly READ-ONLY, and use the device name because it will never change
/dev/sdf1 /ssd/c ext4 defaults,auto,ro,nofail 0 1
There should be #'s in from of the bold parts.
Moderator edited: Used code formatting to improve readability
“/ssd/Big Drobo” is a USB attached RAID enclosure. It’s not an NAS.
“/ssd/Plex Library” is where you would like your Plex metadata (Library) to be? - Yes.
“/ssd/c” , while a bit misleading, is named “c” only because it provides reference to the Window C: drive. It gives you a “what is what” mapping. - That means I can use any name as the reference, right?
To keep your /etc/fstab easier for now, can we not use spaces?
Thanks for clarifying “drobo”
We can use directory slashes and get rid of the name (quotes aren’t needed anymore)
Yes, “c” is an arbitary name. I used it in my example only to help those transitioning from Windows to Linux as a well known reference point. (hence: /disks/c)
Now that I understand your structure better, I would like to make the following suggesting
For this first part, can we simplify the names?
I would like to suggest:
/drobo for your drobo mount point
/plex for where SSD #2 mounts and then becomes /plex/Library
Shorten /ssd/c to just /c or /C (Linux is case sensitive so these are two different names.
I’m glad you’re pushing for this change now. This is fine with me and something I knew would need to be done eventually.
I’m going to have to work on that tomorrow though because changing the mount point will break the plex libraries I have setup and interrupt others, right?
Can you provide instructions on how to change the mount points?
your Windows drive is indeed /dev/sda1 (it should be)
We use linux standard naming convention of lower case unless we have a very specific reason.
I recommend:
#
# Lines to add for Plex use
#
# Addtions for external and internal drives
#
# Big Drobo
UUID=06C8EE5EC8EE4C0D /drobo ntfs defaults,auto,rw,nofail 0 1
# Mount Plex SSD
UUID=29cf6d21-ed8f-456c-aac1-a8c9790b9b77 /plex ext4 defaults,auto,rw,nofail 0 1
# Mount /dev/sda1 directly READ-ONLY, and use the device name because it will never change
/dev/sda1 /c ntfs defaults,auto,ro,nofail 0 1
These lines get added to the bottom of your fstab file.
Please let me know how this fits with your needs?
If so, you’ll need to make the directories and set their permissions (this basic info is in the how-to… just copy the “chmod 755” instructions in that section.
We will address putting your Plex metadata into proper position tomorrow.
When we change how the media is mounted (move content to a new location), we follow a simple procedure and , for short time, you see both your media unavailable and then having duplicates.
I have personal business tomorrow morning. I will return after 1pm EST.
The weird thing is that /dev/sda1 is a 5TB internal storage drive.
I’m going to double check the UUIDs a little later. I also have some errands to run tomorrow so hopefully we will find some time to work on this.