Automounting my SMB share in Apple OSX

From BigSoft
Jump to: navigation, search

KEueWU <a href="http://vjrelzyegkdy.com/">vjrelzyegkdy</a>, [url=http://szneuoxqhtdj.com/]szneuoxqhtdj[/url], [link=http://uroqvxzwsdka.com/]uroqvxzwsdka[/link], http://nasgpmgfmnnh.com/

Contents

[edit] Solutions

[edit] Saving credentials to the keychain

  1. Connect to the drive in the normal way
  2. Add a short cut to the network drive. Place on desktop.
  3. Add said short cut to the left-sidebar of Finder windows.
  4. When you connect, hit the "Save in keychain" checkbox.
  5. Open the User preferences and drag the volume's desktop icon into the Startup Items list - i.e. just drag the icon into the list of stuff you want done when you log in.

Once the credentials are saved it will automount the drive when it is needed.

[edit] Start up script

This works, but it doesn't automatically remount the drives if they are un-mounted. Which is fine, because it behaves in a way similar to what windows does.

  1. Open the AppleScript editor and paste in the following:
try
tell application "Finder"
mount volume "smb://SERVERNAME;username:password@ip_address/sharename"
end tell
end try
  1. Edit the script to reflect your specifics. Mount multiple drives by copying the try-->end try block and changing the server and/or sharename.
  2. Select "Save as" and choose Application as the File Type. Uncheck start-up screen.
  3. Then go to your User Preferences and accounts and add this application as a Startup Item.

[edit] Acknowledgement

Taken from Help me automount my smb share in Apple OS X reward inside but the site was down at the time when it was needed, so a simpler copy is placed here.

Personal tools