• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About
    • Stephen Foskett
      • My Publications
        • Urban Forms in Suburbia: The Rise of the Edge City
      • Storage Magazine Columns
      • Whitepapers
      • Multimedia
      • Speaking Engagements
    • Services
    • Disclosures
  • Categories
    • Apple
    • Ask a Pack Rat
    • Computer History
    • Deals
    • Enterprise storage
    • Events
    • Personal
    • Photography
    • Terabyte home
    • Virtual Storage
  • Guides
    • The iPhone Exchange ActiveSync Guide
      • The iPhone Exchange ActiveSync Troubleshooting Guide
    • The iPad Exchange ActiveSync Guide
      • iPad Exchange ActiveSync Troubleshooting Guide
    • Toolbox
      • Power Over Ethernet Calculator
      • EMC Symmetrix WWN Calculator
      • EMC Symmetrix TimeFinder DOS Batch File
    • Linux Logical Volume Manager Walkthrough
  • Calendar

Stephen Foskett, Pack Rat

Understanding the accumulation of data

You are here: Home / Everything / Apple / OS X Custom Drive Icons 2: Boot Camp and NTFS

OS X Custom Drive Icons 2: Boot Camp and NTFS

September 3, 2008 By Stephen 4 Comments

Yup, my Boot Camp drive icon is customized, too!
Yup, my Boot Camp drive icon is customized, too!

In my last post, I discussed the simple but confusing steps required to add custom icons to Mac OS X drives. I mentioned that there were some tricks to getting custom icons on some drives, however, including Boot Camp and NTFS disks. This week, I’ll show how to customize these as well.

There are two core problems with customizing drive icons for certain volumes:

  1. OS X can’t directly write to anything but HFS+ and FAT, and this includes writing icons
  2. OS X needs a special resource on the drive to indicate that the custom icon should be used, and only HFS+ supports this

But it’s easy enough to get around these limitations. Apple takes care of number 2, and we can cover number 1 in one of two ways.

This post is part of my series focused on Apple OS X tips and tricks.

  • Access NTFS Volumes On Your Mac
  • Clean Up Your Mac! Essential OS X Tidiness Tools and Techniques
  • How To Move OS X Time Machine Backups To A New Disk
  • Hallelujah! OS X Can Reduce PDF File Size!
  • Custom Drive Icons in Mac OS X
  • OS X Custom Drive Icons 2: Boot Camp and NTFS

Techie Bits

Booooooring generic USB drive icon in OS X
Booooooring generic USB drive icon in OS X

Old versions of Mac OS stored lots of data (aka “resources”) in the resource fork of a file, including icon graphics. However, this became a problem with the advent of networking and cross-platform computing, since no other popular personal computing platform supported two-fork files. OS X moves most resources into the data fork – although resource forks still exist, they are rarely used.

However, it appears to me that although the “icns” data for a drive icon is stored in the data fork of the .VolumeIcon.icns file, Apple still uses a pointer in the resource fork of the root directory of the drive to tell OS X to use that icon. In other words, when a drive is mounted, OS X seems to look in the resource fork of “.” for a flag that says “use the icon in .VolumeIcon.icns” before it will use the icon. I’m not sure this is the case, but I do know that .VolumeIcon.icns has no resource fork (even on HFS+), but it requires a special resource file on other filesystems.

Since only HFS and HFS+ support resource forks, this is a problem. Apple gets around this by saving resource fork data in files with “._” prepended to their name. So the resource fork of “index.html” would be “._index.html” on a FAT drive. Every FAT drive I’ve added a custom icon to includes a file called “._.”, which sounds like the root directory’s resource to me, and this is required for the icon to work.

Getting It Done

Aah, thats a much better icon for my Maxtor 3200!
Aah, that's a much better icon for my Maxtor 3200!

So you need two files on a non-HFS+ drive to get the custom icon to work:
 

  1. .VolumeIcon.icns – the same exact file as on an HFS+ volume, containing the icon data in the data fork
  2. ._. – a special file (resource fork, perhaps?) which seems to tell OS X to use the icon

As illustrated previously, adding a custom icon to a FAT drive is exactly the same as on an HFS+ drive – create the icon resource and copy and paste it in the drive’s Info inspector. If we move these two files over to any other OS X-readable drive (including NTFS-formatted Boot Camp partitions), it will use the icon!

OS X can’t write to NTFS, so there are two ways to get these files onto an NTFS drive:

  1. Make OS X write to NTFS by installing NTFS-3G
  2. Copy the two files over in an OS like XP or Vista that can write to NTFS

[ad#vmware]The first method is simple, but not one I wanted to try. NTFS-3G is great – it’s a reverse-engineered open-source read/write driver for NTFS, and works on lots of platforms. But NTFS is finicky, and I’m not too keen on risking the integrity of the drive with an unsupported driver. If you want to use this method, though, customizing the icons is as simple as it is with FAT, once the driver is installed.

I used method 2 – relying on VMware Fusion to allow me to write the icon data to my NTFS drives and using a FAT-formatted flash drive as an intermediary between OS X and Vista. I created my icons, applied them to my flash drive, then booted up Vista in Fusion and copied the two files over in a DOS window. They’re hidden by default, but that shouldn’t slow you down.

Note that this only affects the icons in OS X – it will not allow you to customize the boot icons.

You might also want to read these other posts...

  • Electric Car Over the Internet: My Experience Buying From…
  • How To Connect Everything From Everywhere with ZeroTier
  • Introducing Rabbit: I Bought a Cloud!
  • Tortoise or Hare? Nvidia Jetson TK1
  • How To Install ZeroTier on TrueNAS 12

Filed Under: Apple, Virtual Storage Tagged With: Apple, Boot Camp, FAT, HFS, icon, NTFS, NTFS-3G, OS X, VMware Fusion

Primary Sidebar

Data will expand to fill all available storage capacity

Stephen Foskett

Subscribe via Email

Subscribe via email and you will receive my latest blog posts in your inbox. No ads or spam, just the same great content you find on my site!
 New posts (daily)
 Where's Stephen? (weekly)

Download My Book


Download my free e-book:
Essential Enterprise Storage Concepts!

Recent Posts

How To Install ZeroTier on TrueNAS 12

February 3, 2022

Scam Alert: Fake DMCA Takedown for Link Insertion

January 24, 2022

How To Connect Everything From Everywhere with ZeroTier

January 14, 2022

Electric Car Over the Internet: My Experience Buying From Vroom

November 28, 2020

Powering Rabbits: The Mean Well LRS-350-12 Power Supply

October 18, 2020

Tortoise or Hare? Nvidia Jetson TK1

September 22, 2020

Running Rabbits: More About My Cloud NUCs

September 21, 2020

Introducing Rabbit: I Bought a Cloud!

September 10, 2020

Remove ROM To Use LSI SAS Cards in HPE Servers

August 23, 2020

Test Your Wi-Fi with iPerf for iOS

July 9, 2020

Symbolic Links

    Featured Posts

    Introducing Rabbit: I Bought a Cloud!

    September 10, 2020

    On the Death of Innovation, or “These Kids These Days!”

    May 21, 2012

    How To Connect Everything From Everywhere with ZeroTier

    January 14, 2022

    What is VMware VASA? Not Much (Yet)

    November 11, 2011

    How Will Cisco Recover From The Consumer Strategy Blunder?

    January 2, 2013

    Scaling Storage Is Hard To Do

    June 4, 2013

    Donate Your Swag to School Kids In Need

    July 28, 2010

    Edward Snowden Is Right: We Must Protect The Internet

    March 19, 2014

    The iPhone Revolution 10 Years Later

    January 9, 2017

    Why I Am Biased Against FCoE

    October 21, 2011

    Footer

    Legalese

    Copyright © 2022 · Log in