Skip to content

Instantly share code, notes, and snippets.

@ipbastola
Created July 21, 2016 12:29
Show Gist options
  • Save ipbastola/eaa107b4640262a108fcc3ef57d24836 to your computer and use it in GitHub Desktop.
Save ipbastola/eaa107b4640262a108fcc3ef57d24836 to your computer and use it in GitHub Desktop.
How to mount CIFS into Ubuntu 14.04-x64 LTS

CIFS Mount on Ubuntu 14.04

1. Install packages

$ sudo apt-get install cifs-utils

2. Create a Mount point Directory

$ sudo mkdir /mnt/CIFSMOUNT
$ sudo chown -R <user>:<user> /mnt/CIFSMOUNT

3. CIFS Credentials

$ sudo su
# cd /root
# vim .smbcredentials

Supply the username and password for CIFS storage as follows:

user=<cifsusername>
password=<password>

4. Fstab Entry

$ sudo vim /etc/fstab

Add the following content at the bottom of the file:

#
# CBS NAS CIFS Mount Point 
#
//<CISFSTORAGEIP>/<cifspath>  /mnt/CIFSMOUNT        cifs    credentials=/root/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Please replace <CISFSTORAGEIP> with actual IP and <cifspath> with actual path

5. Mount the CIFS storage

$ sudo mount -a
$ df -h
@g43l3n
Copy link

g43l3n commented Apr 24, 2024

tried a few step guides, this was clear and worked. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment