What's Your IT Question?

Want to know more about this topic or about us? Contact us!

Mount a network drive in OS X using the cli

This first command lists the available shares at the destination IP:

smbclient -U user -I -L //smbshare/ 

(Note that some of the newer versions of OS X use “smbutil” instead of smbclient)

Now you’ll want to pass set your SMB shares mount point:

mount -t smbfs -o username=winusername //smbserver/myshare /mnt/smbshare

And finally you’ll want to gain access to the SMB share by specifying your Windows login and the machines IP address:

mount -t cifs -o username=winusername,password=winpassword // /mnt/share