How to fix .DS_Store error?


Recommended Posts

I am just started using unRAID with Mac.

 

I was able to make user Shares and copy files and folders to the server.

 

Although it is slower (10 MB/s) but I was able to copy files with no problem.

 

However, when I try to copy files back to Mac. I always get an error message

 

saying that .DS_Store already exists.  This happens for over both SMB and AFP.

 

Is this a known bug?  Then how can I get around this problem?

DS_Store.jpg.f31b65539b6270c221af8e52ce2f50d8.jpg

Link to comment

This is not a bug, it's Finder's default behavior.

 

Use this to avoid the creation of metadata files in remote shares: http://support.apple.com/kb/HT1629

 

After running the described command and logout/login, run this in a terminal logged into unRAID server:

 

find /mnt/user -maxdepth 9999 -noleaf -type f -name ".DS_Store" -exec rm "{}" \;

 

It will remove all .DS_Store files in your array.

Link to comment

I did execute the following on the terminal and logout and then login.

 

  defaults write com.apple.desktopservices DSDontWriteNetworkStores true

 

Then I copied one folder into the unRAID server and then copied the copied-folder back to mac on different hard disk.

 

At the end, I got the same .DS_Store error dialog.

 

I don't understand why I am getting the same error message here.

Link to comment

I did execute the following on the terminal and logout and then login.

 

  defaults write com.apple.desktopservices DSDontWriteNetworkStores true

 

Then I copied one folder into the unRAID server and then copied the copied-folder back to mac on different hard disk.

 

At the end, I got the same .DS_Store error dialog.

 

I don't understand why I am getting the same error message here.

 

Did you run the other command I posted?

Link to comment

      find /mnt/user -maxdepth 9999 -noleaf -type f -name ".DS_Store" -exec rm "{}" \;

 

This give me an error since there is no directory of /mnt/user.

So change it to

 

      find . -maxdepth 9999 -noleaf -type f -name ".DS_Store" -exec rm "{}" \;

 

and apply to the top level directory of the server.

 

After it is done, I will repeat the copying process again.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.