Skip to content

Instantly share code, notes, and snippets.

@nmarley
Created August 11, 2016 23:33
Show Gist options
  • Save nmarley/81036a046bbf1c3f1f5d0b4c7aa57f83 to your computer and use it in GitHub Desktop.
Save nmarley/81036a046bbf1c3f1f5d0b4c7aa57f83 to your computer and use it in GitHub Desktop.
SMB mount from OSX

smb_mount

Examples for mounting Windows network filesystem(s) from an OSX client.

  1. List available shares/disks on computer 'mb052361' (as local Windows user 'root'):

    smbutil view //root:password@mb052361

Output:

Share                                           Type    Comments
-------------------------------
ADMIN$                                          Disk    Remote Admin
print$                                          Disk    Printer Drivers
Users                                           Disk
Fax - HP Officejet Pro 8600 (Copy 1)            Printer Fax - HP Officejet Pro 8600 (Copy 1)
C$                                              Disk    Default share
HP Officejet Pro 8600                           Printer HP Officejet Pro 8600
Fax - HP Officejet Pro 8600                     Printer HP Officejet Pro 8600 (Copy 1)
C                                               Disk
IPC$                                            Pipe    Remote IPC

9 shares listed
  1. Mount C: on computer '' to /mnt as user (as local Windows user 'root'):

    mount -t smbfs '//root:password@mb052361/C$' /mnt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment