Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Operating System (http://www.mac-forums.com/forums/os-x-operating-system/)
-   -   Cannot empty trash, even after following other webpages (http://www.mac-forums.com/forums/os-x-operating-system/218957-cannot-empty-trash-even-after-following-other-webpages.html)

JPC 10-31-2010 09:56 PM

Cannot empty trash, even after following other webpages
 
Right so today I installed Windows 7 on my Mac because some 3D modelling software I needed is only available on that platform. Now when I was on the Macs side I'm not sure if I dragged the files from my bootcamp HDD or from my Macintosh HDD to the bin but now I cannot empty it. When I click empty it makes the sound and gets rid of all other files bar 2. I've tried emptying securely but that just comes up with 'The Finder can't complete the operation because some data in "filename" can't be read or written. (Error code -36)'. Now when I open the trash and press cmd + i on the files it says under permissions 'You can read and write' and also they're not locked. I've tried Trash It! and several different Terminal commands but no luck. Please can someone give me the heads up because I don't want to format my machine with all the time I've spent installing stuff!

Thanks in advance.

IvanLasston 10-31-2010 10:24 PM

What terminal commands did you try?
ADVANCED WARNING - YOU DO THIS WRONG YOU MESS UP YOUR COMPUTER - BE VERY VERY VERY VERY CAREFUL DO NOT CUT AND PASTE.
Code:

cd ~/.Trash
ls

The ls should show you what is in your Trash - if it isn't what you expect stop right there.

YOU DO THIS NEXT BIT IN THE WRONG SPOT YOU ARE IN TROUBLE. BACKUP JUST IN CASE. RUN THIS COMMAND IN THE ~/.Trash directory.
Code:

sudo rm -rf *
It will ask for your password.

XJ-linux 10-31-2010 10:32 PM

What is it about .Trash lately?

JPC 11-01-2010 05:55 AM

I followed some advice on this site Solving Trash Problems and how do I enter that into terminal without messing it up?
cd ~/.Trash (return)
ls (return)
sudo rm -rf * (return) ?

IvanLasston 11-01-2010 12:25 PM

You are correct - I am just warning you that sudo rm -rf * is a very dangerous operation. Be very clear on where you are when you run it. Any typo in any of the commands could be catastrophic - especially if you don't back up.


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

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