HFS CUSTOM VOLUME/FOLDER ICONS
To give an HFS CD a custom icon, make sure the root (top level) folder includes a standard Macintosh volume icon file. To give a volume a custom icon on a Macintosh, an icon has to be pasted over the volume's icon in the "Get Info" box of the volume. This creates an invisible file called 'Icon\r' ('\r' is the "carriage return" character) in the root folder.A custom folder icon is very similar - an invisible file called 'Icon\r' exits in the folder itself.Probably the easiest way to create a custom icon that mkisofs can use is to format a blank HFS floppy disk on a Mac and paste an icon to its "Get Info" box. If using Linux with the HFS module installed, mount the floppy using something like:
The floppy will be mounted as a CAP file system by default. Then run mkisofs using something like:
mount -t hfs /dev/fd0 /mnt/floppy
If you are not using Linux, then you can use the hfsutils to copy the icon file from the floppy. However, care has to be taken, as the icon file contains a control character, e.g.,
mkisofs --cap -o output source_dir /mnt/floppy
where '^V^M' is control-V followed by control-M. Then run mkisofs by using something like:
hmount /dev/fd0
hdir -a
hcopy -m Icon^V^M icon_dir/icon
The procedure for creating/using custom folder icons is very similar - paste an icon to folder's "Get Info" box and transfer the resulting 'Icon\r' file to the relevant directory in the mkisofs source tree.You may want to hide the icon files from the ISO9660 and Joliet trees.To give a custom icon to a Joliet CD, follow the instructions found at http://www.fadden.com/cdrfaq/faq03l#[3-21]
mkisofs --macbin -o output source_dir icon_dir