Wednesday, September 13, 2006

Recognizing unknown partitions in Windoze

This is the starting point if you are planning to develop an Installable File System Driver (IFSD) for Windoze. You can also use this if you want to format partitions that aren’t visible inside your Windoze box.


First thing’s first, fire up a registry editor. Use regedit or any third party editors. Search for the entry:



HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices

If you’re in the right place then, add a new string value. The name should be the drive letter you wish to associate and should be a drive letter that currently isn’t used by your box. The name along with its value should be of the form:



K:
\Device\Harddisk0\Partition1

In Windoze, hard drive numbers start at 0 and partition numbers start at 1. The above example is equivalent to /dev/hda1. You can also verify your partition table without any third party applications such as Partition Magic, GParted, etc. by running diskmgmt.msc on the command line. The drive K: can be replaced with any free drive letter.


Done! No, not yet. Forgetting the Windoze protocol? Restart your machine for it to take effect.

No comments: