1

I have a 9TB RAID 0 comprised of 3x3TB drives. I can't delete some directories that have been moved to the trash.

Volumes/LTO
≈:≈ sudo rm -vrf ./.Trashes/
rm: ./.Trashes//503/c/c: Directory not empty
rm: ./.Trashes//503/c: Directory not empty
rm: ./.Trashes//503: Directory not empty
rm: ./.Trashes/: Directory not empty
/Volumes/LTO
≈:≈

I've changed permissions and tried pretty much everything I know how to remove these without erasing the RAID, which would suck.

Also, the directories, in fact, appear empty by any investigation I can do of them.

/Volumes/LTO/.Trashes
≈:≈ du -h
  0B    ./503/c/c
  0B    ./503/c
  0B    ./503
  0B    .

/Volumes/LTO
≈:≈ sudo rm -vfRPd /Volumes/LTO/.Trashes/
rm: /Volumes/LTO/.Trashes//503/c/c: Directory not empty
rm: /Volumes/LTO/.Trashes//503/c: Directory not empty
rm: /Volumes/LTO/.Trashes//503: Directory not empty
rm: /Volumes/LTO/.Trashes/: Directory not empty
/Volumes/LTO
≈:≈ 

If I try to empty trash via Finder it says "The operation can’t be completed because the item “c” is in use." But, nothing is using the items. I've restarted the computer several times.

/Volumes/LTO
≈:≈ lsof | grep /Volumes/LTO/.Trashes/503/c/

/Volumes/LTO
≈:≈

:(

  • Do you see any hidden files if you were to do ls -la In any of those directories? What about ownership? Does root own the folder structure for the directory and subdirectories of that path? – Richie086 Sep 22 '16 at 1:20
  • I know the raid array I have has a trash feature that clears out deleted files after a certain amount of time. Have you checked to see if there might be a setting in whatever interface you are using to manage your array? – Richie086 Sep 22 '16 at 1:22
  • @Richie086 There are no hidden files. I sudo chown -vR ./.Trashes and I don't use any interface for my RAID, just the Terminal. – NMAAHC MediaLab Sep 22 '16 at 1:27
  • What about going to the /.Trashes//503/c directory and attempt to rm -vrf the /c: folder? Does that produce the same result of the dir not being empty? – Richie086 Sep 22 '16 at 13:51
  • yes it does @Richie086 – NMAAHC MediaLab Sep 22 '16 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.