Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #128242
| Subject | Re: Where is a DMG unpacked to. |
|---|---|
| Newsgroups | comp.sys.mac.system |
| References | <Ibmdnb_wwokS3WPAnZ2dnUU7-YPNnZ2d@giganews.com> |
| From | JF Mezei <jfmezei.spamnot@vaxination.ca> |
| Message-ID | <PdvLF.16723$%d1.9355@fx45.iad> (permalink) |
| Date | 2019-12-21 15:26 -0500 |
On 2019-12-21 10:55, Alan Browne wrote: > When I decrypt it a volume appears in finder. The docs are there and I > can move them to wherever needed. > > But I'm curious: When the volume is created from the DMG, "Where" is > the volume? On the same disk that I opened it on? In VM? From the "Man hdiutil" at command line: > BACKGROUND > Disk images are data containers that emulate disks. Like disks, they can > be partitioned and formatted. Many common uses of disk images blur the > distinction between the disk image container and its content, but this > distinction is critical to understanding how disk images work. The terms > "attach" and "detach" are used to distinguish the way disk images are > connected to and disconnected from a system. "Mount" and "unmount" are > the parallel filesystems options. > > For example, when you double-click a disk image in the macOS Finder, two > separate things happen. First, the image is "attached" to the system > just like an external drive. Then, the kernel and Disk Arbitration probe > the new device for recognized file structures. If any are discovered > that should be mounted, the associated volumes will mount and appear on > the desktop. So basically, a device like a hard drive is created in /dev and a special driver (the .dmg driver) attached to that device. That lets it access the blocks within. the .dmg. Then, more or less normal file system drivers are used to mount the volume that is on that device (for instance an HFS+ volume). By default, it is mounted in /Volumes as a mount point, but will appear as a disk device in Finder so you can access it from there. ENcryption is a file syste level thing, so it is the "volume" drivers that encrypt and decrypt the data on the fly as the application tries to access files on that disk. Just as it woudl happen on a spinning disk. The big difference is that instead of a driver that sends commands to a spinning disk to fetch block 3273, the driver has the .dmg file open and will read block 3273 from the file.
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Where is a DMG unpacked to. Alan Browne <bitbucket@blackhole.com> - 2019-12-21 10:55 -0500
Re: Where is a DMG unpacked to. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-21 16:42 +0000
Re: Where is a DMG unpacked to. Alan Browne <bitbucket@blackhole.com> - 2019-12-21 13:11 -0500
Re: Where is a DMG unpacked to. Alan Baker <nunya@ness.biz> - 2019-12-21 10:14 -0800
Re: Where is a DMG unpacked to. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-21 15:26 -0500
Re: Where is a DMG unpacked to. Alan Browne <bitbucket@blackhole.com> - 2019-12-21 15:38 -0500
csiph-web