Recycle bin not getting created

  • Hello together.


    I successfully setup a OMV Server. For testing the share behavior, i plugged in a usb stick. in OVM i created the fs etc. Iam also able to mount it from my Windows PC.

    I also enabled the recycle bin option. When i delete an file now, it still is getting deleted instead of moving it to "/srv/sharefolder/.recycle/user".


    after taking a look via ssh i recognized, there isnt any .recycle folder getting created. I really can't figure out why it wont work. maybe someone can help me in that case please?


    Thx in advance

    Greetings Caaruzo

  • Are you sure you are looking in the correct location? Also files and directory names that begin with a dot are hidden unless the tool you are using to view the location has this capability enabled - have you accounted for this?

    --
    Google is your friend and Bob's your uncle!


    RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.


    OMV 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • Yes, iam on the correct location.


    The path iam visiting has the same content like the mounted Windows one.

    iam also aware of the hidden file thing. using -la option for this ofc.

    Code
    root@testsrv01:~# cd /srv/dev-disk-by-label-STICK/stick/
    root@testsrv01:/srv/dev-disk-by-label-STICK/stick# ls -la
    insgesamt 12
    drwxrwsr-x+ 3 root root 4096 Mär 25 13:14 .
    drwxr-xr-x 4 root root 4096 Mär 25 11:11 ..
    -rwxrw-r-- 1 testuser users 0 Mär 25 11:16 'Neues Textdokument.txt'
    drwxrwsr-x+ 2 root testgrp 4096 Mär 25 13:13 Test
  • The .recycle directory is created in the root of the SMB/CIFS shared folder. It is created only then when a file is deleted.

    Additionally, the file must be deleted via a CIFS/SAMBA connection to the share.

    --
    Google is your friend and Bob's your uncle!


    RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.


    OMV 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • If you execute testparm in a shell you can check the current Samba settings. If the recycle bin is enabled, something like vfs objects = recycle and recycle:repository = /path/to/recycle bin/directory in the [global] section must be contained there.


    Edit: This can also be a per share setting. Then you should find the entry in the respective share section.

    OMV 3.0.99 (Gray style)
    ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304

    Edited 2 times, last by cabrio_leo ().

  • yes its there. Already checked that.


  • recycle:maxsize = 0

    Nice setting! Every file you have is greater then 0 byte I assume:)Therefore it is not put into the recycle bin. I would suggest to remove this setting or to define a more useful value.


    Explanation samba.org:

    recycle:maxsize = BYTES

    Files that are larger than the number of bytes specified by this parameter will not be put into the repository.

    OMV 3.0.99 (Gray style)
    ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304

  • i know but 0 means no size restriction. Also tryed it with 1000000000 bytes (1GB).


    Created and deleted a text file. Still no recycle folder :/


    edit: and removing wont work ofc, cause all settings that are made manually will be overridden on save share settings in omv^^

  • edit: and removing wont work ofc, cause all settings that are made manually will be overridden on save share settings in omv^^

    You should not edit smb.conf directly, always use the "extra options" field of the SMB/CIFS settings or of the Samba share settings.


    So maybe "0" ist the default setting indeed, if you haven´t made this entry by yourself.

    In this case everything seems to be OK and deleted files should be moved to the recycle bin.
    So I´m out of ideas.

    OMV 3.0.99 (Gray style)
    ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304

    Edited once, last by cabrio_leo ().

  • You should not edit smb.conf directly, always use the "extra options" field of the SMB/CIFS settings or of the Samba share settings.

    Oh ok, my fault. thx much for that hint :D

    So maybe "0" ist the default setting indeed, if you haven´t made this entry by yourself.

    In this case everything seems to be OK and deleted files should be moved to the reycyle bin.

    Yes it is, its really weird. Hope someone knows a solution for that, cause he maybe had the same issue.

  • I was curious when this thread was created so have followed it through, I have enable the recycle bin on one of my SMB shares and have deleted a file so that the folder ./recycle gets created. I can view this using WinSCP on W10, to get the hidden folder to display on the share under Windows in file explorer, select view on the menu and check Hidden Items for that share, it takes a few seconds for ./recycle to appear but it does work.

  • Well i figure it out now.

    It also works with browsable=no.


    What i all the time have done is the following.


    "/stick" is the share. on this i created an folder. in this folder i deleted a file. it didnt worked all the time.

    for a .recycle folder getting created, the first file need to be created on the share root and deleted there.


    Really weird. But thx much all for ya help.

  • It should also work with a file in a subfolder. I have found out only one thing that deleting an empty folder did not move it to the recycle bin. But that´s no problem for me.

    OMV 3.0.99 (Gray style)
    ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304

  • This is an extract from my smb.conf where recycle bin is working. There is browseable = no and recycle:maxsize = 0 similar to yours.


    OMV 3.0.99 (Gray style)
    ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!