Portal   Forum   Members   Market   Gallery   Events

can't trash folder

Discussion in 'Help Forum' started by Kaeric, Jul 29, 2004.

  1. Kaeric

    Kaeric Peasant

    Joined:
    Apr 10, 2001
    Messages:
    1,850
    Likes Received:
    4
    Market Rating:
    0
    So one day I went to trash some files I didn't need anymore and I get an "operation cannot be completed because you do not have sufficient privileges for some of the items" error. I can click continue a bunch of times and everything gets deleted except for a folder called Macinnktosh. I assumed that the folder was just locked and tried dragging it onto my desktop. I checked the info, but it wasnt locked and when I threw it back into the trash i just ended up with two macinnktosh folders which I can not get rid of. This is actually my fathers computer, but he cant remember where the folder came from either. Any ideas?
     
  2. Elbereth

    Elbereth MSC Commander and Donator

    Joined:
    Jun 17, 2000
    Messages:
    3,356
    Likes Received:
    14
    Market Rating:
    0
    Try this:

    Open a terminal.
    Type the bold stuff:

    [Gregory-Hammonds-Computer:~] ghammond% cd .Trash
    [Gregory-Hammonds-Computer:~/.Trash] ghammond% sudo rm -rf *

    Type an Administrator password at the prompt.

    This will get rid of everything quite often.

    edit: Just to make sure, do an ls -lart once you have cd'd into the .Trash. This will show you everything in that folder.
     
    Last edited: Jul 29, 2004
  3. Kaeric

    Kaeric Peasant

    Joined:
    Apr 10, 2001
    Messages:
    1,850
    Likes Received:
    4
    Market Rating:
    0
    [s-Computer:~] dd% cd .Trash
    [s-Computer:~/.Trash] dd% ls -lart
    total 0
    drwxrwxrwx 3 dd staff 102 Dec 16 2003 Macinnktosh
    drwxr-xr-x 20 dd staff 680 Jul 25 21:29 ..
    drwx------ 3 dd staff 102 Jul 28 20:38 .
    [s-Computer:~/.Trash] dd% sudo rm -rf *

    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these two things:

    #1) Respect the privacy of others.
    #2) Think before you type.

    Password:
    [s-Computer:~/.Trash] dd% sudo rm -rf *
    sudo: No match.
    [s-Computer:~/.Trash] dd%
     
  4. harleyb

    harleyb Peasant

    Joined:
    Aug 12, 2002
    Messages:
    866
    Likes Received:
    9
    Market Rating:
    0
    why did you do it twice?
     
  5. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    If you did in fact do it twice and what you copied here is exactly what happened then that makes sense. After the first time it should be gone and then there would be nothing to delete. Is it still there? If you can't rm -f a file as root then there'd have to be something way screwed up. OS X uses UFS doesn't it? Maybe the journal is jacked.
     
  6. Kaeric

    Kaeric Peasant

    Joined:
    Apr 10, 2001
    Messages:
    1,850
    Likes Received:
    4
    Market Rating:
    0
    I thought I typed everything as Elb instructed (I posted it above so let me know if i did something wrong), but the folder is still there.
     

Hitometer: 53,849,631 since 1995