Add boot tools

This commit is contained in:
Marcel Bischoff 2015-10-13 20:02:56 +02:00
parent c259ceeaa1
commit 432a697e8e

View File

@ -154,6 +154,11 @@ The only reliable way to do this is by sending an AppleScript command to Finder.
osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)' osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)'
``` ```
#### Make Volume OS X Bootable
```bash
bless --folder "/path/to/mounted/volume/System/Library/CoreServices" --bootinfo --bootefi
```
#### Mount Disk Image #### Mount Disk Image
```bash ```bash
hdiutil attach /path/to/diskimage.dmg hdiutil attach /path/to/diskimage.dmg
@ -170,6 +175,11 @@ You don't have to use the Disk Utility GUI for this.
sudo diskutil repairPermissions / sudo diskutil repairPermissions /
``` ```
### Set Boot Volume
```bash
bless --mount "/path/to/mounted/volume" --setBoot
```
#### Show All Attached Disks and Partitions #### Show All Attached Disks and Partitions
```bash ```bash
diskutil list diskutil list