Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/mnt/user/._.DS_Store files everywhere. How do I prevent these files from generating?

Featured Replies

How do I delete them all at once?  Are they of any use?

 

Using Fixing common problems show the file in "/mnt/user/._.DS_Store   disk1 disk2 disk3 disk4 disk5 disk6 disk7 disk8 disk9 cache" and a lot more other folders, and disks

One option would be to setup a scheduled user script to delete this files.

#!/bin/bash
echo "Searching for (and deleting) .DS_Store Files"
echo "This may take a awhile"
find /mnt/user -maxdepth 9999 -noleaf -type f -name ".DS_Store" -exec rm "{}" \;

 

  • Author

Can't this be prevented from being generated in the future?

That file is a proprietary Mac/OSX system file that holds attributes / meta-data about the folder it resides in. I don't know if it's possible to stop apple devices to create these files.

  • Author

You mean it's generated since I use a mac to browse folder contents?

Exactly

  • Author

In that case, thanks for the info.  I guess I'll have to leave with it.

In general it's a small hidden file. You shouldn't see it either on Windows or MacOS if you doesn't have "show hidden files" enabled. Maybe there is a option on MacOS to prevent it to create these files. What are the downsides of this? I don't know. I'am not using that OS 🤨

Edited by bastl

  • Author

Thanks @bastl

Hey, jsut enable "HIDE .DOT files" in SMB Settings of unraid ;-) No need to delete.

  • Author

Great!

Disable the creation of .DS_store on network drives (Client side)

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
  • Log out/in to take effect

Disable the creation of all ._ files (Server side)

  1. Stop the array
  2. Go to Smb settings & add the following to the "Samba extra configuration" field
    veto files =/._*/.DS_store/

    Additional files can be vetoed if needed, just remember a trailing "/"

Edited by unRate

Here's what I use:

 

veto files = /._*/.DS_Store/.AppleDouble/.Trashes/.TemporaryItems/.Spotlight-V100/
delete veto files = yes

 

  • 3 years later...
On 7/26/2019 at 3:38 PM, SnickySnacks said:

Here's what I use:

 

veto files = /._*/.DS_Store/.AppleDouble/.Trashes/.TemporaryItems/.Spotlight-V100/
delete veto files = yes

 

Sorry to bring up an old thread, but will this effect any Timemachine stuff?

1 hour ago, Maximus01701 said:

Sorry to bring up an old thread, but will this effect any Timemachine stuff?

Shouldn’t. The ds_store files are used to tell the finder what you have set for options in the window so that if you close it your current settings will be used next time you open it.

  • 4 months later...
On 7/25/2019 at 10:16 PM, nuhll said:

Hey, jsut enable "HIDE .DOT files" in SMB Settings of unraid ;-) No need to delete.

did this every actually work for these particular files?

  • 1 year later...
On 7/25/2019 at 2:16 PM, NewDisplayName said:

Hey, jsut enable "HIDE .DOT files" in SMB Settings of unraid ;-) No need to delete.

THX

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.