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 ≈:≈