Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 // /home/ugo/m -ousername=XXX,password=YYY,vers=2.1
#to mount permanently, add entry in fstab then sudo mount -a
#/etc/fstab entry
#//<share> /media/<local path> cifs credentials=/home/<home dir>/.smbcredentials,iocharset=utf8,vers=2.1 0 0
#.smbcredentials contains:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment