Skip navigation
This discussion is archived

Sparse Bundle Image not shrinking when I take file out

3916 Views 1 Reply Latest reply: Nov 1, 2008 9:00 AM by V.K. RSS
random1destiny Level 1 Level 1 (0 points)
Currently Being Moderated
Nov 1, 2008 8:38 AM
Hey all,
I want to use encrypted disk images to keep some of my files safe. My understanding was that using a Sparse Bundle Image means that the image resizes itself to the contents of what's in it. It seems to expand when I put files in, but it does not contract when I remove files. I made an image, put a 1gb file in it, then deleted it (and emptied the trash can, too). When I checked the size of the disk image, it was still 1 gb. That is going on here? How do I get the image to size back down after taking files out?
Macbook, Mac OS X (10.5.5)
  • V.K. Level 9 Level 9 (56,120 points)
    that's normal behavior. sparse bundles don't shrink automatically when you take stuff out (it would be nice if they did though). you have to compact them. unmount the sparse bundle and run the following command in terminal

    hdiutil compact path/to/sparsebundle

    put the unix path to the sparse bundle in the above.

    P.S. filevault compacts the sparse bundle with user's home directory automatically when that user logs out.

    Message was edited by: V.K.
    Mac Pro 3.2 GHz, Mac OS X (10.5.5), Mac Pro 2.66GHz, powerbook G4 1.5GHz

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.