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

x
  • 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
0
DominicVautour
Asked:
DominicVautour
1 Solution
 
Eoin OSullivanConsultantCommented:
You could modify a script like the one provided by DrNikon on this page ..
http://www.experts-exchange.com/Storage/Misc/Q_22649465.html

Have a look at AutoMount Maker to create a script for each volume .. you could then create an Applescript to open pre-arranged groups.
http://jm.marino.free.fr/index.php?switch=sw_&title=AutomountMaker&nav=introduction

You could also create a shell script and run it with iHook
http://www.versiontracker.com/dyn/moreinfo/macosx/16668

Script as follows .. copy lines 2 & 3 for each volume
#!/bin/bash
mkdir /Volumes/<Share Name>
/sbin/mount -t smb smb://username:password@172.0.0.0/<Share Name> /Volumes/<Share Name>
0
 
DominicVautourAuthor Commented:
AutoMount Maker was exactly what I was looking for! Thanks!
0

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