overdue-scratch

Author Topic: Additional Partition Types for GUI  (Read 1973 times)

0 Members and 1 Guest are viewing this topic.

nuiluidwde

  • Entrant
  • Posts: 4
Additional Partition Types for GUI
« on: May 15, 2010, 08:42:29 PM »
Hi, I've made a patch that allows a new partition type to recognised by Chameleon, rather than being classed as generic. This means you can specify a new image, and optionally override the volume label.

Put pth.patch somewhere on your hard drive, then run the following to apply the patch and build Chameleon
Code: [Select]
svn co -r HEAD http://forge.voodooprojects.org/svn/chameleon/trunk
find trunk -name ".svn" -depth -exec rm -Rf {} \
patch -u -p1 -i /path/to/pth.patch
make

Now in any theme.plist file, add the following to the bottom:
Code: [Select]
<key>partition_type_handlers</key>
<string>xx:image.png:label;yy:image2.png:;zz:device_ntfs.png:Windows;</string>
Where xx is a partition type, see http://www.win.tue.nl/~aeb/partitions/partition_types-1.html for a list, image.png is the path to any png file (relative to the theme directory), and label is an optional override (leave blank if undesired) for the volume label displayed underneath the icon in Chameleon. Here is an example:
Code: [Select]
1c:device_ntfs.png:VistaOSHere, I have an ASUS recovery partition which is the only way to boot Vista, so '1c' specifies the partition type, device_ntfs.png makes it look like a Windows drive, and VistaOS substitutes the blank partition name with an identifiable label.