[G1 Android Development] stevemartin1991:
I have found out the secret to creating partitions on a SD card without using linux or windows mobile.

The trick is to make windows think your SD card is a local disk and not removable storage.

Here is how you do it: (its a little detailed so nonexperienced users can follow)

1. Determin the way the computer sees the SD card You could use a card reader.

2. Open the start menu on your windows computer and click Run.

3. Type Regedit and hit ENTER

4. Navigate to this directory (opening folders)

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBST OR

5. Now there should be a list of folders all begining with the words: Disk&Ven

6. One of the files (or more) will be named after your prefered method (discused in step 1)

For people using mstream Card Reader the file will be called

Disk&Ven_mStream&Prod_CardReader&Rev_1.0

Softick Card Exporter users should have a file named like this:

Disk&Ven_Softick&Prod_Card_Export&Rev_0001

So on and so forth...

7. Rightclick on the folder that matches your method as descibed in step 6 and click: Copy key name

8. Open up a text document (any type)

9. Rightclick and paste in the text document, the key name should look like this:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBST OR\Disk&Ven_mStream&Prod_CardReader&Rev_1.0.......just a few examples

10. Delete the words before USBSTOR so you are left with somthing like this:

USBSTOR\Disk&Ven_mStream&Prod_CardReader&Rev_1.0

11. Highlight the text that is left, rightclick and hit copy (*you will use this later*)

12. You can close the window called Registry Editor at this time, you will no longer be using this. You can also MINIMIZE the text document that has your key name that you copied in step 11.

13 Now go to this link and download the file: http://www.xpefiles.com/viewtopic.php?t=92

(preferably download to desktop)

14 If you do not have winzip or similar (winrar, 7zip ...), go to winzip.com and download the trial.

15 Unzip the file you just downloaded and pour (extract) the contents of the zip file into a new folder.

16 Inside the new folder you should see the following files:

cfadisk.c

cfadisk.inf

cfadisk.rc

cfadisk.sys

makefile

sources

17 Open the file: cfadisk.inf (It should automanicaly open in notepad)

18 Now you should be looking at alot of stuff like this:

[Version]

Signature="$Windows NT$"

Class=DiskDrive

ClassGuid={4D36E967-E325-11CE-BFC1-08002BE10318}

Provider=%HGST%

LayoutFile=layout.inf

DriverVer=12/14/2002,1.00.0000.1

[Manufacturer]

%HGST% = cfadisk_device

[DestinationDirs]

cfadisk_copyfiles=12 ; %SystemRoot%\system32\drivers

gendisk_copyfiles=12 ; %SystemRoot%\system32\drivers

.... and more stuff

19 Look for the a set of lines that start like this:

%Microdrive_devdesc% = cfadisk_install,(*other stuff*)

20 Highlight the words that fallow the cfadisk_install and paste your own key ontop of it.

21 Now the first line should look like this:

%Microdrive_devdesc% = cfadisk_install,USBSTOR\Disk&Ven_mStream&Prod_CardReader&Rev_1.0

*remember that your USBSTOR key will be different depending on method as described in step 1*

22 Replace all the other %Microdrive_devdesc% with your key. (there should be 10 replacements in all)

23 Save this file now.

24 You can now close all windows except for this one (the one your reading )

25 Take a deap breath and relax a bit, were halfway done

OK then...

26 Connect your SD card to your computer now (using the method you decided in step 1)

27 Open up "My Computer"

28 Rightclick on your SD card and click Properties

29 There are tabs on the property screen labled as fallowing:

General, auto play, tools, hardware, Sharing

Click on Hardware

30 If you got this far without getting confused, you should be able to identify your method of connection from the list (as in step 1)

Mine looks like this:

mstream cardreader USB Device

31 Highlight that device and click on the properties buton twards the bottom of the window.

32 Now another window should pop up with the following tabs:

General, Policies, volumes, driver

Click on Driver

33 Click the button called: Updated Driver

34 The windows hardware wizard should pop up.

35 DO NOT CLICK NEXT! , or at least not yet...

36 You want to Install a driver the advanced way so checkmark:

"Install from a list or specific location (advanced)"

37 Now you can click next...

38 You are not searching for a driver (you just made one) so click the option:

"Dont search. I will choose the driver to install"

39 click next for the second time

40 Click on the button called: Have disk...

41 Click the button called "Browse.." and navigate it to the new folder you created in step 15

42 Click on the cfadisk.inf and click the button called: Open

43 now click OK..

The computer will now install the driver you have modified. Eventualy you will get popups notifiing you that the driver is not signed... Click continue anyway

When the computer finishes instaling the driver, It may ask you to restart, do so (come back though to this page, were not done yet but very close)

Windows is now restarting...

OK Your back, I thought you fell asleep or somting.

NOW on to step 44

44. If you open up "my computer" you should notice that your computer now recognizes your SD card as a local disk, If not, you have done somthing wrong.

45 If nothing is wrong you can now start partitioning your sd card (you can also defrag it, though I dont know if that will do anything)

To partition an SD card, Open up the start menu and go to Control pannel

In control pannel open up admisrative tools, You should now see the program "computer management" from there you can go to disk manager and partition your sd card

Whatever you do, DO NOT MESS WITH YOUR C: drive.

If you dont know what your doing, google how to partition stuff and learn.

Now you can partition your sd cards

try this at r own risk i take no blame if anything goes wrong