Add examples for creating encrypted disk images as well
This commit is contained in:
parent
0f3f44f913
commit
7e3485af36
10
README.md
10
README.md
@ -303,6 +303,16 @@ sudo fs_usage
|
||||
hdiutil create -volname "Volume Name" -srcfolder /path/to/Folder -ov diskimage.dmg
|
||||
```
|
||||
|
||||
If you'd like to encrypt the dmg, do:
|
||||
```bash
|
||||
hdiutil create -encryption -stdinpass -volname "Volume Name" -srcfolder /path/to/Folder -ov encrypted.dmg
|
||||
```
|
||||
|
||||
By default, you'll be prompted for a password, but you can automate that as well by piping in a password:
|
||||
```bash
|
||||
echo -n YourPassword | hdiutil create -encryption -stdinpass -volname "Volume Name" -srcfolder /path/to/Folder -ov encrypted.dmg
|
||||
```
|
||||
|
||||
#### Burn Disk Images to DVD
|
||||
This command applies to .iso, .img and .dmg images.
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user