Mapping an SMB Share on a Mac via Terminal
To map an SMB share on a Mac via the terminal:
- Create a new folder to act as the mount point. This is essentially a proxy for the folder on the remote machine.
mkdir ~/share-home
- Enter this command to link the new folder to the share.
mount -t smbfs //user@share-host/share-name ~/share-home
user: your SMB user name on the machine hosting the SMB share.share-host: The IP address or network name of the SMB host machine.share-name: The name of the SMB share.~/share-home: The name of the folder we created in step 1.
After that you can access the files in the share from the folder created in step 1. Note that this is temporary and will not persist after a reboot.
Read other posts