.Trashes/501 on ZFS drive exists D:

We won't tell.

.Trashes/501 on ZFS drive exists D:

Postby Redwolf » Tue Jan 19, 2016 2:21 am

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.
User avatar
Redwolf
 
Posts: 9
Joined: Mon Jun 23, 2014 11:59 am

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

Postby ilovezfs » Tue Jan 19, 2016 5:47 am

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
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

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

Postby Redwolf » Thu Jan 21, 2016 1:11 am

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.
Attachments
Screen Shot 2016-01-21 at 3.09.47 AM.png
Still grayed out though
Screen Shot 2016-01-21 at 3.09.47 AM.png (9.05 KiB) Viewed 16862 times
User avatar
Redwolf
 
Posts: 9
Joined: Mon Jun 23, 2014 11:59 am

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

Postby ilovezfs » Thu Jan 21, 2016 4:13 am

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
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

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

Postby Redwolf » Thu Jan 21, 2016 10:12 am

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.
User avatar
Redwolf
 
Posts: 9
Joined: Mon Jun 23, 2014 11:59 am


Return to Hackintoshes

Who is online

Users browsing this forum: No registered users and 13 guests