Attach the disk image (if you omit the 'nomount' flag it will do the mounting automatically, I'm stopping that for demonstration purposes)
root# hdiutil attach -nomount testing.dmg /dev/disk1 Apple_partition_scheme /dev/disk1s1 Apple_partition_map /dev/disk1s2 Apple_Driver_ATAPI /dev/disk1s3 Apple_HFSThe disk now exists:
dhcp-172-26-92-208:images root# diskutil list [...snip...] /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme *4.2 GB disk1 1: Apple_partition_map 30.7 KB disk1s1 2: Apple_Driver_ATAPI 2.0 KB disk1s2 3: Apple_HFS Mac OS X 4.2 GB disk1s3And you can mount all partitions like this:
diskutil mountDisk /dev/disk1or just one with:
diskutil mount /dev/disk1s3Since we didn't specify targets, they will appear under /Volumes.
No comments:
Post a Comment