Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
My time machine is a 500GB partition on a external drive. For some reason time machine stopped deleting the oldest backup and replacing with new ones. Started saying time machine full. So I deleted the old ones. But OS X can't seem to delete them. Just hangs for days. So then I try restoring them to the original location and it says can't authenticate and/or iMac is in use and can't. So they are all just stuck in my trash.
 

BLUEDOG314

macrumors 6502
Dec 12, 2015
377
120
How much information is actually on the drive you are backing up? Time machine is just creating multiple hardlinks to files to avoid file duplication in a backup setting, thus unless you delete all hardlinks to a given file, it wont actually get deleted.

On another note, if you want to just empty trash, use terminal. sudo rm -rf ~/.Trash/*
 

BLUEDOG314

macrumors 6502
Dec 12, 2015
377
120
Let me just say this, I am very OCD about my backups and how I use my machine in general. While time machine is ok for most, the way it is implemented is rather scary considering how HFS+ works with hardlinks. I have had my backups get jacked up on numerous occasions because of the sheer number of files and directories on my drive.

http://arstechnica.com/apple/2011/07/mac-os-x-10-7/12/

From the article:

"One particularly scary example is the implementation ofhard links on HFS+. To keep track of hard links, HFS+ creates a separate file for each hard link inside a hidden directory at the root level of the volume. Hidden directories are kind of creepy to begin with, but the real scare comes when you remember that Time Machine is implemented using hard links to avoid unnecessary data duplication.

Listing the contents of this hidden directory (named "HFS+ Private Data", but with a bunch of non-printing characters preceding the "H") on my Time Machine backup volume reveals that it contains 573,127 files. B-trees or no b-trees, over half a million files in a single directory makes me nervous."

To empty your trash with terminal type exactly what I said, "sudo rm -rf ~/.Trash/*" without the quotes and you will be just fine.
 

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
Let me just say this, I am very OCD about my backups and how I use my machine in general. While time machine is ok for most, the way it is implemented is rather scary considering how HFS+ works with hardlinks. I have had my backups get jacked up on numerous occasions because of the sheer number of files and directories on my drive.

http://arstechnica.com/apple/2011/07/mac-os-x-10-7/12/

From the article:

"One particularly scary example is the implementation ofhard links on HFS+. To keep track of hard links, HFS+ creates a separate file for each hard link inside a hidden directory at the root level of the volume. Hidden directories are kind of creepy to begin with, but the real scare comes when you remember that Time Machine is implemented using hard links to avoid unnecessary data duplication.

Listing the contents of this hidden directory (named "HFS+ Private Data", but with a bunch of non-printing characters preceding the "H") on my Time Machine backup volume reveals that it contains 573,127 files. B-trees or no b-trees, over half a million files in a single directory makes me nervous."

To empty your trash with terminal type exactly what I said, "sudo rm -rf ~/.Trash/*" without the quotes and you will be just fine.

Thanks bro but i did it and they all still just sit in my trash
 

JohnDS

macrumors 65816
Oct 25, 2015
1,183
249
If it is just your trash that you are trying to empty, try first doing a safe boot by rebooting while holding down the shift key. See if you can then empty the trash. If you can, then reboot normally.
 

Alrescha

macrumors 68020
Jan 1, 2008
2,156
317
I do not want to F up my machine

Too late. :)

OS X tries very hard to protect your backups. It protects Time Machine data in several different ways - conventional methods that you would use to delete normal files do not work with Time Machine files.

In the future, if you want to manually delete some backups, you use the "tmutil" command. You can google it.

For your current problem, you could reformat the partition you use for Time Machine and start from scratch. If that is too scary, you can try to delete the files in the trash using a hidden command which bypasses the OS X Time Machine protections. Google "TMSafetyNet".

A.
 
  • Like
Reactions: chabig

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
ok I came across a solution but cannot seem to execute it. I believe I have the syntax wrong. Can some one show me exactly what type into terminal to do this?

Open terminal, type "cd /Volumes" and then "ls" to display all volumes and "cd <<TM volume name>>" to go into the TM volume.

Type "ls -a" to display all files, the -a is because Trashes is hidden.

"sudo rm -rf .Trashes" should delete the trashes folder.

Careful, messing that up could delete the wrong thing. Also, this hasn't always solved the problem for me.

Time Machine seems to (rather annoyingly) just do it's own thing. I've had it delete the files on its own time before and the free space was back after a certain period of time. I have no explanation for it but it seems to have fixed itself.
[doublepost=1454164274][/doublepost]ok and I followed this to a tea. And it tried to empty the trash but basically said I didnt have permission. Id have to go buy another hard drive if I wanted to rrefomat it because too much data on it. Is there any way that will work?
[doublepost=1454164305][/doublepost]https://seo-michael.co.uk/how-to-remove-os-x-time-machine-backups-from-trash/
[doublepost=1454165018][/doublepost]ok I located them. Now I just need help deleting them. Here is where the trash is...

/Volumes/Time\ Machine/.Trashes/501/

. 2015-12-27-071416 2016-01-09-071416

.. 2015-12-29-070202 2016-01-11-070704

2015-12-11-070704 2015-12-31-071146 2016-01-13-071006

2015-12-16-070201 2016-01-02-073424 2016-01-15-073458

2015-12-18-072821 2016-01-04-070609 2016-01-18-071827

2015-12-23-070456 2016-01-06-071700 test

2015-12-25-073238 2016-01-07-070704 test2
 

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
can some one show me how to use the TMSafetyNet command? I googled it but it didn't show me much
 

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
would this work???? considering the trash is in my 501 folder

tmutil delete /Volumes/Time\ Machine/.Trashes/501/
[doublepost=1454249536][/doublepost]or for el capitan is this the correct syntax using the bypass thingy??? I think this may work but I wanted to confirm with you guys first so I don't delete anything I don't want to.

/System/Library/Extensions/TMSafetyNet.kext/Helpers/bypass rm -rfv /Volumes/Time\ Machine/.Trashes/501/
 
Last edited:

BLUEDOG314

macrumors 6502
Dec 12, 2015
377
120
If you wanted to delete everything within that 501 folder:

sudo tmutil delete /Volumes/Time\ Machine/.Trashes/501/*

Use sudo as it will require root, the * at the end means match anything within the 501 directory.

If that does not work, you could always use single user mode as all the jazz that works in the background to protect Time Machine backups will not be running. This would however require you mount your backup in single user which takes a little more work. If you want to try this I can give you direction on how to do it.
 

Fishrrman

macrumors Penryn
Feb 20, 2009
28,330
12,453
OP:

I suggest you just reinitialize the partition that has the TM backups you want to get rid of, then "start over".

Suggestion:
Have you ever considered CarbonCopyCloner or SuperDuper instead?
 

PicnicTutorials

macrumors 6502a
Original poster
Dec 29, 2013
546
13
Yeah I have carbon copy cloner. I've already order a new 5T drive. So when it comes I guess I'll back everything up and then erase the drive. Googling for days you know what's happening??? There is a bug in the newest OS that won't delete time machine backups with a carboncopycloner in it. Which mine have. Which eventually gives me the message time machine full. Which leads to people like myself trying to manually delete their backups which then leads to this problem. Anyways... if by some craziness deleting the partition doesn't work then I'll try this. But I already order the new drive so I guess it would be prudent to wait.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.