Remove .trashes and Spotlight folders?

Discussion in 'OS X Mountain Lion (10.8)' started by mavis, Aug 18, 2012.

  1. macrumors 68040

    mavis

    Joined:
    Jul 30, 2007
    Location:
    Tokyo, Japan
    #1
    Does anyone here know how to remove the hidden folders Mac OS X creates on thumbdrives, namely the .trashes folder and Spotlight folder? I'm trying to update my Japanese TV using a flashdrive, but it's complaining about the software update not being the only thing on the drive. I've reformatted twice and the only thing other than the software update file are those folder OS X creates automatically. I don't have a Windows machine to connect to, so what other ways are there to delete those hidden, system folders?
     
  2. thread starter macrumors 68040

    mavis

    Joined:
    Jul 30, 2007
    Location:
    Tokyo, Japan
    #2
    Judging from the lack of replies, I'm guessing this can only be done in Windows?
     
  3. macrumors newbie

    Joined:
    Jun 29, 2012
    #3
    The way I take care of that is by having BlueHarvest installed. It also removes the Thumbs.db (Windows) and other annoying files and folders. There are other alternatives as well.
     
  4. macrumors 604

    Joined:
    Mar 26, 2008
    Location:
    West Suburban Boston Ma
    #4
    I remember reading a thread talking about how to do this, but can't for the life of me remember how to do it. Try searching the forum..should be possible to find it...can't be more than a few months back.
     
  5. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #5
    Open Terminal, type cd /Volumes/<your thumb drive> and type:

    rm -rf ._.Trashes .Trashes/ .Spotlight-V100/ .fseventsd/

    Eject and use the thumb drive. The next time you plug in the drive those items and folders will be recreated
     
  6. thread starter macrumors 68040

    mavis

    Joined:
    Jul 30, 2007
    Location:
    Tokyo, Japan
    #6
    That did the trick. Thank you for your help! :)
     
  7. macrumors 6502a

    dcorban

    Joined:
    Oct 29, 2007
    #7
    Since Leopard, OS X comes with a utility called dot_clean. Just open terminal and run dot_clean to see the parameters.
     
  8. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #8
    dot_clean doesn't get rid of .Trashes and the other OSX created files and directories. In this case it will just merge ._.Trashes with .Trashes
     
  9. macrumors 6502a

    dcorban

    Joined:
    Oct 29, 2007
    #9
    I specifically used dot_clean to remove the trash files from my SD card. I have a cheap DS flash cart that, for whatever reason, continues to show files and folders I have deleted in its menu. I guess the menu shows hidden files and scans the entire card without regard. I have used dot_clean many times to remove the trash folder and its contents. I didn't do anything fancy, and it did remove the trash files and folders.
     

Share This Page