How do i delete something? not even terminal works.

Discussion in 'OS X Mavericks (10.9)' started by Intelligent, Apr 5, 2014.

  1. Intelligent macrumors 6502a

    Intelligent

    Joined:
    Aug 7, 2013
    #1
    So i wanted to check os x installer to which version it was, so opened it and got through the dialogs, but i choosed to install it on my SD-card, but then later canceled the installation because i found out i couldn't see version that way, basically unfinished files are my SD-card like
    .OSInstallSandbox-tmp
    .OSInstallMessages

    tried rm /path/to/file
    Says its not a directory okay lets use -rf

    rm -rf /path/to/file
    gives me an error, okay lets use sudo

    sudo rm -rf
    Gives me weird errors like "directory is not empty"
    "invalid argument"
    "input/output error"

    What should i do? Is there anyway to delete them without formatting? :/
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    Are you sure you have the path correct? If this is on an SD card your path will be something like:

    Code:
    /Volumes/nameofSDcard/path/to/file
     
  3. Intelligent thread starter macrumors 6502a

    Intelligent

    Joined:
    Aug 7, 2013
    #3
    Yes i have dragged and dropped. Any other thoughts?
     
  4. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #4
    Hmm... do you get an error message with this?

    Code:
    sudo rm -rf /Volumes/nameofSDcard/path/to/file
     
  5. Intelligent thread starter macrumors 6502a

    Intelligent

    Joined:
    Aug 7, 2013
    #5
    sudo rm -rf /Volumes/Untitled/.Trashes/501/OSInstallSandbox-tmp

    This is the exact thing, copied from terminal when i press enter it doesn't give me the usual

    ~Macbook~Pro~15
    Or whatever the name of your computer, nothing happens.
    Some minutes later the Macbook-Pro-15.~ popped up but it says rm: fts_read:

    So now i tried going inside the folder and deleting stuff and it gives me this
    rm: /Volumes/Untitled/.Trashes/501/OSInstallSandbox-tmp/Root/System/Library/Security: Directory not empty
     
  6. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #6
    So pull the files you want to keep off the SD-card, then use Disk Utility to reformat it.
     
  7. Intelligent thread starter macrumors 6502a

    Intelligent

    Joined:
    Aug 7, 2013
    #7
    Yeah i asked if there was a way to do it without reformatting it, so your answer didn't really help.
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    It looks like you already deleted everything from the SD card and now the files are just sitting in the hidden .Trashes folder on the SD card. Normally if you still have the card plugged in and just empty trash they will go away. Did that not work?

    Try this to force that trash to empty.

    Code:
    sudo rm -rf /Volumes/Untitled/.Trashes/
     
  9. Bruno09 macrumors 68020

    Joined:
    Aug 24, 2013
    Location:
    Far from here
    #9
    Just in case : Onyx is very good at forcing the trashes to empty.

    ("Maintenance" from the same developer does the same job in this case, and is easier and safer to use).
     
  10. Intelligent, Apr 5, 2014
    Last edited: Apr 5, 2014

    Intelligent thread starter macrumors 6502a

    Intelligent

    Joined:
    Aug 7, 2013
    #10


    I have always had the card plugged in but when i empty it just gives me this error "-50" and your command gave me the "directory is not empty" error

    EDIT: i finally got it working by using sudo rm -rf on files inside, which didn't work before, it gave me the directory is empty error but it still worked, and now i have 12k files which i can empty through trash.
     
  11. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #11
    Ackk... do you think something in that trash is still running on the system and hence won't delete?

    Try Bruno's suggestion. If that won't work try a command-r boot to recovery and run the command I gave you from Terminal there. You can find Terminal in the Utilities menu in recovery.
     

Share This Page