Skip to content

Instantly share code, notes, and snippets.

@LordFader
Forked from ipbastola/cifs-mount.md
Created October 11, 2021 00:48
Show Gist options
  • Save LordFader/58c66e9a80d38bc478154b3ea99243e3 to your computer and use it in GitHub Desktop.
Save LordFader/58c66e9a80d38bc478154b3ea99243e3 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment