I have an external 4 TB HDD that I have formatted APFS encrypted. The password is on my keychain so it is easy to mount but if someone else tries to mount it on their system they will need to enter the password. That volume runs as expected, no issues.
On that HDD, I have created a sparsebundle formatted as HFS+ encrypted with 4 TB max size. This time the password is not on my keychain so the password needs to be entered every time it is mounted. (The reason for me choosing HFS+ instead of APFS is a long one and I can go into that if needed)
My problem is that after I mount the sparsebundle as a disk image volume, the free space on it is being reported incorrectly as being far smaller than actual, so I cannot use it.
Terminal command, ‘diskutil info’ on the mounted disk image volume shows
Volume Total Space: 4.0 TB (3999656042496 Bytes) (exactly 7811828208 512-Byte-Units)
Volume Used Space: 4.0 TB (3985103577088 Bytes) (exactly 7783405424 512-Byte-Units) (99.6%)
Volume Free Space: 14.6 GB (14552465408 Bytes) (exactly 28422784 512-Byte-Units) (0.4%)
Terminal command ‘du’ on the volume says that the drive is 346G.
Thanks…
On that HDD, I have created a sparsebundle formatted as HFS+ encrypted with 4 TB max size. This time the password is not on my keychain so the password needs to be entered every time it is mounted. (The reason for me choosing HFS+ instead of APFS is a long one and I can go into that if needed)
My problem is that after I mount the sparsebundle as a disk image volume, the free space on it is being reported incorrectly as being far smaller than actual, so I cannot use it.
- ‘Finder’ -> ‘Get Info’ on the sparsebundle itself shows Size: 376 GB — correct
- ‘Finder’ -> ‘Get Info’ on the disk image, after mounting it from the sparsebundle, shows Capacity: 4 TB and Used: 3.98 TB — incorrect
Terminal command, ‘diskutil info’ on the mounted disk image volume shows
Volume Total Space: 4.0 TB (3999656042496 Bytes) (exactly 7811828208 512-Byte-Units)
Volume Used Space: 4.0 TB (3985103577088 Bytes) (exactly 7783405424 512-Byte-Units) (99.6%)
Volume Free Space: 14.6 GB (14552465408 Bytes) (exactly 28422784 512-Byte-Units) (0.4%)
Terminal command ‘du’ on the volume says that the drive is 346G.
- I have run Disk Utility First Aid on the volume and it runs without error.
- I have stopped and started SpotLight on the volume to clear out any indexing errors that may have been there but no change to the free space reported.
- I have run ‘hdiutil compact’ on the sparsebundle but only a very small amount of free space was recovered.
Thanks…