Page 1 of 1

.Trashes/501 on ZFS drive exists D:

PostPosted: Tue Jan 19, 2016 2:21 am
by Redwolf
Hi everyone!

So I started to realize that even though I delete something in the Finder and I get the warning that the file will be directly deleted, space still seems to fill up fast. It was then that I realized that there's a .Trashes folder on my OpenZFS volume. I tried deleting it in Terminal but getting permission and operations error. In the Finder I go to .Trashes/501 and there's "ghost" folders there. You know, what remains when a move fails. I tried deleting the folders but could only delete all but two of them.

Also these folders are large. I'm worried that they are somehow linked to actual data and if I was able to figure out how to remove them, I'd be deleting files that I didn't mean to delete.

Any help would be great!

I can't figure out how to get the version I have but I updated it about two months ago.

Re: .Trashes/501 on ZFS drive exists D:

PostPosted: Tue Jan 19, 2016 5:47 am
by ilovezfs
You should not try to remove the .Trashes directory itself or any its immediate subfolders like 501.

The files are unlikely linked to anything else. Can you
Code: Select all
cd /Volumes/whatever
mkdir trashes-old
sudo mv .Trashes/501/* trashes-old

Re: .Trashes/501 on ZFS drive exists D:

PostPosted: Thu Jan 21, 2016 1:11 am
by Redwolf
Okay I did that. Can I safely delete what's here? Will it work? It looks like I'll have to change the file permissions though.

Re: .Trashes/501 on ZFS drive exists D:

PostPosted: Thu Jan 21, 2016 4:13 am
by ilovezfs
I think that the grayed-out-ness may be an xattr or Spotlight metadata.

Out of curiosity,

Code: Select all
cd /Volumes/wherever
sudo ls -ldO trashes-old/Pictures
sudo ls -ldO trashes-old/Software
sudo xattr -l trashes-old/Pictures
sudo xattr -l trashes-old/Software
sudo mdls trashes-old/Pictures
sudo mdls trashes-old/Software

Re: .Trashes/501 on ZFS drive exists D:

PostPosted: Thu Jan 21, 2016 10:12 am
by Redwolf
Thank you for your help. Here's the output:
Code: Select all
redwolf:~ sangie$ cd /volumes/wolfsden
redwolf:wolfsden sangie$ sudo ls -ldO trashes-old/Pictures
Password:
drwxr-xr-x+ 4 sangie  staff  - 4 Jun 29  2014 trashes-old/Pictures
redwolf:wolfsden sangie$ sudo ls -ldO trashes-old/Software
drwxr-xr-x+ 7 sangie  staff  - 7 Jan 19 04:08 trashes-old/Software
redwolf:wolfsden sangie$ sudo xattr -l trashes-old/Pictures
redwolf:wolfsden sangie$ sudo xattr -l trashes-old/Software
redwolf:wolfsden sangie$ sudo mdls trashes-old/Pictures
trashes-old/Pictures: could not find trashes-old/Pictures.
redwolf:wolfsden sangie$ sudo mdls trashes-old/Software
trashes-old/Software: could not find trashes-old/Software.