Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-02-2007, 06:16 PM
mr.hood mr.hood is offline
Registered User
 
Join Date: Aug 2007
Posts: 2
[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.
Reply With Quote
  #2  
Old 08-02-2007, 06:35 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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
Reply With Quote
  #3  
Old 08-02-2007, 06:49 PM
mr.hood mr.hood is offline
Registered User
 
Join Date: Aug 2007
Posts: 2
Quote:
Originally Posted by dnanian View Post
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...
Ahh, that makes sense. Thanks for the quick reply.
Reply With Quote
  #4  
Old 08-10-2007, 01:49 AM
rdlsmith rdlsmith is offline
Registered User
 
Join Date: Jun 2006
Posts: 47
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.
Reply With Quote
  #5  
Old 08-22-2007, 04:12 AM
jjj jjj is offline
Registered User
 
Join Date: Oct 2006
Posts: 12
Quote:
Originally Posted by rdlsmith View Post
True but you can also compact the image file.

hdiutil compact '/Volumes/<drive>/<path>/backup.sparseimage'
I found the same suggestion elsewhere online, but this is failing for me:
"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?
Reply With Quote
  #6  
Old 08-22-2007, 08:49 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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
Reply With Quote
  #7  
Old 08-22-2007, 08:39 PM
jjj jjj is offline
Registered User
 
Join Date: Oct 2006
Posts: 12
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
Nothing's mounted but the drive the images are on.
Reply With Quote
  #8  
Old 08-22-2007, 08:56 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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
Reply With Quote
  #9  
Old 08-23-2007, 12:50 AM
jjj jjj is offline
Registered User
 
Join Date: Oct 2006
Posts: 12
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
That's a literal "\n" at the end of the line. I'm hoping I can interpret that as error code zero, meaning no error.
Reply With Quote
  #10  
Old 08-23-2007, 09:21 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
I don't understand that either. Weird.
__________________
--Dave Nanian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.