Page 1 of 1
no trash with samba
Posted: 02 Sep 2015 14:21
by kaos
Hello
I'am newbies whith N4F and i'am french / double excuses
since I installed my NAS, i dont see the trash in my Finder (OSX)
I deleted lots of files but disk space is always the same, I think we should empty the trash, but you must have one
My configuration
Thx for your help
Re: no trash with samba
Posted: 02 Sep 2015 14:45
by crest
kaos wrote:Hello
I'am newbies whith N4F and i'am french / double excuses
since I installed my NAS, i dont see the trash in my Finder (OSX)
I deleted lots of files but disk space is always the same, I think we should empty the trash, but you must have one
My configuration
...
Thx for your help
If the recycle bin is enabled you should find it in the root directory of every share with the directory Name .recycle
Maybe you must enable an Option in Finder to See hidden files / directories (starting with a dot) ...
Re: no trash with samba
Posted: 02 Sep 2015 17:24
by kaos
Hello CREST
unfortunately it appears nowhere
I have another NAS (Dlink) and i see the recycle but not whith my N4F

Re: no trash with samba
Posted: 02 Sep 2015 17:58
by crest
kaos wrote:Hello CREST
unfortunately it appears nowhere
I have another NAS (Dlink) and i see the recycle but not whith my N4F
Just to verify
- the recycle bin on your DLink is a hidden directory which means that you can see hidden files/directories and
- you already deleted files on the specific share

because the recycle bin will be created only with the first deleted file ...
Re: no trash with samba
Posted: 02 Sep 2015 18:57
by kaos
But my N4S was created 2 month left so i already deleted files and i dont find the recycle.
yesterday, I deleted 40Go on a 500TB hard drive and the free space d'ont moove, its suppose i need to clear the recycle but where ?
However i choose the option "crate recycle" in share option
Re: no trash with samba
Posted: 02 Sep 2015 19:36
by Guest
Sorry, don't wanna be rude but you still didn't tell me if finder is setup to show hidden directories ...
But anyway, you could check it also on the system console or in a SSH session, cd to the root of your share e.g.
cd /mnt/your-share-name
and
ls -hal
for the directory list, here you should have a directory named .recycle
... and yes, if you enabled the recycle bin you must delete the files from the bin to have more space on your share.
Regards
crest
Sent from my Lenovo B8000-F with Tapatalk.
Re: no trash with samba
Posted: 02 Sep 2015 19:36
by crest
Sorry, don't wanna be rude but you still didn't tell me if finder is setup to show hidden directories ...
But anyway, you could check it also on the system console or in a SSH session, cd to the root of your share e.g.
cd /mnt/your-share-name
and
ls -hal
for the directory list, here you should have a directory named .recycle
... and yes, if you enabled the recycle bin you must delete the files from the bin to have more space on your share.
Regards
crest
Sent from my Lenovo B8000-F with Tapatalk.
Re: no trash with samba
Posted: 02 Sep 2015 23:49
by kaos
Oh sorry Crest

I did not realize you were expecting it.
i make tests / verifications and I come back.
Thanks a lot for your time
Re: no trash with samba
Posted: 03 Sep 2015 04:41
by daoyama
You can overwrite checkbox by Auxiliary parameters. (and other settings, of course)
First, check Auxiliary parameters is empty. (both Settings and Shares)
Re: no trash with samba
Posted: 03 Sep 2015 13:09
by kaos
hello daoyama,
Auxiliary parameters are empty.
i try Crest solution
Code: Select all
n4f: HomeServer-500Go # ls -hal
total 32834
drwxrwxrwx 6 root wheel 1.0k Sep 3 12:56 .
drwxr-xr-x 5 root wheel 512B Sep 3 12:55 ..
drwxrwxrwx 3 kaos wheel 512B Jun 19 09:39 .recycle
drwxrwxr-x 2 root operator 512B Jun 19 09:36 .snap
-r-------- 1 root wheel 32M Jun 19 09:36 .sujournal
drwxrwxrwx 15 kaos wheel 2.0k Jul 4 19:33 02-Classic SciFi- old_school
drwxrwxrwx 12 kaos wheel 512B Jul 11 23:44 Sauvegardes Séries
n4f: HomeServer-500Go #
The recycle exist but ....
Is it a "right accés" problem like in ftp (chmod) ? i never use it in ssh.
Sorry i'am a real beginner but why it's so difficult to see the recycle ?
Thanks a lot for your help
Re: no trash with samba
Posted: 03 Sep 2015 14:05
by crest
kaos wrote:hello daoyama,
Auxiliary parameters are empty.
i try Crest solution
Code: Select all
n4f: HomeServer-500Go # ls -hal
total 32834
drwxrwxrwx 6 root wheel 1.0k Sep 3 12:56 .
drwxr-xr-x 5 root wheel 512B Sep 3 12:55 ..
drwxrwxrwx 3 kaos wheel 512B Jun 19 09:39 .recycle
drwxrwxr-x 2 root operator 512B Jun 19 09:36 .snap
-r-------- 1 root wheel 32M Jun 19 09:36 .sujournal
drwxrwxrwx 15 kaos wheel 2.0k Jul 4 19:33 02-Classic SciFi- old_school
drwxrwxrwx 12 kaos wheel 512B Jul 11 23:44 Sauvegardes Séries
n4f: HomeServer-500Go #
The recycle exist but ....
Is it a "right accés" problem like in ftp (chmod) ? i never use it in ssh.
Sorry i'am a real beginner but why it's so difficult to see the recycle ?
Thanks a lot for your help
Hi again,
IMHO it's just the problem that finder doesn't display hidden directories, you should find the switch in your Mac desktop (sorry, I don't own one but for sure other Mac users can help with this issue) ...
Re: no trash with samba
Posted: 03 Sep 2015 14:22
by kaos
Hello Crest
I would have liked another solution because it is not beautiful
But i do, this is the screenshot
To see all the files on OSX, we need to open Terminal and tape
Code: Select all
defaults write com.apple.finder AppleShowAllFiles 1
to switch off this fonction
Code: Select all
defaults write com.apple.finder AppleShowAllFiles 0
I would like to make a mounting recycle like a share folder, is it possible ?
anyway, i empty recycle and i have now lot of free space on my HD
How is it on your computer ? do you use samba ?
That realy cool to help me !
Re: no trash with samba
Posted: 04 Sep 2015 12:27
by crest
kaos wrote:Hello Crest
I would have liked another solution because it is not beautiful
But i do, this is the screenshot
...
To see all the files on OSX, we need to open Terminal and tape
Code: Select all
defaults write com.apple.finder AppleShowAllFiles 1
to switch off this fonction
Code: Select all
defaults write com.apple.finder AppleShowAllFiles 0
I would like to make a mounting recycle like a share folder, is it possible ?
anyway, i empty recycle and i have now lot of free space on my HD
How is it on your computer ? do you use samba ?
That realy cool to help me !
Welcome
As expected it was just finder ... Sure I use samba because my clients are Windows based, the only thing I'm wondering about is that you must use the terminal to activate the switch to display hidden files, both in Windows and Linux one can active it via the explorer/file manager in the OS GUI.
Didn't try to create a share for the recycle bin (if I understand your question in the right way) but you can easily try this in the N4F WebGUI. For my it makes not really sense because if you want to recover deleted files you can access them with the above solution, and normally it will not happen very often ...
To get rid of files in the recycle bin you cold use
Extended GUI, I implemented a purge function for samba recycle bins. It's possible to let it run manually, at system startup and/or closedown or as a time schedule.
Within the next weeks I will propose this solution to the developers of N4F as an enhancement for the samba portion of the WebGUI, so you could also just wait for one of the next 10.2.x releases - if the devs like to take it ...

Re: no trash with samba
Posted: 04 Sep 2015 17:36
by kaos
Thank you so much
I might be testing the Extended GUI soon.
Or elese, a french gye give me this solution, i try to night too and I will be back to say if its work.
it would be great if the Dev team can do something in the future
Traduction :
It seems that the folder "recycle" is mounted on your Mac with the attributes "hidden"
This is what I have found if its help you:
laster13 wrote:Il semblerait que le dossier "recycle" soit monté sur ton mac avec les attributs "hidden"
Voila ce que j ai troiuvé si ca peut t aider :
It could be the data has been set with hidden attribute. Possible solution would be to create a map drive on all of your Diskstation's share folder in Windows. Then run the cmd and these command:
1. Z: (if a share folder is assigned to Z drive)
2. attrib -s -h /S /D *.*
This will remove all hidden attribute.
or
On Mac client run the command:
Mount the folder by Finder(for example: GRAPHISME)
Open the terminal of Mac, and run the following command
chflags -R nohidden /Volumes/GRAPHISME/*
see you
Re: no trash with samba
Posted: 02 Oct 2015 08:26
by crest
kaos wrote:
...
it would be great if the Dev team can do something in the future
...
see you
In the meantime I proposed to integrate the code I implemented for cifs/smb purge in the Extended GUI to the devs, maybe they will decide to take it for an upcoming release ...