|
|
10.4: One way to automount SMB network shares
A method similar to what I'm doing has been shown already, but I'll show what I have, since it seems to work really well for me: First off, my laptop is almost never turned off - and I almost never log out, so the login items trick isn't that useful to me. However, the laptop does go to sleep whenever I close the lid, so that immediately points me to SleepWatcher. SleepWatcher allows you to use two scripts, one for on sleeping, and one for on waking up. If you create the automator workflow as described in the hint above, and then add it to sleepwatchers wakeup script, it will attempt to connect everytime your laptop wakes up. Just add something like "open ~/connectToMyServers.app" to the script. Then, I add something like "umount /Volumes/SERVER_NAME" for each server that I have in the automator workflow to sleepwatcher's sleep script. This removes the hassle of having connected drives when you go off network ( assuming you sleep when you move your machine ), and reconnects to the servers if they are available. I'm sure there is a better way of managing it ( could use automator to manage the disconnects too I'm sure ), but this is working really well for me right now.
10.4: One way to automount SMB network shares
I've been using a similar method to this for years to mount an afp server volume on my laptop at home . . .my wife and I save all real data to the server instead of our local homedirectories. An applescript of the form mount vol afp://user:password@server_IP:sharename works perfectly.
umount /Volumes/SERVER_NAME
the problem i've got is that i have several nfs mounts on the same server, so the 1st mounted is named /Volumes/serverName, the 2nd is /Volumes/serverName-1, etc: order-dependent:-P
umount /Volumes/SERVER_NAME
I'm getting this problem too, anybody got any idea how to resolve? |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.27 seconds |
|