Guest User

Untitled

a guest
Oct 15th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. pass=$(openssl rand -base64 256)
  2. echo -n "$pass" | hdiutil create -encryption -stdinpass -type SPARSEBUNDLE -size 10g -fs HFS+ /path/to/image/image_name
  3. 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