Hello, I have an x86 WinCE50 system that uses the ATAPI IDE driver for
a system CF card.

Currently, I have the CF card partitioned into 2 parts:
*Partition1 = Fat16 bootable partition with CEPC Nk.bin
*Partition2 = TFAT formatted partition for WinCE use.

I am currently trying to mount the partition 2 as root, but having no
luck at all. I have tried the following approaches.

1) Use MountAsRoot and AutoMount keys for partitions to set which
should mount as root, making sure to set Part1 MountAsBootable=0 so it
does not think system/hive files are on the drive.

Result: Partition 1 still mounts to root. This seemed to have no
effect. Maybe I am messing up the way I use the Profile? (HDProfile
\Part00\ see my reg below)?

2) Use the 'cheating' method to set the PartitionTable key 0x04 to
invalid FS. (suggested here:
http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/e122bf548aab3c7c/c61f11d3a810184f)

[HKLM\System\StorageManager\PartitionTable]
"04"="SYSBOOT"

Result: Both partition 1 and 2 do not mount and the system halts after
storage manager. To my understanding, the first partition formatted
in FAT16 is 0x04. However, shouldn't my TFAT partition be type x0B
(MS-DOS 32 bit FAT)? Perhaps I am wrong in my assumptions of how the
PartitionTable works.

3) Setting the "PartitionDriverName" to blank in an attempt to load
null partition driver
[HKLM\System\StorageManager\Profiles\HDProfile\Part00]
"PartitionDriverName"=""
[HKLM\System\StorageManager\Profiles\HDProfile\Part01]
"PartitionDriverName"="MSPART"

Result: Both partitions still loaded.


Here is where I am at stuck. Can anyone offer advice or help? Thanks
in advance
-t


Below are my current registry settings - some may have been enabled/
disabled per the 3 steps above (which I tried one at a time).
[HKLM\System\StorageManager\Profiles\HDProfile]
"MountAsRom"=dword:0
"MountAsRoot"=dword:0
"MountAsBootable"=dword:0
"MountPermanent"=dword:0
"Flags"=dword:00080064

[HKLM\System\StorageManager\Profiles\HDProfile\FATFS]
"MountAsRom"=dword:0
"MountAsRoot"=dword:0
"MountAsBootable"=dword:0
"MountPermanent"=dword:0
"Flags"=dword:00080064

[HKLM\System\StorageManager\Profiles\HDProfile\Part00]
"AutoMount"=dword:0
"AutoFormat"=dword:0
"AutoPart"=dword:0
"DefaultFileSystem"="FATFS"
; "PartitionDriver"="mspart.dll"
"PartitionDriver"=""
"MountAsRom"=dword:0
"MountAsRoot"=dword:0
"MountAsBootable"=dword:0
"MountPermanent"=dword:0
"Flags"=dword:00080064

[HKLM\System\StorageManager\Profiles\HDProfile\Part01]
"AutoMount"=dword:1
"AutoFormat"=dword:0
"AutoPart"=dword:0
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"MountAsRom"=dword:1
"MountAsRoot"=dword:1
"MountAsBootable"=dword:1
"MountPermanent"=dword:0
"Flags"=dword:00080064

Re: Help with PartitionTable by trucker

trucker
Fri May 09 16:41:58 PDT 2008

Just a quick note - the registry setting in my Part01 "MountAsRom" is
a typo. It actually is set to 0.

Re: Help with PartitionTable by Michel

Michel
Fri May 09 21:18:55 PDT 2008

Try this (note the omission of FATFS at the end!):

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\Part00]
"Folder"="NK"
"AutoFormat"=dword:1
"MountPermanent"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\Part01]
"Folder"="Root"
;Indicate this partition can store the hive registry, mount as root and
make it TFAT
"MountAsBootable"=dword:1
"MountAsRoot"=dword:1
"MountPermanent"=dword:1
"AutoFormat"=dword:1
"FormatTfat"=dword:1
"Flags"=dword:410034


Make sure you use the code (or similar technique) from one of my
previous posts
(http://groups.google.co.nz/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/3607ffc6f69b59e3/851812ab08988a6a?hl=en&lnk=st&q=#851812ab08988a6a)
to create the partitions on the disk.

These are working settings on one of my customers device.

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

trucker wrote:
> Just a quick note - the registry setting in my Part01 "MountAsRom" is
> a typo. It actually is set to 0.

Re: Help with PartitionTable by trucker

trucker
Sun May 11 15:56:22 PDT 2008

Thanks for the help, between your links and ideas and a few random
settings, I am able to get this system working!