Automounting different SMB Shares in OS X

Posted on 2007-10-17
Last Modified: 2013-11-24
I have a Macbook with OS X 10.4.10 that I use at home, work and on client sites.
At different locations I have different SMB Shares or NAS that I need to access.
At the moment, I mount whatever drives I need by going into the Finder -> Network -> Machine/NAS -> Folder and accessing them that way, however that process is slow and long.

My question is this:
Is there a way to auto-mount these drives, preferably attempting to connect to each of the ones I use and opening the appropriate one? Please keep in mind I do not reboot between sites which eliminates the boot up options.

Alternatively, if there is no way to do this, is there a way I could trigger a script when I change sites to scan for my different drives and attach to whatever is present?

Thank you for your help
Question by:DominicVautour
    LVL 39

    Accepted Solution

    You could modify a script like the one provided by DrNikon on this page ..

    Have a look at AutoMount Maker to create a script for each volume .. you could then create an Applescript to open pre-arranged groups.

    You could also create a shell script and run it with iHook

    Script as follows .. copy lines 2 & 3 for each volume
    mkdir /Volumes/<Share Name>
    /sbin/mount -t smb smb://username:password@<Share Name> /Volumes/<Share Name>

    Author Comment

    AutoMount Maker was exactly what I was looking for! Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
    This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
    This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now