Dealing with Resource Forks and .DS_Store Files on non-Mac Volumes
Low End Mac Reader Specials
Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
LA Computer Company: LA Computer Company: Specials on AppleCare, Apple Displays, MacBooks, iMac's, MacBook Pros, Laptop and iPod accessories and more. Apple A/C Adapters for laptops starting at $25.00 Call 1-800-941-7654 or Click Here.
OWC: Upgrade to a Larger Hard Drive, Add Additional Drives SATA for Mac Pro and G5s, up to 1.0TB in each Bay. 500GB from $90!
Mac users can finally play Party Poker for Mac. Not only that, they can also learn how to play PokerStars for Mac.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
Compare products like desktop computers, laptops, and LCD TVs side by side! All the information and reviews to make the best purchasing decision for a new cell phone GPS products or MP3 players. The Ciao network makes searching products easy for you.
New MacPro Memory 800Mhz With Apple Spec Heat Sink 2GB $104 / 4GB $172 / 8GB $338. Click to Maximize your Macs...
- 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
Recent Plays Well with Others articles
- End of G4 models points to unprecedented value for used G4 Macs, 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, 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.
- 6 extensions to make Firefox even better, 03.29. Improve Firefox with everything from web developer tools to nuking unwanted ads, from faster page loads to knowing the weather.
- More in the Plays Well with Others index.
Recent Content on Low End Mac
- Mac Pro overclocking, Windependence with Darwine, Blu-ray for Macs, and more, Mac News Review, 07.04. Also more on running Leopard on non-Apple hardware, Ubuntu on a Mac mini, the first autofocus webcam with Zeiss optics for Macs, and more.
- Wouldn't life be great with an iSlate?, John Hatchett, Recycled Computing, 07.04. PDAs and smartphones are too small for some tasks, full-fledged Tablet PCs are overkill, and ebook readers are too limited. Apple has the tech to own this niche.
- Mac of the Day: Performa 520 June 199 - the Color Classic grows up with a 15" screen, room for CD-ROM.
- List of the Day: System 6 is the email list for those who choose System 6.
- July 6 in LEM history: 00: 3 user accelerators - 01: SCSI and FireWire Disk Mode - Stick with the Mac - Computers for college - 05: Optimizing OS X performance - Return of the bumper snicker - 06: Can consumer MacBook replace 2 PowerBooks and a ThinkPad? - Vintage Macs with System 6 run circles around 3 GHz Windows PC - Run Windows apps without Windows
- The Macintosh Portable started a notebook revolution, Carl Nygren, Classic Macs in the Intel Age, 07.03. Before Apple introduced the Mac Portable, notebook computers were text-based and ran MS-DOS. Ever since, graphical interfaces have been the norm for laptops.
- More links in our archive.
About LEM | Support | Usage | Privacy | Contacts


