[BUG] Eject not working properly with APFS-formatted disk images [FIXED]
Posted: Tue Oct 02, 2018 9:48 am
When you mount a DMG volume that's HFS-formatted, if your boot volume is on disk0 & disk 1, you get disk2: If in Nimble Commander you hit CMD-E for eject, disk2 is "ejected", i.e. detached properly.
However, if you mount (attach) an APFS-formatted DMG volume, then you won't just get disk2, but disk2 & disk 3: If in Nimble Commander you hit CMD-E for eject, only disk3, the actual data volume, is ejected (detached), but not the separate disk2 containing the partition map etc. Therefore disk3 is not really ejected at all, but simply unmounted, and can be remounted again using hdiutil or Disk Utility.
This needs to be corrected in a future update. A file manager should properly eject (detach) disk image media, and not let unmounted volumes & their auxiliary devices hanging around until reboot.
"Eject" should be a true "detach", and not an unmount, i.e. it should remove all devices associated with a disk image volume.
Code: Select all
hdiutil attach /path/to/HFSimage.dmg
expected CRC32 $9BAB5CEB
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 Apple_HFS /Volumes/MountPoint
However, if you mount (attach) an APFS-formatted DMG volume, then you won't just get disk2, but disk2 & disk 3:
Code: Select all
hdiutil attach /path/to/APFSimage.dmg
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $95136301
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $9D351286
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $17EF87A9
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_APFS : 4)…
..........................................................................................................................................
disk image (Apple_APFS : 4): verified CRC32 $70DA5334
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $17EF87A9
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $E6C60F89
verified CRC32 $7F5845CF
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 Apple_APFS
/dev/disk3 EF57347C-0000-11AA-AA11-0030654
/dev/disk3s1 41504653-0000-11AA-AA11-0030654 /Volumes/MountPoint
This needs to be corrected in a future update. A file manager should properly eject (detach) disk image media, and not let unmounted volumes & their auxiliary devices hanging around until reboot.
"Eject" should be a true "detach", and not an unmount, i.e. it should remove all devices associated with a disk image volume.