LinusU / node-appdmg

💾 Generate your app dmgs
MIT License
1.7k stars 152 forks source link

Disk space is full #211

Open piratx opened 2 years ago

piratx commented 2 years ago

Error: Command failed: hdiutil create /var/folders/44/8gxpftp17cx234gp4qvb3jj80000gn/T/DAKTT28.dmg -ov -fs HFS+ -size 91209.5m -volname TWW2 hdiutil: create failed - No space left on device

I am always getting the above message on M1 with Monterey, please help! :)

LinusU commented 2 years ago

Is your disk full? How much free space do you have, and how large of a DMG file are you creating?

piratx commented 2 years ago

Disk isnt full. I have 200-250gb free and I am creating a dmg with a 45GB file on it.

LinusU commented 2 years ago

Intersting! I know see that there is a decimal in the command, maybe that is causing problems 🤔

Could you verify that running this command results in the same error:

$ hdiutil create /tmp/test.dmg -ov -fs HFS+ -size 91209.5m -volname TWW2

And could you then test if this works:

$ hdiutil create /tmp/test.dmg -ov -fs HFS+ -size 91210m -volname TWW2
piratx commented 2 years ago

Neither of those give me error :/

hdiutil create /tmp/test.dmg -ov -fs HFS+ -size 91209.5m -volname TWW2 at  08:16:01 PM created: /tmp/test.dmg

hdiutil create /tmp/test.dmg -ov -fs HFS+ -size 91210m -volname TWW2 took  23s at  08:21:52 PM created: /tmp/test.dmg

cstruct commented 2 years ago

That's weird! If you run appdmg again and get the error, copy the command after Error: Command failed: exactly as is and try to run it yourself (Make sure the folder structure is created) do you get an error? What does mount say? I'm wondering if /var/folders is on another partition.