NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

PlainBill's avatar
Jan 24, 2019
Solved

SMB file transfer fails if file name starts with "._"

Have a RN212 configured for use as network file server, including backing up smartphones and laptops. Updated it today with latest OS version 6.9.5 and retested, and the error remains.

Backup solution for Android phones use SMB shares for transport, and mirrors source filesystem into a sub-folder in the SMB share.

If a filename begins with "._" characters (period, underline), then the file is rejected with a "File Not Found" error, and an error status code of 0xc0000034, aborting the remainder of the backup copy.

 

This can be easily tested from a windows PC by creating a file named "._Junk.txt", then attempting to transfer the file to the RN212 share.

 

Android smartphones have many, many application and system files that are named using that convention, so renaming them on the phone is not a viable solution.

 

 


  • PlainBill wrote:

    You could perhaps use time machine over afp instead of smb???

    Well, my assumption right now is that Enhance MacOS is adding some kind of filter, so unless using afp allows that to be disabled, I don't think that would work. 

     


    If you reset TM to use AFP, then you can disable Enhance MacOS.  At least other posters here have said that.

15 Replies

Replies have been turned off for this discussion
  • Retired_Member's avatar
    Retired_Member

    Hi PlainBill , thanks for sharing this.

    I did not try, but theoretically you could consider to use NFS instead of SMB for your linux-based devices and that would include adroid phones.

    Kind regards

    • PlainBill's avatar
      PlainBill
      Tutor

      Roland,

      Thanks for the suggestion, but:

      1. There's no reason why this should not work - the sequence while odd is in the allowable alphanumeric set of characters for filenames.

      2. Due to mixed PC/Android/Mac/iPhone usage, I was hoping to keep the number of enabled file transfer protocols to a bare minimum for maintenence and troubleshooting purposes.

       

      Regards,

      Bill

  • StephenB's avatar
    StephenB
    Guru - Experienced User

    PlainBill wrote:

    This can be easily tested from a windows PC by creating a file named "._Junk.txt", then attempting to transfer the file to the RN212 share.

     


    This transfer works for me (both with 6.9.3 and 6.9.5).  Files starting with "." are hidden in Windows, so you do need to set file explorer to view hidden files.  The PC is running Windows 10 Professional.

     

    Enhance MacOS was turned off on the NAS, Strict sync was enabled for the share.  I testing with an RN202 (running 6.9.5) and two x86 NAS (RN524 and RN526).  The transfers were done using drag and drop.

    • PlainBill's avatar
      PlainBill
      Tutor

      Hi Stephan,

      The transfer does not work for me, neither from Android nor from a windows PC. I know about the hidden file conventions, and verified it by successfully transferring a file named ".Junk.txt", then tried "._Junk.txt" again, which again failed to transfer.

      PCs are running windows 7, Android phone is 8.0.0.

      I have tested this on the PCs by dragging from one explorer pane to the other, on the RN212 itself by uploading through the web interface, and on the Android phone using SMBSync2 backup application (which is where I first ran into this problem).

      All methods work going from a PC or Android onto a PC SMB share, and fail going to the RN212 share.

      Opening the RN212 share in a PC explorer pane and trying to create a file with a leading "._" fails, but creating a file with only the leading "." succeeds.

       

      I can't disable EnhanceMacOS because one of the phones being backed up is an iPhone using TimeMachine over SMB (which has no problems I'm aware of).

      Strict sync is enabled.

       

      Are there any accessible diagnostics logs on the RN212 for file transfers I could examine?

      Do you know if there is a configuration setting that would affect this behavior?

      Do I need to capture the network traffic and see if there's something there that isn't right?

       

      Thanks in advance,

      Bill

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        PlainBill wrote:

        I can't disable EnhanceMacOS because one of the phones being backed up is an iPhone using TimeMachine over SMB (which has no problems I'm aware of).

        Could you disable it as a test (and then re-enable)?

         

        I could try enabling it on my RN202 and see if I can duplicate your problem.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More