Previous 1 2 Next 16 Replies Latest reply: Jul 22, 2008 11:47 PM by Alexander Price
yanivmuller Level 1 Level 1 (0 points)
i cant empty my trash, when i click empty trash or empty securely the computer makes the sound associated with empting the trash but it doesn't. there is no message and the trash remains full. trying to empty single files or directories didn't work either. my trash has got close to 30 giga of information on it and its hindering my work hlp plz

macbook air, Mac OS X (10.5.4)
  • V.K. Level 9 Level 9 (56,130 points)
    first, please don't try to use "secure empty trash" on 30GB of data. that will take absolutely forever. try holding the option key when emptying trash. also, is any of the stuff you are erasing was trashed from an external drive?
  • yanivmuller Level 1 Level 1 (0 points)
    a. non of the files came from any external device
    b. I've tried using the option key while emptying
    c. also tried, using the command "sudo chflags -R nouchg ~/.Trash" in terminal then empting the trash

    nothing worked
  • V.K. Level 9 Level 9 (56,130 points)
    the last command removes flags on staff in Trash it doesn't empty trash.

    try the following terminal command


    sudo rm -rf ~/.Trash/*

    make sure you copy it correctly. this should delete anything in trash but it will take a long time because your Trash is so huge.
  • yanivmuller Level 1 Level 1 (0 points)
    **-macbook-air:~ **$ sudo rm -rf ~/.trash/*
    Password:
    sudo: unable to execute /bin/rm: Argument list too long
    **-macbook-air:~ **$ sudo rm -rf ~/.Trash/*
    Password:
    sudo: unable to execute /bin/rm: Argument list too long

    still no go, the above is copied from Terminal
  • V.K. Level 9 Level 9 (56,130 points)
    never seen this one.

    let's chack that your rm works normally

    enter this


    mkdir testfolder

    rm -r testfolder

    this will create a folder "testfolder" in your home directory and then remove it with rm. any feedback?
  • yanivmuller Level 1 Level 1 (0 points)
    this works fine. the directory is created and deleted
  • V.K. Level 9 Level 9 (56,130 points)
    then something is wrong with the contents of your trash. do you have some files/folders in there with weird characters in their names? also start disk utility and run "verify disk" on your main hard drive.
  • yanivmuller Level 1 Level 1 (0 points)
    i've moved everything from my trash into testfolder i've created, then i tried deleting testfolder through Terminal this is the message i got:
    yaniv-mullers-macbook-air:~ yanivmuller$ mkdir testfolder
    yaniv-mullers-macbook-air:~ yanivmuller$ rm -r testfolder
    override r-xr-xr-x root/admin for testfolder/Call Of Duty 2 21-07-58/Call of Duty 2 Data/main/iw_15.iwd?
  • V.K. Level 9 Level 9 (56,130 points)
    that file is owned by root with some mighty weird permissions. let's try this then

    sudo chmod -R 777 testfolder

    this will make everything in the testfolder read/write by everyone.

    then run

    sudo rm -rf testfolder


    see if that deletes it. (-f option makes it not ask for confirmation with every file).
  • macjack Level 9 Level 9 (50,625 points)
    maybe try without the trailing backslash?


    sudo rm -rf ~/.Trash




    That command should wipe out the trash and rebuild it without having to delete through it.



    -mj
  • V.K. Level 9 Level 9 (56,130 points)
    i originally gave it as

    sudo rm -rf ~/.Trash/*


    (see my post). The * disappeared in OP's reply because of the forum formatting rules. I think the problem might be that that file mentioned in his last post is owned by root and does not have write permissions by anybody.
  • yanivmuller Level 1 Level 1 (0 points)
    thanks, the last one realy did the trick. but i've noticed that i have some dmg files in my trash, is there a chance that the leopard uses dmg's that are in the trash? my computer is running smoothly, but now i'm afraid that if i will delete things like a divx installer whose sitting there i'll harm the mac.
  • V.K. Level 9 Level 9 (56,130 points)
    no, leopard is most definitely doesn't use any .dmg files. those are archived files that need to be mounted before they can be used. they are usually archives downloaded by you when you had to install something. once you install whatever it is (like your divx) you can unmount the .dmg disk images and delete them.
    make sure you don't need any of them yourself and delete them.
  • yanivmuller Level 1 Level 1 (0 points)
    thanks for all your help v.k.
Previous 1 2 Next