Files from Windows 10 have meta files with extension Zone.Identifier

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
waldauf
Starting out
Posts: 26
Joined: Sun Oct 08, 2017 2:29 am

Files from Windows 10 have meta files with extension Zone.Identifier

Post by waldauf »

Hello,

in our Czech home, we have one QNAP NAS which is used as a file-sharing server. I use Linux and don't have a problem with saving files through NFS even if contains diacritics. My girlfriend uses Windows 10 with Czech localization. Shared dirs are mounted via SMB protocol. But if she saves some files containing diacritics then these files have broken names because diacritic chars are substituted by � signs and have zero bytes size. Next strange thing is that all files have metafile with these name template: <file_name>:Zone.identifier. What I read this is because W10 has a problem with saving files and this Zone.identifier is some sync metafile. I verified the file encoding type and it's saved in UTF-8 coding.

I checked QNAP setting and tried General Settings > Codepage to set to English or Slavic/Latin2 but nothing helped.

The example of the file's name is attached to this question.

Can I ask you for help?


Additional info:
* FIles is not possible to remove from Linux. Just from W10 or from NAS.
You do not have the required permissions to view the files attached to this post.
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by Mousetick »

Too little information is given.

NAS model?
firmware version?
SMB configuration on the NAS?
NFS configuration on the NAS?
regional settings on Windows client?
regional settings on Linux client?
NFS mount options on the Linux client?
waldauf wrote: Sat May 01, 2021 6:11 pm But if she saves some files containing diacritics then these files have broken names because diacritic chars are substituted by � signs and have zero bytes size.
Where are these filenames displayed? On the NAS filesystem? On the Windows client? On the Linux client?
Next strange thing is that all files have metafile with these name template: <file_name>:Zone.identifier.
This is an ADS (Alternate Data Stream) used by Windows on NTFS to store metadata. Zone.Identifier is created by Microsoft (and maybe others, IDK) web browsers when downloading files from the internet or untrusted networks. The default SMB configuration on current QNAP systems stores ADSes in a hidden directory at the top of the shared folder - they should not appear alongside the file to which it belongs.
I verified the file encoding type and it's saved in UTF-8 coding.
Where?
The example of the file's name is attached to this question.
Where was the screenshot taken?
waldauf
Starting out
Posts: 26
Joined: Sun Oct 08, 2017 2:29 am

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by waldauf »

@Mousetick thank you for your response. You're right - my information was not complete.

QNAP:
  • Moded: TS-253A
  • Firmware: 4.5.3.1652
  • SMB configuration:

    Code: Select all

    [~] # cat /etc/sm
    smart_selftest_blacklist/ smb.conf
    [~] # cat /etc/smb.conf
    [global]
    passdb backend = smbpasswd
    workgroup = WORKGROUP
    security = USER
    server string = NAS Server
    encrypt passwords = Yes
    username level = 0
    map to guest = Never
    max log size = 10
    socket options = TCP_NODELAY SO_KEEPALIVE
    os level = 20
    preferred master = no
    dns proxy = No
    smb passwd file=/etc/config/smbpasswd
    username map = /etc/config/smbusers
    guest account = guest
    directory mask = 0777
    create mask = 0777
    oplocks = yes
    locking = yes
    disable spoolss = no
    load printers = yes
    veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/:2e*/.@__qini/.Qsync/.@upload_cache/.qsync/.qsync_sn/.@qsys/.streams/.digest/
    delete veto files = yes
    map archive = no
    map system = no
    map hidden = no
    map read only = no
    deadtime = 10
    restrict anonymous = 2
    server role = auto
    use sendfile = yes
    unix extensions = no
    store dos attributes = yes
    client ntlmv2 auth = yes
    dos filetime resolution = no
    kerberos method = secrets and keytab
    follow symlinks = yes
    wide links = yes
    force unknown acl user = yes
    template homedir = /share/homes/DOMAIN=%D/%U
    inherit acls = no
    domain logons = no
    min receivefile size = 256
    case sensitive = auto
    domain master = auto
    local master = no
    enhance acl v1 = yes
    remove everyone = no
    conn log = no
    kernel oplocks = no
    min protocol = SMB3_00
    smb2 leases = yes
    durable handles = yes
    kernel share modes = no
    posix locking = no
    lock directory = /share/CACHEDEV1_DATA/.samba/lock
    state directory = /share/CACHEDEV1_DATA/.samba/state
    cache directory = /share/CACHEDEV1_DATA/.samba/cache
    invalid users = guest
    printcap cache time = 0
    acl allow execute always = yes
    server signing = disabled
    streams_depot:delete_lost = yes
    streams_depot:check_valid = no
    fruit:nfs_aces = no
    fruit:veto_appledouble = no
    winbind expand groups = 1
    server schannel = yes
    winbind scan trusted domains = no
    winbind max clients = 2000
    winbind max domain connections = 1
    pid directory = /var/lock
    wins support = no
    host msdfs = yes
    printcap name = /etc/printcap
    printing = cups
    show add printer wizard = no
    winbind enum groups = Yes
    winbind enum users = Yes
    dos charset = ISO8859-2
    vfs objects =  shadow_copy2 catia fruit qnap_macea streams_depot
    server kernel smbd support = no
    
    [Web]
    comment = System default share
    path = /share/CACHEDEV1_DATA/Web
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list =
    write list = "admin"
    valid users = "root","admin"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/Web/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/Web
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:01:22:63
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [Public]
    comment = System default share
    path = /share/CACHEDEV1_DATA/Public
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list = "hp_scan"
    write list = "admin"
    valid users = "root","admin","hp_scan"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/Public/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/Public
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:01:24:05
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [homes]
    comment = System default share
    path = /share/CACHEDEV1_DATA/homes
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users =
    read list =
    write list = "admin"
    valid users = "root","admin"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/homes/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/homes
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:03:20:12
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    
    [__DATA]
    comment =
    path = /share/CACHEDEV1_DATA/__DATA
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users =
    read list =
    write list = @"administrators","admin","waldauf","terka",@"everyone","guest"
    valid users = "root",@"administrators","admin","waldauf","terka",@"everyone","guest"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/__DATA/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/__DATA
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:16:07:12
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [__FOTO]
    comment =
    path = /share/CACHEDEV1_DATA/__FOTO
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list =
    write list = @"administrators","admin","waldauf","terka",@"everyone"
    valid users = "root",@"administrators","admin","waldauf","terka",@"everyone"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/__FOTO/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/__FOTO
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:16:43:47
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [__FOOBAR1]
    comment =
    path = /share/CACHEDEV1_DATA/__FOOBAR1
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list =
    write list = @"administrators","admin","waldauf","terka",@"everyone"
    valid users = "root",@"administrators","admin","waldauf","terka",@"everyone"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/__FOOBAR1/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/__FOOBAR1
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:17:16:47
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    hosts allow =
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [__GIT]
    comment =
    path = /share/CACHEDEV1_DATA/__GIT
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list =
    write list = @"administrators","admin","waldauf"
    valid users = "root",@"administrators","admin","waldauf"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/__GIT/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/__GIT
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:17:55:61
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [Container]
    comment = Container Station
    path = /share/CACHEDEV1_DATA/Container
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = no
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list =
    write list = @"administrators","admin"
    valid users = "root",@"administrators","admin"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/Container/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/Container
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:26:23:58:17:26
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [__FOOBAR2]
    comment =
    path = /share/CACHEDEV1_DATA/__FOOBAR2
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users = "guest"
    read list =
    write list = @"administrators","admin","waldauf","terka",@"everyone"
    valid users = "root",@"administrators","admin","waldauf","terka",@"everyone"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/__FOOBAR2/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/__FOOBAR2
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = disabled
    create time = 2020:10:27:00:29:43:26
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = no
    strict allocate = yes
    streams_depot:check_valid = yes
    
    [printers]
    use client driver = yes
    writable = no
    browsable = no
    printable = yes
    guest ok = yes
    path = /var/spool/smb
    
    [HP_Scan]
    comment =
    path = /share/CACHEDEV1_DATA/HP_Scan
    browsable = yes
    oplocks = yes
    ftp write only = no
    recycle bin = yes
    recycle bin administrators only = no
    qbox = no
    timemachine = no
    public = yes
    invalid users =
    read list =
    write list = @"administrators","admin","guest","waldauf","terka","hp_scan",@"everyone"
    valid users = "root",@"administrators","admin","guest","waldauf","terka","hp_scan",@"everyone"
    q type = 0
    inherit permissions = yes
    shadow:showprevious = yes
    shadow:snapdir = /share/CACHEDEV1_DATA/_.share/HP_Scan/.snapshot
    shadow:basedir = /share/CACHEDEV1_DATA/HP_Scan
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    smb encrypt = mandatory
    create time = 2021:01:10:17:39:41:43
    strict allocate = yes
    streams_depot:check_valid = yes
    mangled names = yes
    hide unreadable = no
    access based share enum = no
    strict sync = yes
    hosts allow =
    
    [home]
    comment = Home
    path = %H
    browsable = yes
    oplocks = yes
    ftp write only = no
    inherit permissions = yes
    invalid users = guest
    writable = yes
    read list = "%u"
    write list = "%u"
    valid users = "%u"
    root preexec = /sbin/create_home -u '%q'
    smb encrypt = disabled
    create time = 2020:10:26:23:03:20:12
    shadow:snapdir = /share/CACHEDEV1_DATA/homes/../_.share/homes/.snapshot
    shadow:basedir = %H
    shadow:sort = desc
    shadow:format = @GMT-%Y.%m.%d-%H:%M:%S
    
  • NFS configuration

    Code: Select all

    [/etc/config] # cat nfssetting
    [Global]
    Version = 4.5.1
    squash_check = 1
    
    [Access]
    /share/CACHEDEV1_DATA/Public = FALSE
    /share/CACHEDEV1_DATA/__FOOBAR1 = TRUE
    /share/CACHEDEV1_DATA/__FOOBAR2 = TRUE
    /share/CACHEDEV1_DATA/__GIT = TRUE
    /share/CACHEDEV1_DATA/__FOTO = TRUE
    /share/CACHEDEV1_DATA/__DATA = TRUE
    
    [AllowIP]
    /share/CACHEDEV1_DATA/Public = *
    /share/CACHEDEV1_DATA/__FOOBAR1 = *
    /share/CACHEDEV1_DATA/__FOOBAR2 = *
    /share/CACHEDEV1_DATA/__GIT = *
    /share/CACHEDEV1_DATA/__FOTO = *
    /share/CACHEDEV1_DATA/__DATA = *
    
    [Auth_sys]
    /share/CACHEDEV1_DATA/Public = 1
    
    [Auth_krb5]
    /share/CACHEDEV1_DATA/Public = 0
    
    [Auth_krb5i]
    /share/CACHEDEV1_DATA/Public = 0
    
    [Auth_krb5p]
    /share/CACHEDEV1_DATA/Public = 0
    
    [Permission]
    /share/CACHEDEV1_DATA/Public = rw
    /share/CACHEDEV1_DATA/__FOOBAR1 = rw
    /share/CACHEDEV1_DATA/__FOOBAR2 = rw
    /share/CACHEDEV1_DATA/__GIT = rw
    /share/CACHEDEV1_DATA/__FOTO = rw
    /share/CACHEDEV1_DATA/__DATA = rw
    
    [Sync_option]
    /share/CACHEDEV1_DATA/Public = 0
    
    [Wdelay_option]
    /share/CACHEDEV1_DATA/Public = 1
    
    [Secure_option]
    /share/CACHEDEV1_DATA/Public = 0
    
    [SquashOption]
    /share/CACHEDEV1_DATA/Public = no_root_squash
    /share/CACHEDEV1_DATA/__FOOBAR1 = no_root_squash
    /share/CACHEDEV1_DATA/__FOOBAR2 = no_root_squash
    /share/CACHEDEV1_DATA/__GIT = no_root_squash
    /share/CACHEDEV1_DATA/__FOTO = no_root_squash
    /share/CACHEDEV1_DATA/__DATA = no_root_squash
    
    [AnonUID]
    /share/CACHEDEV1_DATA/Public = 65534
    /share/CACHEDEV1_DATA/__FOOBAR1 = 65534
    /share/CACHEDEV1_DATA/__FOOBAR2 = 65534
    /share/CACHEDEV1_DATA/__GIT = 65534
    /share/CACHEDEV1_DATA/__FOTO = 65534
    /share/CACHEDEV1_DATA/__DATA = 65534
    
    [AnonGID]
    /share/CACHEDEV1_DATA/Public = 65534
    /share/CACHEDEV1_DATA/__FOOBAR1 = 65534
    /share/CACHEDEV1_DATA/__FOOBAR2 = 65534
    /share/CACHEDEV1_DATA/__GIT = 65534
    /share/CACHEDEV1_DATA/__FOTO = 65534
    /share/CACHEDEV1_DATA/__DATA = 65534
    
    [SubtreeCheck]
    /share/CACHEDEV1_DATA/Public = no_subtree_check
    
    [Is_modified]
    /share/CACHEDEV1_DATA/Public = 0
    /share/CACHEDEV1_DATA/__FOOBAR1 = 0
    /share/CACHEDEV1_DATA/__FOTO = 0
    /share/CACHEDEV1_DATA/__DATA = 0
    /share/CACHEDEV1_DATA/__GIT = 0
    /share/CACHEDEV1_DATA/__FOOBAR2 = 0
    


Regional setting on Windows 10:
  • Regional and Language Options: Czech Republic
  • Current format: Czech


Regional setting on Linux:

Code: Select all

❯ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_US.UTF-8
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


NFS mount options on the Linux client:

Code: Select all

otesanek:/__FOOBAR1 on /home/waldauf/__PERSONAL__/__OTESANEK/foobar1 type nfs4 (rw,relatime,vers=4.2,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.111.5,local_lock=none,addr=192.168.111.2)
otesanek:/__FOOBAR2 on /home/waldauf/__PERSONAL__/__OTESANEK/foobar2 type nfs4 (rw,relatime,vers=4.2,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.111.5,local_lock=none,addr=192.168.111.2)
otesanek:/__FOTO on /home/waldauf/__PERSONAL__/__OTESANEK/foto type nfs4 (rw,relatime,vers=4.2,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.111.5,local_lock=none,addr=192.168.111.2)
otesanek:/__DATA on /home/waldauf/__PERSONAL__/__OTESANEK/data type nfs4 (rw,relatime,vers=4.2,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.111.5,local_lock=none,addr=192.168.111.2)


List files from Linux: I cannot see the appropriate file size and name created on Windows 10.
linux_list_files.png


List files from Windows 10: I cannot see the appropriate file name created on the Linux (file name: příliš_žluťoučký_kůň_úpěl_ďábelské_ódy_walda.txt)
w10_list_files.png


List files from the QNAP: I cannot see the appropriate file name created on Windows 10.
qnap_list_files.png


How I verified encoding used on Windows 10: I created a text file in Notepad and saved it. The saving dialog asked me which encoding should be used:
w10_save_file_utf8.png
You do not have the required permissions to view the files attached to this post.
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by Mousetick »

Much better with plenty of info, thanks.
waldauf wrote: Sun May 02, 2021 9:41 pm List files from Windows 10: I cannot see the appropriate file name created on the Linux (file name: příliš_žluťoučký_kůň_úpěl_ďábelské_ódy_walda.txt)
That doesn't look like a native Windows app. What is it?
How do those files look in Windows Explorer?
How I verified encoding used on Windows 10: I created a text file in Notepad and saved it. The saving dialog asked me which encoding should be used:
This setting applies to the text encoding of the file's contents. They have no effect at all on the filename's encoding. So this verification is irrelevant regarding your problem.

Looks to me like the issue is on the Windows side. Do your tests only using Notepad and Windows Explorer, nothing else. And test from scratch, don't use existing files.

If I create a file on Windows 10 named 'příliš_žluťoučký_kůň_úpěl_ďábelské_ódy_walda.txt' and then copy it to the NAS (Linux) via SMB, it shows up correctly on the Linux side. My Windows regional settings and Linux Samba settings are not the same as yours, so that doesn't prove anything, but as long as Unicode UTF-8 is used on both sides, it should work.

No idea about the file size issue via NFS. It may be related to the filename encoding issue, or it may be something else.
waldauf
Starting out
Posts: 26
Joined: Sun Oct 08, 2017 2:29 am

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by waldauf »

Mousetick wrote: Sun May 02, 2021 10:27 pm That doesn't look like a native Windows app. What is it?
How do those files look in Windows Explorer?
That's the Total Commander. In Windows Explorer, it looks identical.

Mousetick wrote: Sun May 02, 2021 10:27 pm
waldauf wrote: How I verified encoding used on Windows 10: I created a text file in Notepad and saved it. The saving dialog asked me which encoding should be used:
This setting applies to the text encoding of the file's contents. They have no effect at all on the filename's encoding. So this verification is irrelevant regarding your problem.


Looks to me like the issue is on the Windows side. Do your tests only using Notepad and Windows Explorer, nothing else. And test from scratch, don't use existing files.
I tested it by using an existing file or create a new one (a TXT file) and always with the same result. I always had used Windows Explorer to copy files on SMB disk.

Mousetick wrote: Sun May 02, 2021 10:27 pm If I create a file on Windows 10 named 'příliš_žluťoučký_kůň_úpěl_ďábelské_ódy_walda.txt' and then copy it to the NAS (Linux) via SMB, it shows up correctly on the Linux side. My Windows regional settings and Linux Samba settings are not the same as yours, so that doesn't prove anything, but as long as Unicode UTF-8 is used on both sides, it should work.
Damn, you're a lucky boy. :D I have tested Windows 10 with English localization and still the same result. I don't know what to do more. :/

Mousetick wrote: Sun May 02, 2021 10:27 pm No idea about the file size issue via NFS. It may be related to the filename encoding issue, or it may be something else.
I appreciate the time you've given me to help me, thank you.
waldauf
Starting out
Posts: 26
Joined: Sun Oct 08, 2017 2:29 am

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by waldauf »

I tested how looks dos charset in the /etc/config/smb.conf for different non-Unicode set in Control Panel > Setting > Codepage:

Code: Select all

[~] # grep charset /etc/config/smb.conf
# Western Europe / Latin 1
dos charset = ISO8859-1
# English
dos charset = ASCII
# Slavic / Latin 2
dos charset = ISO8859-1
I tried to set dos charset = UTF-8. But it didn't help.
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by Mousetick »

waldauf wrote: Sun May 02, 2021 10:41 pm **, you're a lucky boy. :D I have tested Windows 10 with English localization and still the same result. I don't know what to do more. :/
I don't know if I'm lucky or not, I think this is just how it's supposed to work so I'm not surprised it does.

The next thing you may want to try is run Samba on your Linux box and test between Windows and your Linux box. That should tell you if the issue is on QNAP or Windows side.

If it's on Windows, you'll find better help from the Czech Windows or Linux communities than over here.
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by Mousetick »

waldauf wrote: Sun May 02, 2021 11:05 pm I tested how looks dos charset in the /etc/config/smb.conf for different non-Unicode set in Control Panel > Setting > Codepage:
This configuration setting is for legacy clients (prior to Windows XP or thereabouts) that don't support Unicode. I don't think it matters at all in your case.
waldauf
Starting out
Posts: 26
Joined: Sun Oct 08, 2017 2:29 am

Re: Files from Windows 10 have meta files with extension Zone.Identifier

Post by waldauf »

Mousetick wrote: Sun May 02, 2021 11:18 pm The next thing you may want to try is to run Samba on your Linux box and test between Windows and your Linux box. That should tell you if the issue is on QNAP or Windows side.

If it's on Windows, you'll find better help from the Czech Windows or Linux communities than over here.
I create SMB share from my Linux to QNAP dir which I have mounted via NTFS. Everything works fine. The file's name is alright, size too. I can read file content.

Again thx to @Mousetick for your help.


It seems that the problem is definitely on the Windows 10 side. I leave this issue open upon I find out where the problem is.
Post Reply

Return to “File Sharing”