Lacehim

Members
  • Posts

    259
  • Joined

  • Last visited

Posts posted by Lacehim

  1. Thanks everyone!  I updated, and then went to watch a show and no plex server!  Argh!

    I have to admit I'm slack these days at updating (too many projects on the go like 3D printing and Christmas light displays) so this saved me a ton of fiddling.  Also discovered a great new app on that youtube video for moving files., Krusader!  That made the task a lot easier! :)

  2. Thanks.  I tried a Pre-clear with the plugin but unraid needed the unassigned and it all started to get a bit complicated with them being assigned to the array. :)

    In the end I pulled the usb, used parted magic erase disk which I use a lot, so I know how it works.  https://partedmagic.com/secure-erase/

    It's probably just a fancy ui fror hdparm UhClem because it erases at the hardware level so no load on the system at all, which is sweet. :)  Takes about 240-338mins per drive and it can clear all 5 at the same time.  I'll test a drive with a recovery program afterwards, and if all clear I'll sell it.

    Not worth that much with drives with 3 years running time, but better than cluttering up my cupboard. :)

     

    Thanks for the help everyone.

  3. Well I'm not talking about formatting the drive.  You can still recover data after doing that.

    I'm talking about using Parted Magic which has an Erase program on it.  It erases from the hard drive internally.  Takes hours, but it's supposed to be secure.

    I use it to repurpose drives and wipe ssd's on regular desktops.

    Preclearing erases a few times doesn't?  It's been a while since I used it.  So that might be just as good and I can just set it off doing it's thing.  So I'll just do that. :)

  4. Hi,

     

    I haven't been on here for a while :) Nice new forum!  Just goes to show how reliable my Unraid system has been.  Zero downtime!  Yay.

     

    I've decided to move on my old HP N40L with 4x2Tb drives.  I've replaced it with a HP G8 running 4x3Tb drives a few years ago, and I only used the N40L for backups.

    The drives are full of data.  I would like to sell it with the drives intact, erased.

    Am I better to do a full pre-clear on all the drives, or just erase them at hard drive level in parted magic?

    I will be selling it as a bare system so the new owner can do what they want with it and keeping my unraid licence as a backup or if I decide to make a bigger array later on if I outgrow the G8.

     

    TIA

  5. 33 minutes ago, Lacehim said:

    Is there a reason why this isn't working on some shares?

     

    I have nothing in excluded shares, but for some reason nothing is recycled in "Backups" but in "Documents" it is.  It's a bit strange.

     

    Figured it out.  Permissions was set as root, so ran the permissions script and it's working like a charm now.  Phew.

  6. Hi,

     

    I built myself a new server ages ago on V6 and put a cache drive in for the first time (I was using a self mounted apps drive).  I copied all my data over from my old server (now my backup) and installed docker and plugin apps.  Works great.

     

    The only issue I have is a permissions issues.  I've created a .apps folder and put all my docker apps data in separate folders, but I can't edit, or delete or anything on the cache drive.  It says I need permission from nobody to delete a file for example (that using Win 7 in explorer to delete).

     

    If I run the permissions script on the cache drive it fixes it, but anything new downloaded has the new permissions from nobody error.  It's it a little annoying.  The array is fine, and I have no permissions issues with it at all.

     

    Is there a way to fix this permanently?  Seems to be that there's a setting somewhere that's giving new files the wrong permissions on the cache drive only.

     

    Thank you.

  7. Installed fine as an update.  The RecycleBin folder didn't show anything when I accessed via Explorer after deleting a files or 2.  In the plugin settings it said it had 20kb which was a few test files I was deleting so they were there, just not visable.  I had to manually change permissions for for that folder and they magically appeared.

     

    My Windows 10 laptop however can't access the RecycleBin folder at all.  Looks like it trying to connect as a domain instead of the Workgroup its set to.  :(  All other shares are accessible, and I can access it perfectly fine with my Windows 7 machine.  Grrr.  My feeling is that this is a Windows 10 issue, good old MS.

     

    I noticed in the extra folder that it's setting permissions to 777, is this working?

     

    Great work though dlandon!  Quick work too!  Really appreciated!

  8. Here's the smb-extra.conf off my 6.0.1 running the hacked plugin

     

    [global]
    security = USER#vfs_recycle_start
    #Recycle bin share
    [RecycleBin]
    path = /mnt/user/.Recycle.Bin
    read only = No
    
    #vfs config
    # Documentation http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
    # Forum topic http://lime-technology.com/forum/index.php?topic=5446.0
    # %S Samba share name (which in unRaid equals the user share name), eg. Storage
    # %P User share full path, eg /mnt/user/Storage
    # %u Username of the current service, if any
    # To apply changes execute: /etc/rc.d/rc.samba restart
    # If the single custom bin solution is chosen, create the dir manually, and grant it g+rwx permissions
    
    [global]
    vfs objects = recycle
       recycle:repository = /mnt/user/.Recycle.Bin
       recycle:directory_mode = 0777
       recycle:keeptree = Yes
       recycle:touch = Yes
       recycle:touch_mtime = Yes
       recycle:versions = Yes
       recycle:exclude = *.tmp   
       recycle:exclude_dir = .Recycle.Bin
    acl allow execute always = yes
    #vfs_recycle_end

     

    And the new v6.1 plugin code

    #vfs_recycle_start
    #Recycle bin share
    [RecycleBin]
    path = /mnt/user/.Recycle.Bin
    read only = No
    
    #vfs config
    # Documentation http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
    # Forum topic http://lime-technology.com/forum/index.php?topic=5446.0
    # %S Samba share name (which in unRaid equals the user share name), eg. Storage
    # %P User share full path, eg /mnt/user/Storage
    # %u Username of the current service, if any
    # To apply changes execute: /etc/rc.d/rc.samba restart
    # If the single custom bin solution is chosen, create the dir manually, and grant it g+rwx permissions
    
    [global]
    vfs objects = recycle
       recycle:repository = /mnt/user/.Recycle.Bin/%P
            recycle:keeptree = Yes
            recycle:touch = Yes
       recycle:touch_mtime = Yes
            recycle:versions = Yes
            recycle:exclude = *.tmp   
            recycle:exclude_dir = .Recycle.Bin
    acl allow execute always = yes
    #vfs_recycle_end

  9. Also, to the person who asked about keeping the directory hierarchy...

     

    It might one of the following 2 options. This is an excerpt from my manually configured recycle bin, using /mnt/user/BIN/ structure. The "%m" means to use the machine name of the client, so this way I know which system did the delete, which is enough for me to know who did what. This does keep the directory hierarchy when files are deleted.

     

    [global]
    
    vfs objects = recycle
    recycle:repository = /mnt/user/BIN/%m
    recycle:keeptree = Yes
    

     

    That's the one BRiT :)  I knew it was somewhere!  It seems to have disappeared from the plg that installs to the smb-extra.conf file.  It's pretty important to is stores files differently if called the same on different shares.

  10. Hi dlandon,

     

    I tested this on my 6.1 backup system.

     

    It installed, and the settings are selectable and the recycle bin empties fine.  I also clean installed it by removing the entries from smb-extra.conf and the old plg in files and backups.  When it was installed I had to manually press enable, and SMB seemed to get trashed in the process but I stopped and started the array and all back to normal.  It's better than the hacked to work version I was using now anyway!  Great job! :)

     

    One thing not working is that when I trash a file called test.txt in a Backups folder it ends up in the recycle bin as test.txt.  Previously it kept the folder structure /mnt/user/Backups/test.txt which is require IMO.  I remember seeing a setting someone, might have been in the plg about maintaining folder structure.

     

    Keep up the good work!  You've made my day!

     

     

     

     

  11. Cheers dlandon.  A number of users are keen to get this up and running, but none of us have the knowledge to fix it and make it workable.  Influencer is very busy and it's been left to it's own devices with people patching issues here and there.

     

    Happy to beta test it on my 6.1 backup system. :)

     

    It worked on 6.01 BUT the plugin part wasn't functional for settings etc.  The actual recycle bin worked ok.

     

    In 6.1 it was still installed, but only the folder structure was recycled, the files weren't.  I also tried just putting the code into the additional smb-extra.conf after removing the plugin and it still wouldn't work.

     

    It's a function that is lacking as a core option in unraid IMO.  I lost lots of data back in the 4.7 days when windows explorer lagged while I was deleting a folder and poof, data gone!  Lesson learned, I have backup unraid system that I manually sync now but I was a little naive back then! :)

  12. I was just about to start a new thread myself! :)

     

    Someone really needs to take this under their wing to get it running smoothly.  Even under 6.0.1 it was always enabled, and you couldn't update the settings.

     

    I want to upgrade, but this plugin is holding me back.  I can't live without a recycle bin with a family all accessing the server!!!!

     

    Someone please help!  Please!  Pretty Please!  With sugar on the top!!!!  Did I say please?????