New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

How do I delete sparse bundles using Command Line? Trying 2 reduce Time Machine files

Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 22, 2011
Posts: 3
Cloudbase is on a distinguished road

Cloudbase is offline
EDIT: I should have titled this thread "compacting sparse bundles using command line".

Hi everyone. I'm new to this forum. I have a 2010 Macbook Pro with Snowleopard. Time Machine has gobbled up the majority of my 2TB external drive. I'd like to reduce the size of my back ups to 500Gb so I can use and older 500GB drive as my primary back up. I've been using a blog post I found on reducing Time Machine back up space, but I can't complete the last two steps regarding compacting the sparse bundles. If I understand correctly, compacting the sparse bundles will have a similar effect to defraging the drive like in Windows.

Here is the blog post:Apolitically Incorrect Reclaiming Free Space from a Time Machine Backup

The instructions say to mount the external drive.

Open a new Line Command and type cd/volumes

From there I can individually select the sparse bundles associated with the back up's I have deleted and erase them.

When I open the Command Line utility and type cd/volumes it says it can't find the directory. Obviously I'm doing something wrong, but I have no idea what. I have no programing experience and am relatively OS illiterate. I read somewhere that snowleopard sparse bundles can grow and shrink, so maybe I don't need to complete this step??? Any help would be much appreciated.
QUOTE Thanks

MacsWork's Avatar
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,159
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
A.) First off, the CMD Line is case sensitive. Syntax is very important.

cd /Volumes

Notice the space as well as an upper case V

B.) Time Machine is designed to use the whole backup drive. If you want to use the Time Machine drive for other things I suggest you create multiple partitions on the drive and specify the Time Machine partition.
QUOTE Thanks

Member Since: Nov 22, 2011
Posts: 3
Cloudbase is on a distinguished road

Cloudbase is offline
Thanks for the reply.

I actually bought another 1TB drive to dedicate solely to Time Machine. My problem is that back up files are larger than 1TB so I can move them until I shrink the size. I could partition my external, but I have nowhere to put all of my other backup files while I format it. Am I correct in assuming I can't partition a drive with data on it?

Here is what the blog post says in Step 2:

Step 2: Mount the Disk Using Finder

Since we will be using a command line utility to compact the sparsebundle, you will need to mount your backup disk before proceeding. While this can be done a variety of ways, the easiest is to open up the finder and select the backup drive from the list under “Shared”. (When it is mounted, you will see a little eject symbol next to the computer name.)

Now open up a command line terminal and go to the /Volumes/ folder.
cd /Volumes/

When I mount my external drive is appear on the left under devices not shared. I guess his external could be wirelessly connected. But when I open up the command terminal how do I know that it is "commanding" the external drive an not my Mac hard drive?

Where do I type it? In the window that looks like a text file or the other window with a black background.

Please, any light you could shed on the command line stuff would be much appreciated.
QUOTE Thanks

McBie's Avatar
Member Since: Apr 26, 2008
Location: Belgium
Posts: 2,668
McBie is a splendid one to beholdMcBie is a splendid one to beholdMcBie is a splendid one to beholdMcBie is a splendid one to beholdMcBie is a splendid one to beholdMcBie is a splendid one to beholdMcBie is a splendid one to beholdMcBie is a splendid one to behold
Mac Specs: 2013 MBA 13" - OS X 10.10.4

McBie is offline
Be aware that Time Machine uses a database to keep track of its backups.
If you fiddle around with the TM backup files manually, you will destroy the integrity of the TM database, resulting in another post here " Help, Time Machine is not working anymore " ... or something along those lines.

A better way is to go into Time Machine and in the TM finder, select the file/folder you want to delete and there is a menu item that allows you to delete all occurrences of that file/folder.

Hope this helps.

Cheers ... McBie

A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
The bitterness of poor quality remains long after the sweetness of low price is forgotten.
QUOTE Thanks

Member Since: Nov 22, 2011
Posts: 3
Cloudbase is on a distinguished road

Cloudbase is offline
I think I have been doing that. It is step 1 of the link I posted (below). Basically, open Time Machine. Pick individual back ups and delete using the "delete backup" option under the gear symbol pull down menu.

Don't I have to compact the sparse bundle to take proper advantage of the newly opened space. Maybe I should change the name of my thread to "compacting sparse bundle".

Step 1: Delete Backups from the Sparse Bundle

Start by loading Time Machine from the root of your main hard drive. (In my case, the hard drive is named “RobOakes-Mac”.) Next, select the snapshot that you are interested in deleting from the timeline at right. Finally, press the gear button and select the “Delete Backup” option.

Time Machine will ask if you want to proceed. Confirm that you do, indeed, want to permanently remove the selected backup by pressing the “Ok” button.

At this point – if you’re using Snow Leopard – you may run into a rather obnoxious bug. For reasons that make little sense, the confirmation dialog box doesn’t always appear. Instead, the user interface might freeze and you’ll be treated to the spinning beach ball of death. If this happens, be patient. It might take a minute or two for Time Machine to go about it’s business. (Since this problem doesn’t exist on regular Leopard, go ahead and curse Apple’s grandiose, false, and self-serving rhetoric about parallelism. It might even make you feel better, I know it helps me.)
When the **** beach ball finally goes away, just hit enter. Apparently, the dialog box really is there, you just can’t see it. So, use your imagination and pretend.
Finally, you will be prompted to enter an administrator password.

When you’re all finished deleting snapshots, click on the main “Cancel” button. This will take you back to your desktop.

If everything worked as planned, you should see something similar to the screenshot below. There will be a “Delete One Backup” indicator for each of the backups you removed. Important: Wait for the indicators to finish before proceeding to the next step.
QUOTE Thanks

Post Reply New Thread Subscribe

« Fusion Rant | Lion won't recognize HTC Incredible »
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
External Hardrive files erased after Time Machine backup jennattackk Other Hardware and Peripherals 2 08-08-2011 02:47 PM
backing up files through Time Machine and storing files on external HDD halfmonkey Switcher Hangout 6 05-19-2011 08:54 AM
Transfering files / Time Machine / reinstalls / etc. mossback OS X - Operating System 1 03-05-2010 03:39 PM
Time Machine full system restore changes your login password- Not Robust darthvader747 OS X - Operating System 5 01-28-2009 01:56 PM
Time machine Info imme OS X - Apps and Games 0 06-13-2008 10:44 AM

All times are GMT -4. The time now is 10:18 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?