Plays Well with Others
Dealing with Resource Forks and .DS_Store Files on non-Mac Volumes
- 2006.01.04
We all know that Mac OS X is a good citizen in mixed networks. Connecting to Windows shares, Linux NFS mounts, and FTP/SFTP servers is a snap. And the Sharing system preference panel makes it even easier for these other operating systems to connect to your Mac.
However, it sometimes seems that the Mac doesn't really play so well with non-Mac systems. Connecting to a shared volume, your Mac will gladly leave behind pesky .DS_Store and resource fork files. It might also create a .Trash folder - or, even better, a "Network Trash Folder".
Your Windows-using colleagues are likely to express irritation at these files and folders. While they are invisible on your Mac, they are definitely visible when viewed on their computers. In the best-case scenario, you may have to put up with a little grumbling. At worst, it may give the Windows users more fuel for the anti-Mac fire because Macs "litter" the network with "useless" files.
.DS_Store and Resource Forks
Just what are these mysterious files?
In essence, they help make your Mac a Mac. .DS_Store files keep track of icon sizes and positions and also allow you to do neat things like keep a picture as the background of a folder.
While .DS_Store came to the Mac with OS X, resource forks have been with us ever since the first Mac. They store information like the type of file and its creator code. For years this was how your Mac knew what type of file you were dealing with and what application to open it with - without having to use file extensions like the DOS/Windows world.
On Mac file systems (i.e., MFS, HFS, and HFS+), the actual data file and its resource fork are seen as one file. Copying a Mac file to other volumes can cause the data and the resource fork to be split into different files. (For a detailed analysis of the resource fork, check out Wikipedia's Resource Fork article.)
The end result is a lot of junk generated every time you open a file on a non-Mac volume - or perhaps even by just browsing its contents.
The Desktop
The worst offender here is .DS_Store, which represents a huge step back from the classic days. In the classic Mac OS (up to version OS 9.2.2), the Desktop Database file kept track of icon and folder positions, among other things.
This was not a perfect solution, but it was very clever at the time the first Mac was released. The biggest problem was that the Desktop Database could get very large and unwieldy - or get corrupted. Hence the age-old Mac troubleshooting tip of "rebuilding the desktop".
No matter the shortcomings of the Desktop Database, it was a lot better than creating an invisible file in every single folder that was ever opened, which is what OS X does.
Playing Well with Others
We may have to wait until OS XI to see Apple fix these shortcomings. Until then, there are a few things you can do to make sure your Mac continues to play well with others in your mixed environment.
As of OS X 10.4, you can enter a Terminal command to prevent the creation of .DS_Store files on remote volumes. Apple has a knowledge base article explaining how to do this. However, it's not a global fix, and it must be done for every user on a particular Mac.
For a more complete fix, check out Ross Tulloch's BlueHarvest. This system preference panel works with OS X 10.3 and 10.4; it disables the creation of .DS_Store and resource fork files in locations of your choosing, and it will also wipe out preexisting .DS_Store and resource fork files from certain folders if you like.
BlueHarvest is US$10 shareware, which may add up to a lot of if you need to deploy it on a large number of Macs. But for those who need to peacefully coexist in a mixed environment, it's highly recommended.
Apple has acknowledged that .DS_Store files and the like are not
always desirable, as evidenced by their knowledge base article. Here's
hoping that one day they will come up with a better system that will
provide all the functionality without the mess of extraneous files.
- Link: Resource Fork, Wikipedia
- Link: How to prevent .DS_Store file creation over network connections, Apple
- Link: BlueHarvest
Join us on Facebook. Follow us on Twitter.
Recent Plays Well with Others articles
- Steve Jobs in His Own Words, 2011.10.06. Steve Jobs spoke his mind, carefully choosing his words for maximum impact.
- End of G4 models points to unprecedented value for used G4 Macs, 2006.06.02. The PowerPC G4 may no longer have a place in Apple's product line, but that's a far cry from saying G4-based Macs are obsolete. If anything, there value is going to increase.
- X11: Your window for using Unix apps on the Mac, 2006.05.17. Mac OS X is a Unix variant. X11 is the tool that lets you access Unix applications using a graphical interface with mouse support.
- More in the Plays Well with Others index.
Links for the Day
- Mac of the Day: Dynamac, introduced 1987.02. This AC-only portable has a backlit electroluminescent screen.
- February 3 in LEM history: 1998: Apple and CompUSA - 2001: Vinyl to disc - 2003: Apple has always been a significant player - Upgrading a Power Mac G4 - Making a bootable OS X CD - 2005: Apple's future is with the consumer market - 2006: Browsers for the Classic Mac OS - Microsoft's monopoly makes it slow and vulnerable
- Support Low End Mac
Recent Content on Low End Mac
- Does iOS Doom the Mac?, Apple Again #1 Smartphone Vendor, Massive 16 iPad Charger, and More, iOS News Review, 2012.02.03. Also Sleipnir browser lets you share links locally, iPro brings Schneider lenses to iPhone 4, and more.
- Time to End 13" MacBook Pro?, Refurb MacBook Air from $699, Enable TRIM in OS X, and More, The 'Book Review, 2012.02.03. Also Auro Pro Express SSD upgrades for 2010/11 MacBook Air, Sleipnir browser syncs bookmarks with iOS, Prey laptop recovery tool, and more.
- Apple Refurbs a Great Deal, iOSificiation a Fundamental Shift for Apple, and More, Mac News Review, 2012.02.03. Also IT workers embracing Apple, battery-free wireless mouse, freeware alternatives to commercial apps, and more.
- Kill Caps Lock, but Leave the Rest of My Keyboard Alone (Mostly), Dan Knight, Mac Musings, 2012.02.03. It's too easy to hit Caps Lock by accident, but why change a keyboard layout that billions of users are comfortable with?
- 25 Years of AppleShare Networking, Low End Mac Round Table, 2012.02.02. Macs have always had built-in networking, but Apple didn't have server software for Macs until 1987.
- Disk Expert Helps You Find and Delete or Archive Your Biggest Files, Steve Watkins, The Practical Mac, 2012.02.02. If your hard drive, flash drive, or SSD is filling up, Disk Expert can help pinpoint the biggest files, which you may be able to delete or archive.
- Tiger or Leopard for PowerPC Macs? Does It Matter Anymore?, Simon Royal, Mac Spectrum, 2012.01.31. Does it really matter whether you run OS X 10.4 Tiger or 10.5 Leopard on your increasingly left-behind PowerPC Macs?
- MacBook Air vs. MacBook Pro, Looking for a Vertical MacBook Stand, and SE/30 Internet Tips, Charles W. Moore, Charles Moore's Mailbag, 2012.01.31. Whether a MacBook Air makes as much sense as a MacBook Pro, finding a vertical stand for a MacBook, and tips for getting an SE/30 on the Internet.
- More links in our archive.
Recent Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- Best 15" MacBook Pro Deals
- Best Power Mac G4 Deals
- Best Mac OS X 10.6 Deals
- Best MacBook Deals
- Best Time Capsule Deals
- Best 17" PowerBook G4 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

