You are not logged in.

#1 2014-06-09 17:19:58

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

[Solved] Samba: Windows clients complain about recycle bin corruption

I have a few samba shares located on an NTFS partition mounted as

UUID=CC6AB0826AB06ABA   /data   ntfs-3g gid=users,umask=000     0       0

I can access them fine, as well as copy/move/delete files, but every time I go to the share from a windows PC (2x win8.1, 1x win7 clients), I get the following message

The Recycle Bin on \\Server\share is corrupted. Do you want to empty the Recycle Bin for this drive? y/n

No matter what I answer, the message will pop up the next time I access the folder. Here is my smb.conf

[global]
  usershare path = /var/lib/samba/usershare
  usershare max shares = 100
  usershare allow guests = no
  usershare owner only = False
  workgroup = HOMENET

# attempt at speed optimization
 socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 IPTOS_LOWDELAY TCP_NODELAY
 min receivefile size = 16384
 use sendfile = true
 aio read size = 16384
 aio write size = 16384

# server string is the equivalent of the NT Description field
   server string = Server

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = no

# this tells Samba to only use the system logger
    syslog only = yes 
# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast
name resolve order = lmhosts bcast host wins

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy = no 

#============================ Share Definitions ==============================
# NOTE: If you have a BSD-style print system there is no need to 
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

running testparm checks out fine. Newest samba version is installed. The message also appeared before my attempt at speed optimizations. Any ideas how to get recycler working on samba properly?

Last edited by Soukyuu (2014-06-10 20:55:21)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#2 2014-06-10 18:28:13

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 444

Re: [Solved] Samba: Windows clients complain about recycle bin corruption

At your own risk:

It seems to me, that if you delete the $Recycle.Bin folder on any Windows partition, on the next reboot it will be recreated (and empty, and clean).
I've never tried it on a network share, but I'm 90% sure your problem is not samba but ntfs related.

(I'm courious about the origins of your ntfs partition...)

Last edited by scar (2014-06-10 18:29:28)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#3 2014-06-10 20:55:02

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: [Solved] Samba: Windows clients complain about recycle bin corruption

Deleting the recycle.bin from the share didn't seem to do anything. I thought it was just being recreated, but looking at the partition on the linux "server" via vnc, the recycle.bin folder was still there untouched even thought explorer didn't list it. Deleting it from the "server" seems to have solved it, though.
The NTFS partition is an external HDD which I used before converting the htpc to linux. I'm going to wait and see and if everything works fine, I will probably convert it to a linux-native format to get rid of ntfs-3g.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

Board footer

Powered by FluxBB