Tag Info

Hot answers tagged

9

OS X uses diskarbitrationd which discovers new storage devices and probes them for mountable filesystems. The Disk Arbitration framework handles notifying applications of disk mount/unmount events, and allows them to influence whether a volume is mounted or not. Consult the man page for diskarbitrationd for very limited further information; for example, ...


8

I build automator workflows like this all the time. You only need two actions, and they're both Files & Folders actions. 1) Get Specified Servers. This will let you build a list of shares to connect to. If you can map it from Finder -> Go -> Connect to server, you can use this. 2) Connect to Servers. This will connect to any servers passed to it ...


7

You may want to consider using the NFS Manager application to help you locate and disable the NFS automount. You should refer to this section of the manual for assistance. The mount name /CIFS and the lack of NFS information indicates you may be running Sharity. Check if it's installed, using Spotlight. If it is, you can find the documentation here.


6

NFS mounts should show up in Disk Utility. Open Disk Utility.app (In /Applications/Utilities/) and under the File menu select NFS Mounts. Select the URL of the drive that keeps showing up and click the minus button on the lower left corner of the screen to remove it.


5

The likely most robust solution is to create a launchd job with the StartOnMount property set to -boolean YES: StartOnMount <boolean> This optional key causes the job to be started every time a filesystem is mounted. This is how Time Machine does it (see /System/Library/LaunchDaemons/com.apple.backupd-attach.plist).


5

I use the following applescript to mount directories in conjunction with MarcoPolo so network shares are automatically mounted when I get to both my office and home. You'll need to change USERNAME, PASSWORD, SERVER/SHARENAME and possibly smb:// depending on your server type. tell application "Finder" try mount volume ...


4

I found this script from http://hints.macworld.com/article.php?story=20050215082247458, but I'll reproduce it below. Open up Script Editor and paste in: set sfiles to "afp://user:pass@host/volume" tell application "Finder" mount volume sfiles end tell Replace sfiles with the appropriate details of your AFP volume. Add ...


4

TL;DR Use AppleScript, but do not specify the user name or password. Background In my case, none of the suggestions that I found online worked perfectly. I had several AFP volumes that I wanted to mount automatically. Following the advice given here and elsewhere, the obvious solution seemed to be an AppleScript file with something along these lines: ...


4

I had the same problem with CIFS-mount, x-browser… That happened because I tried Sharity 3 and 'deleted' it by putting the icon in the trash, like Mac users usually do. :) But the program was still installed and put the CIFS icon on the Desktop every day. I solved it using the following Terminal command: sudo /Library/StartupItems/Sharity3/uninstall


4

I have spent quite a bit of time figuring out automounts of NFS shares in OS X... Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible: /etc/auto_master (see last line): # # Automounter master map # +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid /home ...


4

Mounting the sparsebundle can be accomplished via command line using the 'hdiutil' command. You can also create a shell script that will perform this action. This script assumes that the image is located at /Users/somebody/Image.sparsebundle, and that the passphrase used to encrypt the image is "testpass"): #!/bin/bash # # This script mounts the disk image ...


3

I think I can get you started, but using terminal commands, which you said you'd prefer to avoid. Apologies, but it might give you a starting point. All of the following you could put in a bash script and run as a login item. You'll need to first share out the target drive(s) (MyBook in the examples below) using file sharing (System Preferences > Sharing > ...


3

I ran across this today which is one way to do it. In summary for Mountain Lion: Edit the file /etc/auto_master Within add /- auto_smb Create /etc/auto_smb Within add /Volumes/mount_point -fstype=smbfs,soft ://user:pass@smbserver/share The author goes onto mention a second method using the vifs command, but I've never tried that one and it seems to do ...


3

1. Edit the file /Applications/Tunnelblick.app/Contents/Resources/client.up.osx.sh and add these commands at the end of the file, just before exit 0 : su USERNAME -c ' mkdir /Volumes/TimeCapsule mount_afp afp://afp_username@server/volumename /Volumes/TimeCapsule ' open /Volumes/TimeCapsule Replace USERNAME with your username on the system. 2. Then add ...


3

You don't mention under which context you are mounting the disk, but what about going the other way and mounting the disk with the Applescript? I mention context because when mounting a disk with Applescript is the big caveat that if it is a network volume, and the network is password-protected, then the user name and password would have to be stored as ...


2

Stuffit Expander (Select StuffIt Expander Only if you want to download it from that site, dont get any adware crap) can open bin files, and from what I remember cue files are just information maps about bin files. I forget if you can view them as Volumes, but that seems like a secondary concern, converting them is a lengthy process if you have more than a ...


2

save this as ~/Library/LaunchAgents/cifs.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>localhost.CIFS</string> ...


2

Boot script The best thing I can come up with, is a script that will run at boot, and will check whether each Apple_HFS TYPE of volume (disk*s*) is mounted. When the volume isn't mounted, try to repair and mount the volume. Script commands explained List local HFS volumes The diskutil list command is used to retrieve all local volumes that contain an ...


2

Check your start up items in system preferences. It might be in there which would be why it keeps auto mounting.


2

OK, what follows is an adapted version of a shell script that I have running on my local Macs to auto mount certain AFP volumes when I'm at home. You'll need to adjust the mount_nfs line, enter the MAC address for your home router, and adjust the volume name for the mount (if you want). I have this script triggered to run every 5 minutes via a launchd file ...


1

Perhaps the 'hidefromfinder' option in your auto_master setup file has something to do with it? /net -hosts -nobrowse,**hidefromfinder**,nosuid /home auto_home -nobrowse,**hidefromfinder** From the auto_master(5) man page: The hidefromfinder option is used on maps that shouldn't show up as folders in the Finder; it ...


1

If you try default /etc/auto_master file, you can see line /net -hosts -nobrowse,hidefromfinder,nosuid Then you can cd /net/host/exported/path and found that mac tries to mount this exported path.


1

I have using Homebrew and its sshfs bundle to mount SSH filesystems on my Mavericks Mac for a while now, it has been solid. So if you run Homebrew go ahead and try the following to install sshfs: brew install sshfs. Then maybe reboot (?) and once you're back sshfs <username>@<hostname/IP>:<remote-path> <local-path>. You will get a ...


1

You could also add the alias as a Login item: go to System Preferences > Users & Groups, and click on Login Items. You can then drag a mounted network drive, or a drive alias, into the Login Items list.


1

I've had to do this as well, and I have an Applescript I wrote and cobbled together from working sources to request the user's password and then use mount_smbfs to mount to a specific location (with folders already set up). This prevents stale passwords from quickly locking out the account, and also prevents passwords in the script body. I do hard-code the ...


1

OK, I figured it out. The keys in the auto_afp file are paths that are relative to the path specified in the top-level auto_master file. So if your /etc/auto_master has: my/global/mount auto_afp Then your /etc/auto_afp should have: point -fstype=.... Finally to get visibility into what automountd is doing, add AUTOMOUNTD_TRACE=2 to /etc/autofs.conf, ...


1

Q1: any ideas why the drive not showing up … (sometimes it does, other times it didn't)? If the file system is dirty at time of connection of the disk, then the operating system will run fsck_hfs until (hopefully) repairs seem to succeed. During this period the volume will be not mounted, and the OS presents no alert. (An alert appears only if, for ...


1

As has been touched on, this seems to be related to Mountain Lion setting itself up for encryption or a restore partition. I found that by selecting the partition table type in Disk Utility to MBR (yuck) instead of GPT or Apple's, this behavior is avoided and one gets the extra ~200MB usable space.


1

Have you checked your User Preferences to be sure these items are not checked in the "Mount at login" box? If they are, it's a simple matter of deleting them from the list once you have authenticated to unlock the settings.


1

You could open a terminal window and change to the network path so that the file system is marked as in use. You could also open a file or application on the drive. The users might still choose to force eject, so it's not a proper ban on ejecting the volume, but it adds another roadblock.



Only top voted, non community-wiki answers of a minimum length are eligible