Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to Empty Trash on Time Machine Volume?

I began getting "Backup failed with error: 11" messages from Time Machine. So I used a technique that worked with TM before: I deleted the ".inProgress" file left behind in my TM volume after the error occurred (I found that "solution" here: <http://tinyurl.com/5gacqy> via here: <http://tinyurl.com/o2b6lo>).

Although it worked as before, TM did need to spend a half day performing a deep traversal the first time it ran after I deleted the file (which, IIRC, is what I've experienced before when using this technique). But what’s troubling is that this time, the ".inProgress" file I deleted can’t be emptied from the Trash: Any time I empty my Trash, everything gets deleted except that file (and the Trash’s “progress” thermometer bar remains up and running, basically not showing any progress).

I did a Get Info on the file, and found its path to be /Volumes/<name of my TM drive>/.Trashes/501. So, this seems to be telling me the obvious: The ".inProgress" file that I deleted from my TM volume is sitting in the TM volume’s Trash (“.Trashes/501”).

How do I get rid of it?

iMac (24", 2.8 GHz) • 2GB RAM • 320 GB HDD • Mac OS X (10.5.8)

Posted on Dec 13, 2009 9:07 AM

Reply
Question marked as Best reply

Posted on Dec 13, 2009 9:45 AM

In most (or all) cases, that advice is just plain wrong. Time Machine will recover a failed/cancelled backup all by itself.

If you get that error, see #C3 in the Time Machine - Troubleshooting *User Tip,* also at the top of this forum. It will show you how to locate the message(s) that describe the problem, then help you fix it.

Never move, change, or delete any TM backups via the Finder. That can hopelessly corrupt them.

To force-empty the trash on your TM drive, open the Terminal app (in your Applications/Utilities folder). Be *very careful* with this app. It's a direct link into UNIX, the underpinnings of OSX, but without the protections of OSX.

In Terminal, the prompt looks like this: user-xxxxxx:~ <your name>$

(where <your name> is your short user name). It's followed by a non-blinking block cursor (unless it's been changed via Terminal > Preferences).

Type the following exactly as shown, placing the name of your Time Machine partition between the quotes, and be sure to place spaces where shown:

sudo cd /Volumes/"Time Machine Backups"/

and press Return. Then enter:

sudo rm -rf .Trashes/

and press Return.

Then do a +*Repair Disk+* (not permissions) on your TM drive. That may repair the damage, and your backups may be intact. Your next TM backup may be lengthy, as it may do a "deep traversal," comparing every folder (directory) on your system to the backups.

If not, you may have to erase the drive and let TM start fresh.
11 replies
Question marked as Best reply

Dec 13, 2009 9:45 AM in response to Maxwell’s Demon

In most (or all) cases, that advice is just plain wrong. Time Machine will recover a failed/cancelled backup all by itself.

If you get that error, see #C3 in the Time Machine - Troubleshooting *User Tip,* also at the top of this forum. It will show you how to locate the message(s) that describe the problem, then help you fix it.

Never move, change, or delete any TM backups via the Finder. That can hopelessly corrupt them.

To force-empty the trash on your TM drive, open the Terminal app (in your Applications/Utilities folder). Be *very careful* with this app. It's a direct link into UNIX, the underpinnings of OSX, but without the protections of OSX.

In Terminal, the prompt looks like this: user-xxxxxx:~ <your name>$

(where <your name> is your short user name). It's followed by a non-blinking block cursor (unless it's been changed via Terminal > Preferences).

Type the following exactly as shown, placing the name of your Time Machine partition between the quotes, and be sure to place spaces where shown:

sudo cd /Volumes/"Time Machine Backups"/

and press Return. Then enter:

sudo rm -rf .Trashes/

and press Return.

Then do a +*Repair Disk+* (not permissions) on your TM drive. That may repair the damage, and your backups may be intact. Your next TM backup may be lengthy, as it may do a "deep traversal," comparing every folder (directory) on your system to the backups.

If not, you may have to erase the drive and let TM start fresh.

Dec 13, 2009 12:00 PM in response to Pondini

Pondini wrote:
In most (or all) cases, that advice is just plain wrong. Time Machine will recover a failed/cancelled backup all by itself.



When this first happened, it ran for several days without recovering. I quit and tried several times again, with no success; sometimes I stopped the backup, other times I let it run and would get the "error 11" message. I then googled high and low for information on "error 11" messages, and that's when I found the "Mac OS X Hints" reference, and its reference to the Colin Charles article. (FWIW, I also saw the "solution" mentioned in the fourth post in a thread in this forum (http://tinyurl.com/ycuehnh), which I assume the poster found the same way I did).

If you get that error, see #C3 in the Time Machine - Troubleshooting *User Tip,* also at the top of this forum. It will show you how to locate the message(s) that describe the problem, then help you fix it.

Never move, change, or delete any TM backups via the Finder. That can hopelessly corrupt them.

To force-empty the trash on your TM drive, open the Terminal app (in your Applications/Utilities folder). Be *very careful* with this app. It's a direct link into UNIX, the underpinnings of OSX, but without the protections of OSX.

In Terminal, the prompt looks like this: user-xxxxxx:~ <your name>$

(where <your name> is your short user name). It's followed by a non-blinking block cursor (unless it's been changed via Terminal > Preferences).

Type the following exactly as shown, placing the name of your Time Machine partition between the quotes, and be sure to place spaces where shown:

sudo cd /Volumes/"Time Machine Backups"/

and press Return. Then enter:

sudo rm -rf .Trashes/

and press Return.



I'm very wary of messing with Terminal because of an unfortunate incident last year, wherein I followed someone's instructions and misinterpreted the string he told me to enter, resulting in me wiping out my Desktop files. Fortunately, I was able to restore them via Time Machine. So, if you can, could you please provide me with a more-detailed set of instructions, including the string(s) I should enter (i.e., that I can literally "copy-and-paste" into Terminal)? Here are the "details" of what I see in my Time Machine HD:
I see the folder "Backups.backupdb." In that folder is a folder called "Maxwell's iMac"; in that folder is the "alias" called "Latest," along with the folders containing my backups (the most-recent one being "2009-12-13-141606").
Filling in the actual names in the path I indicated in my initial post,
/Volumes/<name of my TM drive>/.Trashes/501,
I have
/Volumes/Seagate/.Trashes/501
The file I deleted (and which now is "stuck" in ".Trashes/501") originally had the path
/Volumes/Seagate/Backups.backupdb/Maxwell's iMac/2009-12-11-174209.inProgress

Jan 21, 2010 10:07 AM in response to Pondini

Yes, I meant that i can't empty the trash. In December, a power failure interrupted a Time Machine backup, creating an .inprogress file that (not knowing any better), I tried to delete manually by moving it to the trash.

At the time, I didn't try to empty the trash and it wasn't until yesterday that I was trying to empty trash, with my TM-HD hooked up, and it was stalling on deleting that one file. TM also takes an unusually long time to execute a back-up (though it does work when I try).

I tried to follow the terminal commands as given in the thread but while I didn't get an error message in executing them, nothing happened. The item still remained in the trash.

The commands I gave were:

sudo cd /Volumes/"Maxtor"/ (Maxtor being the name of my TM drive)
sudo rm -rf .Trashes/

As noted, UNIX accepted both but I couldn't see any completed actions. Did I enter in some wrong information or command line?

Thanks.

Jan 21, 2010 10:20 AM in response to Oliver Wang1

Oliver Wang1 wrote:
Yes, I meant that i can't empty the trash. In December, a power failure interrupted a Time Machine backup, creating an .inprogress file that (not knowing any better), I tried to delete manually by moving it to the trash.

At the time, I didn't try to empty the trash and it wasn't until yesterday that I was trying to empty trash, with my TM-HD hooked up, and it was stalling on deleting that one file.


It's not one file. It's a "package" containing many items, perhaps thousands.

TM also takes an unusually long time to execute a back-up (though it does work when I try).


When you try to empty the trash normally, with the TM drive attached, do you get any error messages?

Have you tried holding down the Option key while emptying the trash?

If all else fails, your best bet is probably to erase your Time Machine drive (via +Disk Utility,+ in your Applications/Utilities folder), and let TM start over.

Jan 21, 2010 10:41 AM in response to Pondini

It hangs on "Preparing to empty the Trash" but now I think I know why: the file is over 600GB. Option-Trash doesn't do anything different from just the normal way.

1) Would the UNIX commands do anything different?
2) In the future, if I run into this problem again (finding an .InProgress file on my TM-HD), what is the proper way to remove it?

Thanks again.

Jan 21, 2010 10:58 AM in response to Oliver Wang1

Oliver Wang1 wrote:
It hangs on "Preparing to empty the Trash" but now I think I know why: the file is over 600GB.


And most likely contains several hundred thousand to a few million items (it's the number of items that's the problem, not so much the size). Each item has to be deleted individually; directory entries removed, locations added back to the available space index, etc.

Be sure you're not doing a Secure empty trash, as that also requires over-writing everything with zeros.

Option-Trash doesn't do anything different from just the normal way.

1) Would the UNIX commands do anything different?


It should, but you've tried that.

2) In the future, if I run into this problem again (finding an .InProgress file on my TM-HD), what is the proper way to remove it?


Don't. Time Machine will recover it on the next backup.

In some cases where a backup fails early, or is cancelled or interrupted early in the process, or it's a small one, people will get away with deleting a partial backup. Some of them then advise other folks to do the same, not realizing the consequences.

You will not find that advice on these forums from anybody with any experience with Time Machine.

Emptying the trash might, eventually, complete (I recall one post where it took 3 days to empty 7 million items), but your best bet is to erase the disk and let Time Machine start over.

Jan 21, 2010 12:00 PM in response to Oliver Wang1

I was able to delete the .InProgress file in my Trash by following the directions found here:

http://forums.macrumors.com/showthread.php?t=571982

It does involve using terminal and required two steps.

First: cd /Volumes/(NAME OF TIME MACHINE DRIVE)

Second: sudo rm -rf .Trashes

It will then ask for a password. Upon entering the password, Terminal will process your command and depending on the job, it may take a while (mine took about half an hour). But afterwards, the Trash was empty.

I'll know better NOT to delete .InProgress files via Finder in the future!

How to Empty Trash on Time Machine Volume?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.