Go Back   MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 20, 2009, 11:59 AM   #1
maclook
macrumors 65816
 
Join Date: Nov 2008
How do I reduce the size of my Time Machine's Sparse Disk Image Bundle?

I've deleted 6 backups already and am left with three but the size of the file hasn't changed at all. I don't want to delete the whole thing and start over.

The file size now is 330gb which is ridiculous to me that it hasn't changed one bit since i deleted 6 backups.
maclook is offline   0 Reply With Quote
Old Sep 20, 2009, 12:01 PM   #2
dragonmantek
macrumors regular
 
Join Date: Oct 2007
Location: New York
Send a message via AIM to dragonmantek
format the drive, if you don't have any big files to backup, and then reset the time machine settings to whatever you want, and re-do the whole thing.
__________________
MacBook Pro 13" - 128 GB, 4 GB, 320M
iPhone 5 -32GB - Corrupt
dragonmantek is offline   0 Reply With Quote
Old Sep 20, 2009, 12:43 PM   #3
maclook
Thread Starter
macrumors 65816
 
Join Date: Nov 2008
so are you telling me to pretty much erase everything and start over? i dont want to do that. the drive is a time capsule and i have files other than the disk image on there that i want to keep.

i have a 120gb drive on my macbook. if i delete every backup but one and the sparse bundle is still 330gb will that make absolutely no sense? i'm deleting backups using the gear in finder when in time machine which i think is the correct way
maclook is offline   0 Reply With Quote
Old Sep 20, 2009, 01:03 PM   #4
msevild
macrumors regular
 
Join Date: Oct 2007
Location: Schaumburg
Well now is the time to think about what could be taking up that space in the sparse bundle. DO you use any software that uses a database or stores everything in a single file. Examples of this are Microsoft Entourage, FileMaker documents, Parallels or VMWare Fusion virtual machines?
msevild is offline   0 Reply With Quote
Old Sep 20, 2009, 02:39 PM   #5
weckart
macrumors 68020
 
Join Date: Nov 2004
No need to reformat.

hdiutil compact /path/to/xxxxx.sparseimage

should do the trick.
weckart is online now   0 Reply With Quote
Old Sep 20, 2009, 03:58 PM   #6
maclook
Thread Starter
macrumors 65816
 
Join Date: Nov 2008
Quote:
Originally Posted by weckart View Post
No need to reformat.

hdiutil compact /path/to/xxxxx.sparseimage

should do the trick.
is that a terminal command?
maclook is offline   0 Reply With Quote
Old Sep 20, 2009, 06:00 PM   #7
weckart
macrumors 68020
 
Join Date: Nov 2004
Well, it's not a GUI, so doesn't leave much else.
weckart is online now   0 Reply With Quote
Old Dec 9, 2009, 11:45 AM   #8
uberfu
macrumors newbie
 
Join Date: Dec 2009
Quote:
Originally Posted by msevild View Post
Well now is the time to think about what could be taking up that space in the sparse bundle. DO you use any software that uses a database or stores everything in a single file. Examples of this are Microsoft Entourage, FileMaker documents, Parallels or VMWare Fusion virtual machines?
Wrong!

A Sparse Disk Image - first is a Mac format compression file.

Second - A Sparse Disk Image is designed to start out small and expand as files are added to the Sparse Disk Image. It is not designed to deflate as files are removed. Such as is the case with a standard Folder.

In order to shrink the size of the Sparse Disk Image back down - you do have to manually [or thru automation] as weckart mentioned run a Terminal command to tell the system to recompress the file size to clear up unused free space.

Read before you speak!
http://en.wikipedia.org/wiki/Sparse_disk_image

Not really too much to do with Microsoft or VM [virtual machines] databases. Databases have less hassle resizing themselves and even still have protocols built in to regulate this most times. There does however have to be a database controlling Time Machine to keep everything organized but it's a separate mechanism within Time Machine. 2 different things.
uberfu is offline   0 Reply With Quote
Old Aug 27, 2010, 04:03 AM   #9
steve09090
macrumors member
 
Join Date: Aug 2008
I am not used to using Terminal, so a GUI would be great (especially when I don't know the actual written 'path' for the Time Capsule) but I did find this from MurphyMac.com.

"...Here’s a tip in case you’re not used to working with Terminal. Just type hdiutil compact in the Terminal, followed by a space. Then drag the sparse image file from Finder into the Terminal window. The path and file name will be added to the command line. Hit the Return key on the keyboard and you’re done."
steve09090 is offline   0 Reply With Quote
Old Apr 9, 2011, 10:50 AM   #10
pedroslima
macrumors newbie
 
Join Date: Jul 2010
Awesome

Quote:
Originally Posted by steve09090 View Post
I am not used to using Terminal, so a GUI would be great (especially when I don't know the actual written 'path' for the Time Capsule) but I did find this from MurphyMac.com.

"...Here’s a tip in case you’re not used to working with Terminal. Just type hdiutil compact in the Terminal, followed by a space. Then drag the sparse image file from Finder into the Terminal window. The path and file name will be added to the command line. Hit the Return key on the keyboard and you’re done."
Very nice, very nice. My sparse image was in a network drive and I didn't know how to place the whole location in the terminal. I tried to use the disk utility and couldn't compact for some reason (even after ejecting). The tip you provided was great, the drag and drop worked fine and I saved 100Gb of disk by compacting!
pedroslima is offline   0 Reply With Quote
Old Nov 28, 2012, 08:17 AM   #11
bimbachi
macrumors newbie
 
Join Date: Nov 2012
help needed on this solution

Quote:
Originally Posted by weckart View Post
No need to reformat.

hdiutil compact /path/to/xxxxx.sparseimage

should do the trick.
I see your solution worked for others.
Personaly I found problem.
I'm not specialist and in Terminator app I had this:

<< Last login: Wed Nov 28 14:59:42 on ttys000
MacBookProTI:~ tignaciuk$ hdiutil compact /Volumes/terra-1/MacBookProTI.sparsebundle
hdiutil: compact failed - Function not implemented
MacBookProTI:~ tignaciuk$ >>


can you (or somebody else) help on this
bimbachi is offline   0 Reply With Quote
Old Jan 19, 2013, 01:44 AM   #12
Mernak
macrumors 6502
 
Join Date: Apr 2006
Location: Boston, MA
I just actually ran into this problem today and was looking for an answer to this. Are you using a laptop not connected to battery power when doing this? If so, you either have to connect it to batery power or use the following command
Code:
hdiutil compact -batteryallowed /path/to/name.sparseimage
I'm guessing it's to prevent data corruption in the case of loss of power.
__________________
MB, 2.0Ghz, 2GB Ram, 80GB
iPhone, 8GB
Mernak is offline   0 Reply With Quote
Old Nov 5, 2013, 10:05 AM   #13
polocanada
macrumors newbie
 
Join Date: Jul 2009
Use Sparseimage Compactor.

Just use the Sparseimage Compactor. It's a free script, it does it for you, not terminal commands needed:

https://www.macupdate.com/app/mac/24...mage-compactor
polocanada is offline   0 Reply With Quote
Old Nov 5, 2013, 06:15 PM   #14
polocanada
macrumors newbie
 
Join Date: Jul 2009
Quote:
Originally Posted by polocanada View Post
Just use the Sparseimage Compactor. It's a free script, it does it for you, not terminal commands needed:

https://www.macupdate.com/app/mac/24...mage-compactor

Here is another tool - DropDMG. It's not free but also can do although a few more steps.

https://www.macupdate.com/app/mac/7099/dropdmg
polocanada is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Just made sparse bundle disk image. already 80 gb used space? chitowncity OS X 0 Nov 7, 2013 06:16 PM
What is sparse image bundle? AmateurMacGuy MacBook Air 4 Oct 20, 2013 09:24 AM
Sparse disk image/ delete. Brannon May Mac Peripherals 1 Apr 10, 2013 08:12 PM
Can you backup to a Time Machine sparse bundle over USB alec6542 OS X 10.8 Mountain Lion 1 Apr 5, 2013 11:03 AM
Sparse Disc Image Bundle mac2thefuture Mac Basics and Help 5 Jan 22, 2013 04:52 PM

Forum Jump

All times are GMT -5. The time now is 07:02 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC