#1
|
|||
|
|||
[SD] Sparse Image 'size creep'
Hello all,
Here's my query... I back up my main HD (which at present is using ~ 18gb), I run SD using Smart Backup (this usually takes around 5 minutes), my final backup image weighs in at around 22.4gb. Why is there this size increase? It seems to happen every time (a size increase), even if not much has changed. Apologies if this is a silly question, I am just curious. |
#2
|
||||
|
||||
It's the way Apple manages free space inside a sparse image. They tend to expand the external size before they re-use internal space...
__________________
--Dave Nanian |
#3
|
|||
|
|||
Ahh, that makes sense. Thanks for the quick reply.
|
#4
|
|||
|
|||
True but you can also compact the image file.
hdiutil compact '/Volumes/<drive>/<path>/backup.sparseimage' Last edited by rdlsmith; 08-10-2007 at 01:53 AM. |
#5
|
|||
|
|||
Quote:
"hdiutil: compact failed - Device not configured" Are we sure this is supposed to work, and (separate question) if so, could/should this be default behavior when doing a Smart Update? |
#6
|
||||
|
||||
Yes, this definitely works. It sounds like you didn't point at the (unmounted) file.
While it could be the default behavior, I don't think it should be. It's quite slow and isn't generally necessary...
__________________
--Dave Nanian |
#7
|
|||
|
|||
It was indeed unmounted. I have six of them, Sunday through Friday -- Saturday gets the Mirror. The Smart Updated images are backups of my home folder, which is about 3.5 gig. The images now range from 9 to 12 gig, so I'm looking for a nice way to size them back down. This is what I get:
Code:
>hdiutil compact Tuesday.sparseimage hdiutil: compact failed - Device not configured |
#8
|
||||
|
||||
I honestly have no idea what would cause that. It indicates that something -- likely in the track to the image -- is failing. But the message is Apple's, and it's obscure enough that I'm not sure what it's referring to.
Is there more detail in the system.log?
__________________
--Dave Nanian |
#9
|
|||
|
|||
Nothing shows up in /var/system.log.
I did finally find this: http://www.macosxhints.com/article.p...41207153823222 (via shirt-pocket.com forums here, incidentally: http://www.shirt-pocket.com/forums/a...php/t-577.html) For whatever reason, using the AppleScript actually does perform the compaction. But running that same hdiutil command in bash doesn't. I just don't understand that. Also, I get this message in system.log: Code:
diskimages-helper[7433]: compaction returned error 0\n |
#10
|
||||
|
||||
I don't understand that either. Weird.
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ever-Growing Sparse Image File... | Marco_Polo | General | 6 | 02-19-2007 10:21 AM |
Testing a sparse image... | macmidiguy | General | 5 | 05-14-2006 01:51 PM |
Sparse Image Size | ElNormo | General | 1 | 05-03-2006 07:17 PM |
Disk Image size a lot bigger than the backup size | SpaceRoger | General | 3 | 03-15-2006 03:05 PM |
Sparse image from aborted DMG backup? | Winston | General | 9 | 10-22-2005 12:28 PM |