7 Replies Latest reply: Jan 31, 2008 3:07 PM by petrock
SimonPhotographic Level 1 Level 1 (0 points)
I have two empty folders (both contain 0 k)in my trash that won't delete. They're not locked and on the Get Info page for each of them it says I have permission to read and write. I've tried Secure Empty Trash, holding down the Option key, re-booting, running disc permission repair from both the computer and the start up disc.
I'm out of ideas.
Any help out there?

G5 Tower, Mac OS X (10.5.1)
  • petrock Level 3 Level 3 (975 points)
    launch /Applications/Utilities/Terminal.app and type:

    lsof <path to problem folder>

    and paste the results in a reply and post it up. You can get the path by drag/dropping the folder to the terminal window.
  • SimonPhotographic Level 1 Level 1 (0 points)
    It says:

    -bash: syntax error near unexpected token `newline'

    Thanks for helping with this. I know it's a minor thing, but it's annoying...
  • petrock Level 3 Level 3 (975 points)
    Looks like you entered an invalid character. Instead of copy/pasting the command, just type it manually, then drag/drop the folder in your trash to the Terminal window to get the path. Note: you shouldn't enter the <path to problem folder> text, that is just a place holder to tell you where to put the path to the problem folder (i.e. ~/Trashes/ProblemFolder).
  • SimonPhotographic Level 1 Level 1 (0 points)
    Okay, I think I got it right this time. This is the response I got:

    Volumes/LACIE/.Trashes/501/erica\ marco
    -bash: isof/Volumes/LACIE/.Trashes/501/erica marco: No such file or directory

    Thanks again...
  • petrock Level 3 Level 3 (975 points)
    Close...

    Its lsof, not isof (its a lower case 'ell', also there needs to be a space between lsof and /Volumes
  • SimonPhotographic Level 1 Level 1 (0 points)
    Wow, you have the patience of a saint.
    Okay, I tried it again. Here's the entire window:

    Last login: Thu Jan 31 12:59:24 on ttys000
    Franks-G5:~ franksimon$ lsof /Volumes/LACIE/.Trashes/501/erica\ marco

    I'll understand if this is getting a bit old and you don't want to deal with it any longer. I really appreciate the help.
  • petrock Level 3 Level 3 (975 points)
    SimonPhotographic wrote:
    Wow, you have the patience of a saint.
    Okay, I tried it again. Here's the entire window:

    Last login: Thu Jan 31 12:59:24 on ttys000
    Franks-G5:~ franksimon$ lsof /Volumes/LACIE/.Trashes/501/erica\ marco

    I'll understand if this is getting a bit old and you don't want to deal with it any longer. I really appreciate the help.

    Its no problem. I would, however, expect some kind of output from lsof, like:

    Franks-G5:~ franksimon$ lsof /Volumes/LACIE/.Trashes/501/erica\ marco
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    <some app name> 4551 franksimon 22u REG 14,3 1494 805956 /Volumes/LACIE/.Trashes/501/erica\ marco


    Did you press the return key after entering 'lsof /Volumes/LACIE/.Trashes/501/erica\ marco' to run the command?