|
|
Relocated home folder and a non-emptiable trash
I have a simular (trash-related) issue. There are a few files in my trashcan that refuses to be deleted when emptying. I have even tried to do by using the terminal but with no luck:
I'm totally out of luck.
Relocated home folder and a non-emptiable trash
I may be wrong but it looks like you are trying to remove the .Trash directory as well as its contents. Try:
Relocated home folder and a non-emptiable trash
Well that should make no difference but here's the result anyway:
Relocated home folder and a non-emptiable trash
I've moved the folder the other day, successful on previous occasions but this time the trash provided a problem.
Relocated home folder and a non-emptiable trash
Nope, the owner of the files is just right but I'll try it, just for show:
Relocated home folder and a non-emptiable trash
I agree with another poster that your disk may well be trashed (slight pun intended), but before you go reinstalling the OS: Have you tried working with the file inode (serial number) instead of the name? That is, in your Trash directory (or in the folder(s) in your Trash), type
to list each file and its inode number. Suppose the file in question has inode 1234567. Then, you ought to be able to execute a find command something like the following (Note: I have not tested this, so use at your own risk):
If that doesn't work, then I would seriously consider erasing the drive and restoring from backup....
Relocated home folder and a non-emptiable trash
Well, I just clicked on the Unix Power Tools link below, and the very next page suggests the following syntax:
Guess I wasn't too far off.... :)
Anyway, one of these ought to work for you. If not, I suspect your drive is on its way out anyway. BTW, you never said how these files got those odd-character names in the first place. Is this a reflection of file corruption, or did you name these files that way yourself? If the latter, you might try changing your shell or to a terminal program that better supports high-ASCII (or Unicode?) characters. Perhaps iTerm would work better? (Just a guess....)
Relocated home folder and a non-emptiable trash
Unfortunately... iTerm did not do the trick. :(
Relocated home folder and a non-emptiable trash
iTerm or not (i.e., plain ol' Apple Terminal), deleting files by their inode should work fine — provided your drive is not in the process of giving up the ghost. I tested it on two machines here successfully. What happened when you tried the
find command listed above?
Relocated home folder and a non-emptiable trash
well, I thought i wrote that but apperently there is no post. Anyway it didn't work out not because of find but because of ls when trying to find out the file node:
As you can se ls with no flags works just fine but when using flags on those directories like -l or -i ls complains just like above. :(
Relocated home folder and a non-emptiable trash
OK, now I wonder if something is up with your version of
ls. Do you have fink installed? Have you mucked around with some Unix tools? Have you been r00ted?
What happens when you type the following:
And what about this one:
(Note: the second command is 'ls -i' immediately proceeded by a single slash '' — the unshifted character just above the Return key on Apple's keyboards (in the U.S., at least).)
Relocated home folder and a non-emptiable trash
Well, again no luck:
:(
Relocated home folder and a non-emptiable trash
excellent hint, but my system has it's own way of saying no. Check this out:
as you can se "ls" refuses to show the list if anya flags are being used. The same thing goes with the -l flag:
Relocated home folder and a non-emptiable trash
Looks like you have a bunch of files with strange characters. This can cause problems with deletion.
However, the excellent O'Reilly's Unix Power Tools has an answer to most unix problems. Here's an excerpt I found online that might help.
Relocated home folder and a non-emptiable trash
Thanks, I tried it but with no luck. This was interesting:
why is it not possible to run od as root? Very strange. Luckily the ls -b was available so i used it then run the perl version... check ths out:
The file is still there. So it didn't work, I also tried the c-hack but with no luck. :(
Thanks anyway...
How to deal with strange characters
Maybe this helps with your strange characters:
How to deal with strange characters
Nope, I've tried that but with no luck...
Maybe your directory structure is damaged
I'm just guessing, but maybe your directory structure is damaged. Try DiskUtility-FirstAid-verify, or another disk utility.
Or have you tried Firewire Target disk mode?
Or have you tried Firewire Target disk mode?
Or have you tried Firewire Target disk mode?
sure I have, I have tried it in firewire mode, I have booted it in OS9, I have mounted it as a afp, smb share on booth osx, os9 and win machines with no luck. I have tried to delete the files by using ftp. I have mad different perl, php, c, java programs that should be able to delete the files but with no luck.
Maybe your directory structure is damaged
tried it with no luck. :(
try -r instead of -R
I am surprised no one mentioned this but it seem that the command you are using is slightly wrong for the purpose. The correct command should be
I prefer to always use * when I am trying to rm something from the trash. The "-R" flag indicates removal of empty directories while the "-r" flag will delete the contents of a directory, then the directory itself. Ran into this problem until in did a man on rm and figured out how the flag worked.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|