Tag Info

Hot answers tagged

8

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 ...


8

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.


7

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

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

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).


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

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 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

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 possiblt smb:// depending on your server type. tell application "Finder" try mount volume ...


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

The following Hint on Mac OS X Hints details a way to do this. Basically you'll create (or modify) the file /etc/fstab and add a line similar to: UUID=F0E430C1-5558-3BB3-9FA9-6904B663FEEA none hfs rw,noauto The actual UUID will vary, you can find the UUID for your disk in system.log: In Mac OS X Panther, Disk Utility and the diskutil command ...


2

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: ...


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

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 > ...


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 ...


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

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 ...


1

I finally got it working. I used the info at this site. The instructions are now included in brew installations. Basically use brew or macports to install ntfs-3g, fuse4x, and fuse4x-kext. If you have an icon in System Preferences for fuse or macfuse, remove those, you don't need them. Follow the instructions after you finish installing them. You can also ...


1

I'm not sure if this will help you. If all your looking to do is save the connection information, finder will solve that problem. http://support.apple.com/kb/TA22243 Just add it your list of favorite servers and it's point and click. The information appears to be outdated, but I'm sure the process is still similar. I just checked and there is another way to ...


1

You should add "intr" to your mount options. See the mount_nfs man page for details: man mount_nfs ... intr Make the mount interruptible, which implies that file system calls that are delayed due to an unresponsive server will fail with EINTR when a termination signal is posted for the process.


1

With reference to the linked question (the comment there from the opening poster here) … In brief: Unlocking the Core Storage LV, importing the ZFS pool and mounting the ZFS file system I know of no way to force Mountain Lion to use the Core Storage volume encryption key (VEK) in a way that will allow the ZFS pool and file system (based on the Core ...


1

You can use the Directory Editor that is part of Directory Utility (in /System/Library/CoreServices) to add a new automount record. I recommend using the existing record as a template for your new mounts. The image above references the Mounts container in the /Local/Default node. You would obviously want to choose the LDAP node that represents your Open ...


1

You can mount share via command line using mount_smbfs(8): # mount -t smbfs //user@server/sharename /path/to/share/directory This directory can't be unmounted from Finder directly and user have to unmount it explicitly: # umount /path/to/share/directory


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.


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

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

The launchd daemons and agents should be mounting these for you... com.apple.diskarbitrationd com.apple.diskmanagementd com.apple.DiskArbitrationAgent ... so unless you were editing these or your filesystem had the files go corrupt it might be faster to install Lion onto an external drive and test to see if a clean install remedies the issue. If so, ...



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