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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-05-2005, 05:13 AM
SpinUp SpinUp is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Shrinking Sparse Images

I use a sparse image to back up and recently noticed that the file size has been growing far beyond the size of the data on the disk image. The sparse image had max size of 7 GB and contained only 4.95 GB of data, but the file size was 6.45 GB!

That seemed unreasonable, so I decided to look into shrinking it. Reading from here,

http://www.hmug.org/man/1/hdiutil.html

I found the hdiutil command "compact", which can be used in the terminal as follows:

Code:
hdiutil compact imagename.sparseimage
This removes the parts of the image file that aren't being used in the volume. The process ran for a couple of minutes, and the file size of the sparse image was subsequently reduced to a more reasonable 5.3 GB. Note that the above link is just the man page for hdiutil in Panther, and has this to say on the subject of reliability:

Quote:
As of OS X 10.3, partially-updated SPARSE images are now properly handled such that they can be safely used for persistent storage. SPARSE images are not recommended for persistent storage on earlier versions of the operating system.
I was using sparse images for backup in Jaguar, when perhaps I shouldn't have been...
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
How do I update an image? dnanian Frequently Asked Questions 0 06-12-2004 11:05 AM


All times are GMT -4. The time now is 08:09 AM.


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