FileVault usage hints

Useful command line operations

Mounting FileVault image

hdiutil attach sparsebundle_file_path -stdinpass -owners on -mountpoint target_dir -nobrowse,
ex. hdiutil attach /Users/.warlock/warlock.sparsebundle -stdinpass -owners on -mountpoint /Users/warlock -nobrowse

see: Securely mount FileVault images without logging in

Detaching the image

hdiutil detach target_dir
ex. hdiutil detach /Users/warlock

Compacting FileVault image

hdiutil compact sparsebundle_file_path
ex. hdiutil compact /Users/.warlock/warlock.sparsebundle

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.