MacOS – How to easily mount a Windows share from the Mac

file-sharingmacosnetworkingosx-tiger

I'm running Tiger.

I know I can go to finder, click network, find the computer, click connect, wait, select the share, and click OK.

Is there any way I can compress those into a single action? Terminal commands OK, but I'd like it to produce the same result — i.e. the share appears in finder, I can unmount it by clicking the eject icon, etc.

Best Answer

Two methods are quick and simple.

  1. mount via commandline in Terminal.app:

    sudo mount -t smbfs //username@windows.home.example.com/Shared /Volumes/Shared

The /Volumes/Shared directory needs to exist. Change to fit your network.

  1. Use Finder. You're probably familiar with this, but for the readers at home :).
    • Select Finder (clicking the desktop works)
    • Command-K will bring up "Connect to Server" dialog.
    • Type in the URI, for the above share: smb://username@windows.home.example.com/Shared, it will automatically mount on /Volumes/Shared.
    • Click the (+) plus button to add to the favorites list.
    • Connect.

Also, the "clock" button next to the plus will show recently connected fileshares.

  1. Bonus! Not really a method, but something you should do so this doesn't need to be done every time you boot.
    • Open Account Login Items: System Preferences -> Accounts -> Login Items (or spotlight search for accounts).
    • Click the (+) plus below the main dialog.
    • Navigate to the share you just mounted, under 'Shared'.
    • Click "Add".
    • Uncheck the "Hide" box on the main dialog, unless you want that folder to open every time you log in.
Related Question