Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there a way to tell Finder to not use (or worry about) the ._* files and other meta-data files it normally tries to use when it's on a network share?

Currently when I'm in Finder and I try to copy a file to a network share it results in an error:

The Finder can’t complete the operation because some data in “file_name” can’t be read or written. (Error code -36)

But I can copy the file from the terminal command line to the network share and use it from Finder afterward just fine. It seems that the meta-data isn't really needed on the network share. Is there a way to tell Finder this?

For reference, I'm using Snow Leopard and the share is a Samba share on a Linux server.

share|improve this question
1  
Similar: Why are dot underscore ._ files created, and how can I avoid them? (2011), I answered the more recent question. –  Graham Perrin May 12 '12 at 9:13
add comment

4 Answers 4

up vote 7 down vote accepted

Is the file you're trying to copy using a resource fork?

If you're dealing with .DS_Store file issues run the following command in Terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

If you're having issues with resource forks on Snow Leopard you may need to change your settings for the streams setting in smb.conf on the Linux machine or nsmb.conf on your local Mac. (._FILENAME files are the resource forks of the file). Check out Super User for more details on this.

share|improve this answer
    
@Josh K: It didn't even notify me that you had answered. –  Chealion Aug 17 '10 at 20:40
1  
Didn't do the trick. I had high hopes for that Super User suggestion as well, but it didn't work either :( It's definitely the resource forks, and I've tried creating that local nsmb.conf file (even rebooted just to make sure) but the error persists. It still creates the ._ file on the server and throws the same error, leaving a data file of zero bytes. –  David Aug 17 '10 at 23:43
    
@David: Any chance of knowing if it works with Leopard? You can also try using veto_files on the server which is sometimes the cure and other times the cause of issues with Finder. (serverfault.com/questions/15044/…) –  Chealion Aug 18 '10 at 0:26
    
No idea on 10.5, sorry. I've tried veto files, tried stuff here: support.apple.com/kb/HT4017 No dice yet. There are multiple causes for this generic Finder I/O error, but so far I haven't found a solution for mine. –  David Aug 18 '10 at 0:36
add comment
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Will get rid of the DS files. Anything else you might have to do by hand.

share|improve this answer
add comment

Adapted from http://apple.stackexchange.com/a/57832/8546


Finder

Finder does much to ensure integrity of data, and to make its results compatible with a broad range of Apple operating systems. For some types of copy/move routines, ._ (dot underscore) files are required.

File system

If creation of ._ files is prevented at the file system level, then that file system is partially incompatible with at least:

  • Apple Finder
  • Microsoft Office Excel, PowerPoint and Word 2011.

(For any use case that involves Office 2011 saving to a file system, you must allow ._ on that file system … and so on.)

Error code -36

-36 (ioErr) (I/O error) is a file system error, it indicates that data cannot be sent or received by the operating system. Historically, errors of this type were bummers.

Without knowing the detail of your Samba configuration:

  • I guess that in your case, error -36 is the result of a file system restriction.

For more detail please see my answer to an older question, Why are dot underscore ._ files created, and how can I avoid them?:

share|improve this answer
add comment

This is not working for me anymore. So i have added ._* to the veto files I think it's works but i don't know if it has other complications?

vi /etc/samba/smb.conf

[global] veto files = /._*/.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@_thumb/.@_desc/:2e*/

(esc-shift-ZZ) service smb restart service nmb restart

share|improve this answer
    
You can also run this in the cron<br> find . -type f -name "._*" -exec rm -rvf {} +; –  Marcel Kraan Jan 21 '13 at 10:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.