Bootcamp Icon fix

Posted at July 01, 2015.

If you like to give each disk appearing on your Macs desktop it’s own icon, and are a Bootcamp user, you’re probably aware that the Bootcamp drive icon is reset after each reboot. Fortunately, this can be fixed in an easy automated fashion.

The only requirement is NTFS write support. To get this, install osxfuse and ntfs-3g, or enable the built-in NTFS write support (find details here).

First, set the icon you wish to use like you always would (right-click, Get Info, click on icon, cmd+v to paste new icon). This creates the hidden file .VolumeIcon.icns in the root of your disk. Copy it somewhere safe:

cp /Volumes/TX-55/.VolumeIcon.icns /Users/thomas/Pictures/Icons/VolumeIcon.icns

Next, we need to create a little shell script that copies this file again and sets the icon flag after they are lost on reboot:

vim /Users/thomas/bin/

cp /Users/thomas/Pictures/Icons/VolumeIcon.icns /Volumes/TX-55/.VolumeIcon.icns
SetFile -a C /Volumes/TX-55

chmod a+x /Users/thomas/bin/

Finally create a LaunchAgent property list:

vim ~/Library/LaunchAgents/de.xythobuz.fixBootcamp.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">


You can now set this LaunchAgent to be executed on each Login:

launchctl load ~/Library/LaunchAgents/de.xythobuz.fixBootcamp.plist

To test it without logging out and back in:

launchctl start de.xythobuz.fixBootcamp

That was easy, right? :) Tested on OS X Yosemite 10.10.4...

comments powered by Disqus