Deleting files from an external drive in lion 10.7.3
Why when i delete a file from an external drive the file bypass the trash can an gets deleted ?
MacBook, Mac OS X (10.7.3), 4 gigs of ram
Apple Event: May 7th at 7 am PT
Why when i delete a file from an external drive the file bypass the trash can an gets deleted ?
MacBook, Mac OS X (10.7.3), 4 gigs of ram
Where do I input this seach in the drive or finder I tried both nothing comes up !
I alluded to that in my post, i.e., that was the syntax you would use in your Terminal (shell).
I did that no file to be found ! terminal says no such file.
The full terminal command would be,
ls -la /Volumes/volumeName/.Trashes/$UID/
If it shows nothing (other than '.' and '..') you have nothing in that .Trashes folder.
Terminal Says : No such file or directory !
I am guessing you took me literally when I said earlier "where volumeName is the name of the mounted volume" and actually typed the word volumeName. Type the actual name of your mounted volume. If it is named, say, "dlabc563" type that for volumeName.
If you did type the proper filename and you are still getting "No such file or directory" then you typed some other part of command wrong because that syntax is correct.
But for the sake of completeness, if your volume name has some special characters in it like blanks then you need to quote the volumeName.
ls -la /Volumes/"volumeName"/.Trashes/$UID/
So if your volume name is, for example "dlabc 563" (i.e., with a space in it) you would use,
ls -la /Volumes/"dlabc 563"/.Trashes/$UID/
Note the explict quotes.
Yes I did type the name of the volume but did not use quotation marks if name has spaces. Do I also use quotation marks if user name has spaces in it ? The first part of the syntax is it an i or an l or the number 1 ?
Sorry I am not an expert with the terminal !
I'm not exactly sure what this exercise is about, or why...
But if you want to see the .Trashes file on an external drive the easiest way is to show all invisibles and it will be right there on the top level of the drive.
For that all you need to do is copy/paste this commnd in Terminal and press return.
defaults write com.apple.finder AppleShowAllFiles True; killall Finder
But since the output from a previous command was that the folder did not exist, I would believe it.
However you may have fun looking through the entire hidden hierarchy.
When you get tired of it...
defaults write com.apple.finder AppleShowAllFiles False; killall Finder
I was trying to figure out how to delete files from my external drive connected to my airport extreme without being deleted right away, instead of going to the trash on my laptop.
Will the script that you are suggesting accoplish that ?
dlabc563 wrote:
Yes I did type the name of the volume but did not use quotation marks if name has spaces. Do I also use quotation marks if user name has spaces in it ?
All this back and forth on a simple command line!😟
Yes, names with spaces get enclosed with quotes. There is no user name in the command I mentioned.
The first part of the syntax is it an i or an l or the number 1 ?
Sorry I am not an expert with the terminal !
It's an "ell". And it's an "ell" after the dash. Just copy/paste this: ls -la followed by a space followed by the rest.
And if that doesn't work I give up. Turn on finder invisibles as suggested above.
Thanks for all your the info . I give up also ! I tried every thing you mentioned nothing works still do not see trash in external drive and it still deletes without going to the trash first.
Thanks.
Regards
FYI.
Take a look at this article. Thanks
http://www.mikesel.info/show-hidden-files-mac-os-x-10-7-lion/
dlabc563 wrote:
So what is the solution . I do not understand what CT is saying ? Is it a problem with my setup or is it just the way an external drive connected to an airport extreme supposed to behave ?
The solution is NOT to delete files off that drive unless you REALLY want them GONE.
Try using the 3-4 inches between your ears before you delete something. That goes for everything not only files on that Network Attached Storage drive.
Yes it is working exactly the way it is supposed to work.
That type of comment is not called for, obviously you are not using the 0 - 0 inches between your ears before you make comments !!!!!
Sorry If I offended you but it is the truth.
Have a good day.
Deleting files from an external drive in lion 10.7.3