OS X / macOS disk image stuff

List disks:

hdiutil list

Partition Disk Blank

diskutil partitionDisk /dev/disk5 1 'Free Space' 'unused' '100%' 

Scan Disk Image for Restore:

sudo asr imagescan --source {disk image}.dmg

Restore Disk Image:

sudo asr restore --source {disk image}.dmg --target /Volumes/{volume name} --noprompt --noverify --erase
osx_diskutil.txt · Last modified: 2021/10/16 03:16 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0