CentOS SMB shares not working with FreeNAS

Server Version#: Current Version, just installed this yesterday
Player Version#:

HI all,

I installed a fresh copy of Plex on a CentOS server yesterday. Plex is running fine. The problem I’m having is setting up SMB so that I can connect to my FreeNAS share.

I followed this tutorial:

At the bottom it goes in to connecting to a network share. I follow the directions and when I run this command:

sudo mount.cifs \\192.168.1.200\shareName /mnt/nas/media -o user= SambaShareUserName,uid=5000,gid=6000

It throws a, “Connecting to xxx.xxx.xxx.xxx failed, unknown error.”

I searched the web and found this error all over but most of them just say to use an IP address.

Problem is, I AM USING AN IP ADDRESS! As another note the host name doesn’t work either.

All the software is current versions as I pull them from the repo using yum.

Please let me know if you can offer any help to me as I switched from a Windows Plex server to this and I am dead in the water currently.

Thank you!

Does that share exist in you’re freenas?

And btw since you have FreeNAS in one side and Linux in the other, perhaps you can go with nfs? That should be easy to setup on the freenas side (Well and possibly smb too).

I just mention NFS cause setup on both server and client side might be easier (at least NFS v3) if you need to access the FreeNAS share in a windows machine, then you’ll likely need SMB regardless.

I actually got it working. Had to do some Linux investigating. The only thing required was to put a mount command in the fstab. Samba is built in the Kernel. Once I mounted the drive, then getting it to come up on boot was easy. So in case someone else needs to know, here’s what I did:

As root installed the cifs-utils package:

yum install cifs-utils

Then created the mount directories. You can create these pretty much anywhere and they are regular directories:

cd /mnt
mkdir plex

Which gives you a path of /mnt/plex

Then I mount the drive with my NAS share to this location by putting this line in the /etc/fstab file:

//192.168.1.2/Media/Movies /mnt/plex/Movies cifs username=xxx,password=""

The IP address is the remote Freenas server and the share has no password. If there is no password you can use any username (I used guest).

Save the fstab file and then run, “mount -a,” or, “sudo mount -a,” if you are not root.

This reloads the fstab file. If you get an error, you have a syntax problem.

If it doesn’t throw an error, the drive is mounted. You can go to your mount point and you should see the remote files:

cd /mnt/plex/
ls

This should list all your files.

Hope this helps!

Ah so the problem was “client” side (in terms of samba server/client).

Yeah you would need to mount it first (fstab mount it at boot) same has you would in windows (but with a network drive probably).

Unsure about CentOS but some linux distros (and even FreeBSD or MacOS) offer “autofs” or “automount” which might help too, but fstab is fine.

CentOS should also have built in NFS support, you can experiment but it might offer better performence.

One thing though, be sure the dirs are created so the plex user (or whatever user runs PMS on centOS) has access to it, at least read, but possibly write to for some functions.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.