r3dux.org

A number-pimping side project from the valleys in *NEW* upside-down flavour.

  • Home
  • ABOUT
  • OLD SITE
  • SEARCH
  • FEEDBACK

How To: Mount a NAS in Linux (via CIFS)

r3dux | July 3, 2009

Apparently CIFS is the new Samba, so to mount your NAS via CIFS instead of Samba, read this, then change the fstab line to:

//<YOUR-NAS-IP>/<NAME-OF-NAS-SHARE> /<WHERE-YOU-WANT-TO-MOUNT-THE-NAS> cifs credentials=/root/.credentials,rw,auto,uid=<YOUR-UID-NUMBER-OR-USER-ACCOUNT-NAME>,gid=<YOUR-GID-NUMBER-OR-GROUP-NAME> 0 0

i.e. For me it’s:

//192.168.1.100/Share /mnt/Share cifs credentials=/root/.credentials,rw,auto,uid=r3dux,gid=r3dux 0 0

You might notice reference to a .credentials file above. You need to create this!!

The format of the credentials file [you can call it anything & place it anywhere - just make sure you point to it in the fstab lines(s)] is:

username=YOUR-NAS-USER-NAME
password=YOUR-NAS-PASWORD

So stick the above two lines in a file, substituting appropriately for the accounts and passwords on your NAS, then sudo chmod 600 it and remount the filesystem with sudo mount -a.

Job’s a good ‘un!

Update: Don’t forget – you’ll need to have samba, smbfs and cifs-utils installed for this to work! So go nuts with:

sudo apt-get install samba smbfs cifs-utils

No related posts.

Categories
How-To, Linux
Tags
CIFS, How-To, mount, NAS, Samba
Comments rss
Comments rss
Trackback
Trackback
Print This Post Print This Post

« Best. News. Evah! Words are not enough…… »

One Response to “How To: Mount a NAS in Linux (via CIFS)”

  1. How To: Mount a NAS in Linux (via Samba) | r3dux.org says:
    July 3, 2009 at 7:01 pm

    [...] seems to be the way & the path – so glance at this lot to get the fundamentals, then read this article to change to mounting via [...]

    Reply

Leave a Reply

Click here to cancel reply.

Translate

Categories

Archives

Tags

3D ActionScript ActionScript 3.0 Adobe AI Ballarat Bash C++ Class Convert CS4 Effect Error Film Flash GLSL Gnome Hack How-To install Jaunty Java Kinect Linkage Linux Mash-Up Microsoft Motion OpenGL Particle Problem PS3 Remix Retro script Slides Sound Systems Texture Ubuntu Video VirtualBox Wii Windows XBox

Gamercard

OpenR3dux

Misc.

Flattr this

RSS Feed

r3dux twitter feed



“You can't reason someone out of a position they didn't reason themselves into.”

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox