Created
September 19, 2013 09:40
-
-
Save natritmeyer/6621231 to your computer and use it in GitHub Desktop.
How to mount and unmount a SMB share on Mac OS X (using mount_smbfs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Mounting the share is a 2 stage process: | |
# 1. Create a directory that will be the mount point | |
# 2. Mount the share to that directory | |
#Create the mount point: | |
mkdir share_name | |
#Mount the share: | |
mount_smbfs //username:[email protected]/share_name share_name/ | |
#Unmount the share: | |
umount share_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just tested and confirmed this also works:
mount -t smbfs //username:[email protected]/sharename mountfolder
You can leave the password off and be prompted for it.
You can leave the username off if it matches your current username.
mount -t smbfs //server.name/sharename mountfolder