Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So I've been looking around and can't find an exact solution to my problem. I dual boot Windows 7 and Ubuntu 13.04. I like Ubuntu and want to use it instead of windows. Everything was working on Ubuntu 13.04 running PMS and a external USB HDD hooked up to it until I got a NAS WD MyBookLive 3TB drive. So I understand with this there are shared folders on this drive. I created a folder called Plex which then has sub-directories:

"MyBook" is the name of the drive

  • MyBook/Plex/Movies
  • MyBook/Plex/TV Shows

I don't know how to mount/map this properly to keep this mounted every time there is a reboot needed. Also I just don't understand how to add it into plex. I know this will be fixed when the shared folder "Plex" is mounted/mapped correctly. I just can't get plex to see it. There isn't a username or password needed to get into the shared folder "Plex". So credentials aren't needed.

IP address of the mybook is 192.168.0.13.

I have read various things and tried several different things, but no luck. If someone could help me I would be grateful. The drive is NFS and Samba compatible.

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

I don't believe Plex has any way to access drives from a network location, but like this thread on Plex for Mac suggests - http://forums.plexapp.com/index.php/topic/58993-add-folder-from-local-network-nas-hdd-in-plex-server-library/ - if you are able to mount them within the local filesystem, then you should be able to do it with no problem.

You'll need to decide where you want the mounted files from MyBook to appear in your filesystem. I would suggest something like /media/Plex. Once you decide, open a terminal and type:

sudo mkdir /media/Plex

(This assumes you don't already have that directory. You'll need to enter your password, because usually only the operating system edits things in /media)

Now, let's install CIFS Utilities:

sudo apt-get install cifs-utils

Then, you'll want to edit your /etc/fstab - this is what tells Ubuntu what to drives to mount (and where) when it starts up. You may wish to backup /etc/fstab first (in case something goes wrong your you want to undo this easily). You can do this by entering in terminal:

sudo cp /etc/fstab /etc/fstab.bak

(Now you've got a backup copy called fstab.bak)

Next, to add your NAS. Still in the terminal, type:

sudo gedit /etc/fstab

This will open /etc/fstab in the text editor with write permissions. Don't touch anything already added to the document, but add to the end of that document this line:

//192.168.0.13/Plex /media/Plex cifs guest 0 0

Since you said there's no password, guest should work.

Now, to test, type in terminal:

sudo mount -a

And open Nautilus (the file manager). Your MyBook's Plex folder should now show up in the left-hand sidebar!

So, also, you should now be able to "Add Section" in the Plex Media Server web UI by clicking the big + sign in the My Library section (below in red).

plex with "add section" highlighted

Select the type of media, and then you should be able to select the Movies or TV shows from your new /media/Plex folder (which is really your MyBook). I did the same thing with what I have available (I don't own a MyBook, but I did the same thing with my readyshare, and here it is after mounting it in /media/readyshare, ready to be added as a Plex section:)

adding a section from a network drive (readyshare)

share|improve this answer
    
So this worked. My only question now is how do I mount it with write permissions? Everything I can read, but I can't write to the share drive? –  Joe Callahan Sep 17 '13 at 2:29
    
@JoeCallahan - The problem might be that it's mounting as root so only root can write to it - like this ubuntuforums.org/showthread.php?t=1409720 - we can try that fix. So enter in terminal sudo id user_name (where user_name is your usual username) . Your output should be something like this uid=1000(user_name) gid=1000(user_name) groups=... - take that UID and GID add them to the line in /etc/fstab, so it looks like //192.168.0.13/Plex /media/Plex cifs defaults,uid=1000,gid=1000 0 0 - if that still doesn't work, try using the UID and GID for sudo id plex –  drkokandy Sep 17 '13 at 15:11
1  
So I used this to fix my issue "//192.168.0.10/Plex /media/Plex cifs guest,uid=joe,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm 0 0". I found it here "askubuntu.com/questions/313093/…;. This is just in case someone wants a reference. This mounted the plex share drive with rw permissions. Thanks everyone for your help. –  Joe Callahan Sep 20 '13 at 1:03
add comment

I'm a newbie. That being said: The answer for me was to format the external drive from NTFS to ext4 and add the content back on. Then, just Modify the permissions for the Directory (In my case /media/data). It worked like a charm.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.