Last active
March 11, 2016 10:46
-
-
Save clawfire/5556870 to your computer and use it in GitHub Desktop.
Mount some sparsebundle on a specific mount point
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hdiutil attach -mountpoint ~/myMountPoint mySparsebundleFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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