Just how can I mount an SMB share from the command line?

I would love to mount an SMB network share from the command line (terminal); just how would certainly I deal with that?

I am making use of Mac OS X 10.6.4.

2019-05-07 08:56:04
Source Share
Answers: 2

You need to have a look at mount's aid:

man mount

Upon closer examination you'll see that the filesystem's type is:

mount -t smbfs //username:[email protected]/SHARENAME /SomeLocalFolderOfChoice

Password (and also in theory username) are optional.

The outcome of the above command will certainly be no result (if all went ok), yet a cd /SomeLocalFolderOfChoice, need to generate the remote outcomes. Please keep in mind that SomeLocalFolderofChoice has to exist.

You can additionally make use of mount_smbfs to change the mount - t smbfs.

2019-05-09 01:56:37

You can conveniently attain this making use of mount_smbfs (which is, in fact, a wrapper for mount -t smbfs):

mount_smbfs //[email protected]/folder ./mntpoint

Optionally, add the workgroup:

mount_smbfs -W workgroup //[email protected]/folder ./mntpoint

You could, certainly, transform the ./mntpoint (for something like /Volumes/smb).

After doing this, merely most likely to ./mntpoint to surf your information.

To unmount, making use of the adhering to command:

umount ./mntpoint
2019-05-09 01:50:16