Adding External Hard Drive to Plex server on Ubuntu

As some of you have found that trying to map an External Hard Drive to your plex can be a plex-logo-dark-small-77202045f47146129647bee8b1cac77cpain. You think you have it and then you go into plex and you realize that you can choose your drive but it shows no content. This is due to a permissions issue with the “plex” user. The plex user needs to have permissions to the groups: plugdev, root, sudo, and your user. This will allow you to see what is in the folder inside the Plex app. So the first part of these instructions are meant to add the user to the groups, and the second part is to mount the drive and to have it remount when you have to reboot.

Open up Terminal

Type “sudo blkid” and type in your password. This will show the mounted devices. Keep note of the UUID of the device you want to add. Hint copy and paste it into a notepad.

Unmount drive with right click on the drive and choose Unmount or in the Terminal window type “sudo umount (DeviceID)”

Next steps you need to add permissions to the plex user. To do this you need to do the following.

In the terminal window use the following commands

“sudo gpasswd –a plex plugdev” after hitting enter you should get a message saying “Adding user plex to plugdev”

“sudo gpasswd –a plex root” after hitting enter you should get a message saying “Adding user plex to root”

“sudo gpasswd –a plex sudo” after hitting enter you should get a message saying “Adding user plex to sudo”

“sudo gpasswd –a plex (Your User Name)” after hitting enter you should get a message saying “Adding user plex to (Your User Name)”

“sudo gpasswd –a (Your User Name) plex” after hitting enter you should get a message saying “Adding user (Your User Name) to plex”

Now you need to create a directory in your home folder. This can be down either with the GUI or in the Terminal. Also one thing to keep in mind these Directories are case sensitive, they will have to match a later step so keep that in mind.

Gui

Right click inside the home director and choose new folder and name it what you want like “Media”.

Terminal

In the terminal “type mkdir” Media or whatever you want to call it.

Editing the fstab folder to make the folder auto mound on start up.

In the Terminal window type the following

“sudu gedit /etc/fstab”

This will open a new window and the fstab file. “DO NOT DELETE ANYTHING THAT IS ALREADY IN THERE” What we are going to do is to add to the bottom of it. Follow the directions and all should go well.

Type the following

# (Enter a comment on what you are going to be adding) Like “External Media USB drive for Plex”

UUID=(DEVICE ID) “Then hit the tab” (Mountpoint “/home/Username/Media”) “Tab” ntfs “Tab” 0 “Tab” 0

Example

UUID=6db8d964-8400-432d-bc3a-e15abd0acfb0               /home/chris/Media        ntfs        0              0

Now you need to save the file and reboot your machine. Once it is up and running again your External drive should be mounted to your machine and if you open up your home directory your “Media” folder should have a USB icon added to the folder icon. This is to show a drive is mapped to this folder. Now when you open up Plex you can add the “Media” folder to the database.

Advertisements

About childebrandt42

I am a jack of all trades and a master of none.
This entry was posted in Home Automation, Media Server and tagged , . Bookmark the permalink.