The Iconfactory

Support

Home Support Item

Can I make custom disk icons for Mac OS 9 and OS X?

During the transition from Mac OS 9 to Mac OS X, the way custom icons are stored on disks changed. We’ll quickly explain what happened and give you some tips to work around the issues.

Disks (or in the language of Unix, “volumes”) in Mac OS X have a special file called ”.VolumeIcon.icns” at the root level of the disk. You can see this in a Terminal window by using the commands:

% cd /Volume/DISKNAME

% ls -la

where DISKNAME is the name of a disk with a custom icon attached.

On Mac OS 9, the disk uses the same mechanism as a folder; a hidden file named “Icon\r” at the root level of the disk contains the custom icon. You can see this from a Terminal using the same commands as above. The only difference is that the file will be displayed as “Icon?”. The question mark is displayed because the OS doesn’t know how to display the carriage return in the file name (represented by ”\r”.)

So, you have a situation where the two versions of the Mac OS are looking for different files. If you’re trying to make a disk that mounts correctly on both, you’ll need to supply both files.

Let’s assume that you’re working with a folder that you’ll eventually use with Toast or some other disk creation tool (we’ll refer to this folder as a “project folder” in the following instructions.)

You can quickly create the “Icon\r” file required by Mac OS 9 using the standard copy and paste technique with Get Info on your project folder. You can use the Terminal to verify that “Icon?” is displayed in the folder.

Creating the ”.VolumeIcon.icns” file is a bit trickier. The reason is because Unix (and the Finder) doesn’t want to display a file with a period as the first character in the name. Any attempt to rename a file with a period at the beginning will cause the Finder to display a warning dialog. This means you’ll have to work at a Terminal prompt.

The following step-by-step instructions will help you out. The “project folder” referred to below is the folder where you are storing the contents of the disk you are creating:

  1. Create the .icns file using IconBuilder Pro.
  2. When you save the file, make sure the Platform is set to “Mac” and the ”.icns File” type is selected.
  3. Save the file using the name “VolumeIcon.icns” (without the period in front) in the project folder.
  4. Open the Terminal application in the Applications > Utilities folder
  5. In the Terminal window, type “cd” followed by a space. Then drag your project folder into the Terminal window. This will save you from having to type the Unix path name. Press return and your Terminal will now be able to work with the contents of the project folder.
  6. To see the contents of the folder, do “ls -la” followed by a return. This should show you a list of the files, including the “VolumeIcon.icns” you saved above and the “Icon?” file created by copy/paste. If you don’t see these files, repeat the previous step to “cd” again.
  7. In Unix the “mv” command is used to rename files. Since our goal is to rename the “VolumeIcon.icns” file to ”.VolumeIcon.icns”, we’ll use this command in the Terminal window: “mv VolumeIcon.icns .VolumeIcon.icns”. Check your typing and press return.

Because the filename contains a period, you won’t see the results of your efforts in the Finder. However, after you burn the contents of the project folder onto a CD-ROM, you should see the icon show up on the desktop for both Mac OS 9 and Mac OS X.

Search for similar items

Can't Find It?

We've tried to anticipate most questions you might have. However, if you can't find the answer you're looking for here, send us your query and we'll answer it personally.

Send to: