Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1663
  • Last Modified:

Automounting different SMB Shares in OS X

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
1 Solution
Eoin OSullivanConsultantCommented:
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>
DominicVautourAuthor Commented:
AutoMount Maker was exactly what I was looking for! Thanks!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now