Skip to content

Instantly share code, notes, and snippets.

@andyfowler
Created June 16, 2010 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyfowler/441010 to your computer and use it in GitHub Desktop.
Save andyfowler/441010 to your computer and use it in GitHub Desktop.
# import a directory into a case-sensitive DMG
dir="/Users/afowler/src/stuff"
hdiutil create -srcfolder "${dir}" -autostretch -fs JHFS+X temp.dmg
hdiutil attach -mountpoint "${dir}-caseSensitive" temp.dmg
# JHFS+X == journalled, case-sensitive.
# DMG is initially the directory size, but can grow as needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment