Mount SMB shares from the command line

Jun 10, '02 10:58:55PM

Contributed by: unxmaal

Here's how to quickly mount a network share via the command line. First, create a folder called "share" somewhere in your home directory (wherever). Then open a terminal and type

mount -t smbfs //user@server/sharename share
From the Finder, look in your home directory for the 'share' folder. It should appear to be an alias. Once you click it, the mounted volume will appear on your desktop.

Caveat: you may have to install Samba by way of Fink. I've not tested without Fink, and I ain't gonna. =]

Comments (29)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020610225855377