Sparse disk image error 'No space left on device' while limit not reached

Joined
Jul 13, 2024
Messages
2
Reaction score
0
I created a sparse disk image of 400 GB with hdiutil (terminal) on a 500 GB external drive.
After I have attached the disk image, I copy data to it. After about 17 GB of data I get an error 'No space left on device'. Why is it that I cannot fully utilize the 400 GB and is it raising this error?

Code:
hdiutil create -size 400g -type SPARSE -fs APFS -volname test /Volumes/data/test.dmg
hdiutil attach /Volumes/data/test.dmg


Any help much appreciated!
 
Last edited:
Joined
May 7, 2023
Messages
648
Reaction score
90
I find it easier using Disk Utility to create disk images.

A few questions...
1. On your 500GB external drive how much free space is there?
2. When you do a Get Info on the test.dmg what is t he file size.
3. When you mount the disk image, and do a get info. How much free space is shown?
 
Joined
Jul 13, 2024
Messages
2
Reaction score
0
Please find screenshots attached
 

Attachments

  • Screenshot 2024-07-13 at 21.05.44.png
    Screenshot 2024-07-13 at 21.05.44.png
    159.8 KB · Views: 13
  • Screenshot 2024-07-13 at 21.03.01.png
    Screenshot 2024-07-13 at 21.03.01.png
    112.2 KB · Views: 9
  • Screenshot 2024-07-13 at 21.15.27.png
    Screenshot 2024-07-13 at 21.15.27.png
    69.6 KB · Views: 9
  • Screenshot 2024-07-13 at 21.20.33.png
    Screenshot 2024-07-13 at 21.20.33.png
    160 KB · Views: 8

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top