Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #128229 > unrolled thread

Where is a DMG unpacked to.

Started byAlan Browne <bitbucket@blackhole.com>
First post2019-12-21 10:55 -0500
Last post2019-12-21 15:38 -0500
Articles 6 — 4 participants

Back to article view | Back to comp.sys.mac.system


Contents

  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

#128229 — Where is a DMG unpacked to.

FromAlan Browne <bitbucket@blackhole.com>
Date2019-12-21 10:55 -0500
SubjectWhere is a DMG unpacked to.
Message-ID<Ibmdnb_wwokS3WPAnZ2dnUU7-YPNnZ2d@giganews.com>
Sorry for the odd grammar.

I received some documents in a dmg container via Dropbox with the 
password sent separately.

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?

When I eject the volume, I assume the files are erased and no longer 
take up disk space?

Thx.

[toc] | [next] | [standalone]


#128231

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2019-12-21 16:42 +0000
Message-ID<slrnqvsir8.69u.g.kreme@ProMini.lan>
In reply to#128229
In message <Ibmdnb_wwokS3WPAnZ2dnUU7-YPNnZ2d@giganews.com> Alan Browne <bitbucket@blackhole.com> wrote:

> I received some documents in a dmg container via Dropbox with the 
> password sent separately.

> 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?

The DMG is a type of disk image. When you open it, it mounts as a disk.
It is not created any other place than the file itself and the mounted
version of the file.

> When I eject the volume, I assume the files are erased and no longer 
> take up disk space?

No. The files are still in the DMG file, where they were before you
opened the DMG, while the DMG was mounted, and now after you have
ejected it.


-- 
I WILL NOT FAKE RABIES Bart chalkboard Ep. 8F07

[toc] | [prev] | [next] | [standalone]


#128233

FromAlan Browne <bitbucket@blackhole.com>
Date2019-12-21 13:11 -0500
Message-ID<BOCdnc4xeonV_WPAnZ2dnUU7-KvNnZ2d@giganews.com>
In reply to#128231
On 2019-12-21 11:42, Lewis wrote:
> In message <Ibmdnb_wwokS3WPAnZ2dnUU7-YPNnZ2d@giganews.com> Alan Browne <bitbucket@blackhole.com> wrote:
> 
>> I received some documents in a dmg container via Dropbox with the
>> password sent separately.
> 
>> 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?
> 
> The DMG is a type of disk image. When you open it, it mounts as a disk.
> It is not created any other place than the file itself and the mounted
> version of the file.

The DMG is encrypted - takes several seconds to open -  but ejects 
instantly w/o re-encrypting (that I can see).  So it seems like the DMG 
is decrypted to un-encrypted files somewhere or files are decrypted for 
use as needed from the volume.

>> When I eject the volume, I assume the files are erased and no longer
>> take up disk space?
> 
> No. The files are still in the DMG file, where they were before you
> opened the DMG, while the DMG was mounted, and now after you have
> ejected it.

I worded that badly.  Of course the DMG is intact.  That was on the 
presumption that the files were decrypted to somewhere.

[toc] | [prev] | [next] | [standalone]


#128234

FromAlan Baker <nunya@ness.biz>
Date2019-12-21 10:14 -0800
Message-ID<qtlnd8$1bp2$1@gioia.aioe.org>
In reply to#128233
On 2019-12-21 10:11 a.m., Alan Browne wrote:
> On 2019-12-21 11:42, Lewis wrote:
>> In message <Ibmdnb_wwokS3WPAnZ2dnUU7-YPNnZ2d@giganews.com> Alan Browne 
>> <bitbucket@blackhole.com> wrote:
>>
>>> I received some documents in a dmg container via Dropbox with the
>>> password sent separately.
>>
>>> 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?
>>
>> The DMG is a type of disk image. When you open it, it mounts as a disk.
>> It is not created any other place than the file itself and the mounted
>> version of the file.
> 
> The DMG is encrypted - takes several seconds to open -  but ejects 
> instantly w/o re-encrypting (that I can see).  So it seems like the DMG 
> is decrypted to un-encrypted files somewhere or files are decrypted for 
> use as needed from the volume.

Your understanding of the process is flawed.

Why do you imagine it cannot be decrypting files on the fly?

[toc] | [prev] | [next] | [standalone]


#128242

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2019-12-21 15:26 -0500
Message-ID<PdvLF.16723$%d1.9355@fx45.iad>
In reply to#128229
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.

[toc] | [prev] | [next] | [standalone]


#128244

FromAlan Browne <bitbucket@blackhole.com>
Date2019-12-21 15:38 -0500
Message-ID<BqCdncQZCdNVH2PAnZ2dnUU7-W_NnZ2d@giganews.com>
In reply to#128242
On 2019-12-21 15:26, JF Mezei wrote:
> 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.

Good explanation.  Thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.mac.system


csiph-web