Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error 8062 when emptying trash



Thanks, Juan.

After I posted this, I went onto the Apple site and searched their
archives. I found the following (for those who might be interested):



Emptying the Trash
In some circumstances, folders for which you do not have write
permission can end up in the Trash; and you will not be able to
delete them or the files contained in them. Remember that in Mac OS X
there is not a single Trash folder. Instead, each user has a Trash
folder in the Home directory (named ".Trash"). There is also a Trash
folder for the startup volume, and Trash folders for other volumes or
disks. When a user throws away a file on a local non-startup volume,
the name of the folder on that volume is "/.Trashes/UID", where UID
is the user ID number of the user (which may be seen in NetInfo
Manager). In either case, all Trash folders are hidden from the user
in the Finder. In these situations you can either start up into Mac
OS 9 to locate the files and delete them, or you can use the Terminal
application. Issues with emptying the Trash are much less likely to
occur in Mac OS X 10.2 or later, since the Finder empties the Trash
as the root user. However, issues may still occur with files on
remote volumes for which your local root user has no special
privileges.

Warning: Typographical error or misuse of the "rm -rf" command can
result in severe data loss. Insertion of a space in the wrong place
could result in the complete deletion of data on your hard disk, for
example. You may wish to copy and paste the commands below into a
text editor to verify spacing. Follow these steps to delete Trash
for the logged-in user:

1. Open the Terminal application.
2. Type: sudo rm -rf
Note: Type a space after "-rf". The command does not work without the
space. Do not press Return until Step 6.
3. Open your Trash.
4. Choose Select All from the Edit menu.
5. Drag all of your Trash into the Terminal window. This causes the
Terminal window to automatically fill in the name and location of
each item in your Trash.
6. Press Return.

All of the items in your Trash are deleted. As an alternative method,
you may execute these commands. The second and third commands will
delete Trash belonging to other users. The commands are:

sudo rm -rf ~/.Trash/
sudo rm -rf /.Trashes/
sudo rm -rf /Volumes/<volumename>/.Trashes/

Respectively, this permanently deletes all files in the current
user's Trash, the startup volume Trash, and the Trash for other
volumes (if any). These commands cannot delete locked files. To
unlock locked files, see technical document 106272: " Mac OS X: About
Trash, Deleting Locked Files ".

Note: The sudo command can be used to temporarily obtain super user
status and change permissions on files that otherwise could not be
changed. However it is only available if you are logged in as an
Admin user, and it requires an Admin user password for authentication.




Juan Manuel Palacios wrote:

> Hello Chris,
>
>On Thursday, May 8, 2003, at 10:59 PM, Chris Scott wrote:
>
>>I am running an Xserve box with OS X Server v. 10.2.4. Connected
>>to the rear firewire connections are two external firewire hard
>>drives to which I back up. I'm logged in as System Administrator.
>>
>>I have trashed many (thousands) of files from each of the external
>>hard drives. When I try to empty the trash, the dialogue box
>>indicates it's counting the files, gets to a very high number
>>(e.g., 20,000), then gives the following error message: "Sorry,
>>operation could not be completed because an unexpected error
>>occurred (error code -8062)".
>
> About that error, I don't know. Maybe a Finder error code
>telling you it is choking because the number of files is awfully
>high. You you could always get to the terminal and resort to good
>old reliable "rm -rf"? All you have to do is cd into your trash, "cd
>~/.Trash", and erase all that's there with "rm -rf *". Be careful!
>that will wipe everything in its path, no questions asked! You might
>want to check you're in the appropriate directory
>(/Users/<username>/.Trash) with "pwd" before you use that.
>
>>
>>If I log on as another user (with administrator privileges), the
>>trash is empty.
>
> That is actually quite simple. In Mac OS X, as opposed to Mac
>OS 9 and older, the trash is just a directory on a per user basis.
>So when you login as a different user, regardless of being an admin
>or not, you're going to a different home directory, the user's, with
>a completely different set of directories, including the trash.
>Basically you have
>/Users/<username>/{Desktop,Documents,Library,Movies,Songs,Sites,.Trash}
>and others, where the <username> accounts for the user you logged in
>as. Clear as mud?
>
>>
>>Can anyone offer any insights, explanations, or suggestions?
>
> Hope those help! Regards,...
>
>
>
> Juan.
>_______________________________________________
>macos-x-server mailing list | email@hidden
>Help/Unsubscribe/Archives:
>http://www.lists.apple.com/mailman/listinfo/macos-x-server
>Do not post admin requests to the list. They will be ignored.


--
____________________________________

Chris Scott
Connolly & Castagna, L.L.P.
4611 Bee Cave Road, Suite 201
Austin, Texas 78746

Direct: 512.329.1006
Main: 512.329.3290
Fax: 512.329.3222

Email:
email@hidden
email@hidden
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Error 8062 when emptying trash (From: Juan Manuel Palacios <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.