Skip to content

Instantly share code, notes, and snippets.

@rightson
Created June 12, 2016 07:11
Show Gist options
  • Save rightson/1082f7a1850fcd83e3fa82d6eac66860 to your computer and use it in GitHub Desktop.
Save rightson/1082f7a1850fcd83e3fa82d6eac66860 to your computer and use it in GitHub Desktop.
#!/bin/bash
ImageName=CrossToolNG
ImageNameExt=${ImageName}.sparseimage
#diskutil umount force /Volumes/${ImageName}
#rm -f ${ImageNameExt}
hdiutil create ${ImageName} -volname ${ImageName} -type SPARSE -size 8g -fs HFSX
hdiutil mount ${ImageNameExt}
cd /Volumes/$ImageName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment