Skip to content

Instantly share code, notes, and snippets.

@ugovaretto
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugovaretto/ead404aa225afdff0cfb to your computer and use it in GitHub Desktop.
Save ugovaretto/ead404aa225afdff0cfb to your computer and use it in GitHub Desktop.
Mount smb share from linux
#requirement: sudo apt-get install cifs-utils
#The key to make it work is the *** vers=2.1 *** parameter
#try with versions: 1.0, 2.0, 2.1 and 3.0 (as of 10 2014), read through the cifs docs
#for up to date info, the following works from an ubuntu 14.3 guest to an Apple Mac OS Mavericks host
sudo mount -t cifs //10.0.2.2/ugo /home/ugo/m -ousername=XXX,password=YYY,vers=2.1
#to mount permanently, add entry in fstab then sudo mount -a
#/etc/fstab entry
#//10.0.2.2/<share> /media/<local path> cifs credentials=/home/<home dir>/.smbcredentials,iocharset=utf8,vers=2.1 0 0
#.smbcredentials contains:
#username=...
#password=...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment