Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pass=$(openssl rand -base64 256)
- echo -n "$pass" | hdiutil create -encryption -stdinpass -type SPARSEBUNDLE -size 10g -fs HFS+ /path/to/image/image_name
- echo -n "$pass" | hdiutil attach -nobrowse /path/to/image/image_name.sparsebundle -stdinpass -mountpoint /path/to/mountpoint
Add Comment
Please, Sign In to add comment