Tag Info

Hot answers tagged

26

All volumes, including DMGs, are mounted in /Volumes. You can get a list of mounted volumes by typing ls /Volumes in Terminal. You can navigate to a Disk Image using cd /Volumes/nameOfImage.


20

Well, MacFusion was going to be my answer but since you've tried that I'll recommend my second favourite app when it comes to mounting shares: Panic's Transmit. It's new, very awesome, feature lets you mount any share that it can connect to in the UI as a "disk" in your Finder that you can drag files to. SFTP, SSH, S3...very cool.


16

Yes. You'll need to create a file called "fstab" in /etc if it is not already there: sudo nano /etc/fstab Next, we'll need the partitions Unique Universal Identifier (UUID). Open Disk Utility, and highlight the partition you'd like to no have auto-mounted. Then hit CMD+I and you'll be greeted with the following screen (notice the UUID highlighted): We ...


13

The hdiutil command-line utility gives you more flexibility, and is extensively documented in man hdiutil. Something like this should do: hdiutil attach -mountpoint ~/myMountPoint mySparsebundle.dmg


12

You could easily achieve this using mount_smbfs (which is, actually, a wrapper for mount -t smbfs) : mount_smbfs //user@SERVER/folder ./mntpoint Optionally, add the workgroup : mount_smbfs -W workgroup //user@SERVER/folder ./mntpoint You could, of course, change the ./mntpoint (for something like /Volumes/smb). After doing this, simply go to ...


12

Much better to do this: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.UserNotificationCenter.plist Which will just stop the UserNotificationCenter service from running, leaving your system files intact! beware: as noted in the comments, this will disable all system notifications, including those when programs request access to system ...


11

Certainly not an elegant answer but, you can disable UserNotificationCenter.app found in /system/library/coreservices - replace it with another app or file with the same name. It will stop any warnings popping up (including that your drive is full) so watch out for that, but in my experience it does what you are looking for. I actually did this to my mac a ...


8

You should take a look at mount’s help: man mount Upon closer inspection you’ll see that the filesystem’s type is: mount -t smbfs //username:password@MACHINENAME/SHARENAME /SomeLocalFolderOfChoice Password (and theoretically username) are optional. The result of the above command will be no output (if all went ok), but a cd /SomeLocalFolderOfChoice, ...


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

OS X uses the Autofs stack to mount network file systems. Keith Winston has a good introduction to Autofs on OS X stating that: OS X uses an autofs code stack based on Sun's Solaris version of Unix. Many of the advanced features are not documented very well, and this can be an issue unless you are familiar with Solaris. I was not and had to do quite a ...


7

Use HomeBrew to install fuse4x and sshfs The commands to install are: brew install sshfs when you run it, it gives two other commands that I needed to run in order to install the fuse4x kernel extension. Run them. Then, to mount the ssh filesystem mkdir ~/mymountdir sshfs username@hostname:/home/thedir ~/mymountdir it will ask you for your password.


6

You should be able to use Disk Arbitrator to do most of what you want. Certainly requirement 1 is met and you should be able to achieve most of 2 with it too.


6

Transmit - The ultimate Mac OS X FTP + SFTP + S3 app can do this. Another choice would be ExpanDrive - SFTP/FTP/S3 Drive but I think Transmit is the better option (I own both and am affiliated with neither). There are demos of both programs available, so you can try both. Note that Transmit is sold both through the Mac App Store and directly the developer ...


6

You can use hdiutil to mount a disk image that is protected with a passphrase. hdiutil attach -agentpass /path/to/image.dmg That should attempt to mount the disk image, prompting you for the passphrase. If it's encrypted with a public key, you can pass that using option -pubkey.


6

Try with DAEMON Tools Lite for Mac, you can download here: http://www.daemon-tools.cc/products/dtMacLite This software has figured out how to trick the computer to thinking a DVD is mounted and I don't know if you can re-implement it via the command line tool vndevice you mentioned.


5

There certainly isn't the same amount necessary as the DMG, so you sure can mount a 100GB DMG into a file system that has less (there will be trivial consumptions, maybe a few kb, but nothting that you'll notice). The whole thing works in the way, that the system attaches a file-system driver to the file with the DMG. The driver will present the DMG file ...


5

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


5

It's read-only because it's formatted with NTFS (the Windows filesystem), which OS X can only read without the help of third party software. If reformatting isn't a problem, then that's likely the easiest way to go. If you need to transfer between OS X and Windows with the stick, use the FAT filesystem. If you're just using it with Macs, the defaults will ...


5

Instead of installing ext4fuse yourself, try using homebrew to install it. (This is the method recommended by the developer.) Read the developer's install page here. Incidentally, if you're from Linux you're probably used to using apt-get to install things. Homebrew describes itself as "The missing package manager for OS X", and makes it a lot easier to ...


5

You can add entries in /etc/fstab to prevent volumes from mounting. This is similar to the technique @cksum describes. Here are some example one-liners. They will create an fstab file if it doesn't exist, otherwise they will append. You need admin privileges. Prevent an HFS (Mac) volume named Archive from mounting. If it is mounted manually, it will be ...


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


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


4

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


4

No. Logging out dismounts the drives. USB changes will wake most macs from sleep assuring an uncontrolled unmount should users be logged in. The file systems should be clean and synced when entering sleep, but there is no guarantee of it. Firewire drives also could be corrupted in a similar fashion. With journaled filesystems you'll likely only lose a ...


4

I had the same problem, and after a search over the web, I found the following updated package of macfuse that worked for me: http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg


4

Use URL encoding to protect the wonky characters in the password. Essentially each character (or byte of UTF-8) can be encoded as a % followed by two hex digits specifying the encoded byte. In your example, \ -> %5C and @ -> %40: mount -t afp afp://adminname:aaaaa%5C%4011111@ServerIPAddress/ShareName /Volumes/TimeMachine This worked in my test.


3

TL;DR: If you see paths like /Volumes/Untitled* piling up, trying mounting and mounting external drives and see if that correlates with more entries appearing. I diagnosed the problem. It seems that fuse-ext2 v 0.0.7 was creating the /Volumes/Untitled* entries when the external SSD was mounted, and was not cleaning them up when the drive was dismounted. ...


3

Let's assume you are mounting/attaching your Data drive as usual which will result in paths like /Volumes/Data/ContentA and /Volumes/Data/ContentA. You can now do either of create symbolic links via Terminal by starting Terminal.app and running these commands ln -s /Volumes/Data/ContentA ~/ContentA ln -s /Volumes/Data/ContentB ~/ContentB open ...


3

Two good options, one paid, one free. Transmit Transmit is a long-standing and well-regarded Mac app that handles FTP, SFTP, S3 and WebDAV (possibly other protocols, I'm not sure). It can mount anything you can access as a local volume. $34, but it's the faster way, if you don't mind buying another app. FUSE and Macfusion Download and install FUSE for OS ...


3

I have used TrueCrypt 7.1a on Mas OS X 10.6.8 with OSXFUSE 2.3.8 with no problems. MacFuse is dead. TrueCrypt's official Mac installer 7.1a installs OSXFUSE as did 7.1. Not sure how you installed TrueCrypt but if not with the Mac installer, then uninstall what you have (including MacFuse) and install using the installer. Also make sure you have ...



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