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 – comment here if you have any probs and I’ll try and resolve them and/or clarify the post.

Cheers!

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

sudo apt-get install samba
sudo apt-get install smbfs

Related posts:

  1. How To: Mount a NAS in Linux (via Samba)
  2. How To: Force Windows to Forget a Network Share Password
  3. How To: Mount a SD card in Linux
  4. How To: Delete Stuff Stuck in your Linux Trashbin
  5. How To: Install Thunderbird 3 in Linux
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

10.04 360 ActionScript ActionScript 3.0 Adobe Art Ballarat Bash Compiz Compression Controller CS4 CUFDIG302A Effect Fail Film Fire Flash Gaming Hack How-To install Jaunty Josh Joplin Group Linkage Linux Motion mount Music NAS Particle Photoshop Problem PS3 r3dux.org Retro Slides Sound Systems Ubuntu Video VirtualBox Wii Windows XBox

Gamercard

Prepare for Awesome



“Throw out your bank statements. Keep your love letters.”

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