Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Compact sparse disk images via the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Compact sparse disk images via the command line
Authored by: batspray on Jun 13, '06 07:07:57AM

Hi,

I was looking for this tip, but I'm not sure I could make it work.

I followed the procedure and used the command line as described, but my .sparseimage file has not shrinked a bit!! It is still 95 GB on disk. However, when I mount it, the Finder reports that the disk is 145 GB in size, with about 13 GB free. I suspect that the .sparseimage is in compressed format: I used Intego's PersonalBackup to create it, and I can't remember if I used the compress option (it may also be mandatory, I don't recall).

Does this mean that one can't compact a .sparseimage file when it is in compressed form? If so, is there an alternate way of reclaiming the free space. I could very well make use of these free 13 GB since I'm currently editing a three-tracks DV video, of 1hr15 each!! Without duplicating the 95 GB file, of course (since I don't have enough space to do so).

Thanks in advance,
batspray



[ Reply to This | # ]
Compact sparse disk images via the command line
Authored by: JYF on Mar 16, '07 01:35:42PM
Try this command in Terminal :

hdiutil resize -sectors min /SomePathToYourImage/YourImage.sparseimage

It worked for me. Practice on a backup image though.

[ Reply to This | # ]