Skip to content

Instantly share code, notes, and snippets.

@clawfire
Last active March 11, 2016 10:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clawfire/5556870 to your computer and use it in GitHub Desktop.
Save clawfire/5556870 to your computer and use it in GitHub Desktop.
Mount some sparsebundle on a specific mount point
hdiutil attach -mountpoint ~/myMountPoint mySparsebundleFile
mount
# Results
# /dev/disk3s2 on /Volumes/Copies de sauvegarde Time machine (hfs, local, nodev, nosuid, journaled)
# /dev/disk4s2 on /Volumes/devEnv (hfs, local, nodev, nosuid, noowners, mounted by ThibaultMilan)
diskutil info /dev/disk4s2 | grep UUID
# here we use /dev/disk4s2 because it's what the previous command return for our SparceBundle
# return something like :
# Volume UUID: 8B40B542-4156-3560-86B5-12E67D0A31F7
sudo vifs
# open vi editor to edit the fstab
# WARNING it's the only way to edit safely the fstab on OSX
#
# Paste something like :
# UUID=8B40B542-4156-3560-86B5-12E67D0A31F7 /Users/ThibaultMilan/Projects hfs rw 1 0
# replace the UUID with yours and the mount point by a Folder path that exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment