Can't Delete Files in Trash after SSD install

Discussion in 'macOS High Sierra (10.13)' started by Rontro809, Mar 19, 2018.

  1. Rontro809 macrumors newbie

    Joined:
    Mar 16, 2018
    #1
    I have recently added an SSD External drive to my Mac Mini (Late 2014). I connected the drive via ThunderBolt II. I used Carbon-Copy to move the OS and data to the drive. I then renamed it and changed the system start-up disk using System Preferences. I moved a lot of the large data files to the Internal drive and renamed the system folders to avoid any confusion. I noticed that the SSD was running a bit warm, so even bought a small fan for it and it is now running quiet and cool. Everything went surprisingly well. The speed increase was impressive and I only had to deal with some minor setting issues. At first Google Drive was confused, but after resetting that it worked perfectly as well.

    I left the internal drive alone until now. I decided to delete the old system files rather than reformat the drive. I have some 500 GBs in stored video and audio files. I moved the old system files into the trash and ran the delete option. It mostly worked fine, except it left some folders behind. The error message said that these folders "Libary" and "Del3" is in use. I have tried to reboot, put them back, and other suggestions I found here at MacRumors. But these files are stuck in the trash.

    Any Ideas?

    -Ron
     
  2. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #2
    The command "lsof" followed by any file you want to have a closer look at, will show you any and all processes that use a file
     
  3. BLUEDOG314 macrumors 6502

    BLUEDOG314

    Joined:
    Dec 12, 2015
    #3
    Always be careful, but the good ole 'sudo rm -rf ~/.Trash/*' should do the trick.
     
  4. Rontro809 thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #4
    What should I be careful of?
     
  5. Honza1 macrumors regular

    Joined:
    Nov 30, 2013
    Location:
    US
    #5
    Not necessarily,
    system protection prevents deleting some of the system files and it is pretty much impossible to delete them for user with any privileges. In the two cases where I had these problems I ended up reformatting the drive. I tried even as super root using all command line tricks I could find, gave up after few hours of trying. Reformat and restore was simply faster and easier.
    Side note: same happens today with Windows, some system files are so protected, that they simply cannot be deleted with whatever credentials you can get as human. Interestingly, these are really weird files, not the ones one would expect.
     
  6. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #6

    You can turn off System Integrity Protection
     
  7. Rontro809 thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #7
    I tried this and it didn't work. :(

    -Ron
     
  8. Fishrrman macrumors P6

    Fishrrman

    Joined:
    Feb 20, 2009
    #8
    OP, try this:

    1. Boot from your EXTERNAL drive (as you're doing now).
    2. Get to the desktop
    3. Click the icon of the INTERNAL drive ONE time to select it
    4. Type "command-i" to bring up "get info"
    5. At the bottom, there's a lock icon -- click it and enter your administrative password
    6. In "sharing and permissions", put a checkmark into "ignore ownership on this volume"
    7. Close get info
    8. Try deleting whatever you wish from the internal drive now.

    Any change?
     
  9. Rontro809 thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #9
    I did exactly what you said and sadly the files remain in the trash bin.
    -Ron
     
  10. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #10

    Did you ever try the lsof command to see what macOS thinks is using the files?
     
  11. Rontro809 thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #11
    No. I was going to ask how to do that? Is that a Terminal Command? What is the format? I tried in the terminal and it said it was not a valid command.
     
  12. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #12

    Syntax is

    "lsof"
    outputs list of open file descriptors with processes

    "lsof [process ID]"
    Outputs a list of open file descriptors belonging to that process ID

    And the one you want

    "lsof [file path]"
    Lists processes accessing this file


    I've attached a screenshot of the head of its man-p Screen Shot 2018-03-20 at 5.23.48 PM.png age.
     
  13. eugenios macrumors newbie

    Joined:
    Jun 30, 2017
    Location:
    Italy
    #13
    Which enclosure?
     
  14. Rontro809, Mar 21, 2018
    Last edited: Mar 21, 2018

    Rontro809 thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #14
    Monster Digital Overdrive Thunderbolt 240 GB

    -Ron
    --- Post Merged, Mar 21, 2018 ---
    ISOF didn't report anything. It appears that these are empty folders and have no files in them that I can find.

    Screen Shot 2018-03-21 at 9.34.30 AM.png
     
  15. jbarley macrumors 68040

    jbarley

    Joined:
    Jul 1, 2006
    Location:
    Vancouver Island
    #15
    Maybe try this, a modification of a previous suggestion

    in a Terminal window type
    sudo rm -rf
    (there is a space after the "rf")
    now click on the trashcan icon to open the Trash folder, next drag & drop the file to be deleted into the Terminal window to complete the command and press enter.
    Enter your password and cross your fingers.;)

    This system has always worked for me.
     
  16. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #16

    That's not meant to be an i but a lower case L. As in LiSt Open Files
     
  17. Rontro809 thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #17
    I have tried everything listed in this thread and these empty folders won't go away. If I go in and use the delete immediately command they actually disappear and then come back on their own. I created a new account on the computer and the new trash can is working fine with nothing in it. I am left with two options as far as I can tell:

    Option 1: Migrate over to the new account and when everything is working, delete the old one.

    Option 2: Copy the files on the internal hard drive and reformat it. I don't have an external drive with enough space on it so this would have to wait for a bit.

    What do you think?
    --- Post Merged, Mar 23, 2018 ---
    OM This worked! I didn't see this until now. I have no idea why, but this did the trick all of the files are gone and things have returned to normal.

    Thank you for all the support guys!

    -Ron
     
  18. jbarley macrumors 68040

    jbarley

    Joined:
    Jul 1, 2006
    Location:
    Vancouver Island

Share This Page