Featured Post

HOW TO: Install VPN server on Ubuntu when server is behind firewall

The whole point in this post is to run your own VPN service, and allow you to connect remote devices to your home network. To start off yo...

Nov 15, 2010

FreeNAS shares on Ubuntu

So I have FreeNAS running samba shares on my network, for the most part I really don't need to access the data on my actually Linux boxes - only my HTPC.

But I decided I wanted to create mount point on the media folder of my Ubuntu install.

So here is what I had to do in fstab (/etc/fstab)

//freenas_server/sharename /media/localsharedirectory cifs credentials=/home/macleod/smb.credentials,uid=mountuser,gid=mountgroup,iocharset=utf8,codepage=cp437,auto 0 0

My credentials are stored in smb.credentials, like so:

username=myuname
password=mypwd

And I got most of the information from here:
http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=38&t=2640&start=0&st=0&sk=t&sd=a&hilit=nfs+ubuntu

Obviously replace mountgroup, mountuser with your ubuntu username and group (group is probably the same as name).  Also replace the appropriate shares and credentials - hopefully you get the picture.

UPDATE:
I edited the fstab entry so I now define the iocharset and codepage, this is so foreign characters are displayed correctly in the filesystem, and applications.  I noticed the issue due to having display issues in iSub and Subsonic.

UPDATE2:
The DOS Charset should be CP437 - CP850 is missing a few which I needed for foreign language music artists.
Post a Comment