Dear all,

I am working with a third party BSP that provides a driver for Compact
Flash devices, jatapi.dll.
My Compact Flash has two partitions. A primary DOS partition and an
EXT DOS partition. The first one contains the WinCE6 image, that is
why I want it to be hidden.
When I boot the device I see two folders, "Storage Card" and "Storage
Card2", each one pointing to a partition.
These are the registry settings:

[HKEY_LOCAL_MACHINE\Drivers\Builtin\JAtapi]
Dll = jatapi.dll
Flags = 0x00001000
IClass = ...
IoBase = 1f0 3f4 170 374
IoLen = 20 20 20 20
Order = 0x00000002
Prefix = IDE

[HKEY_LOCAL_MACHINE\Drivers\Builtin\JAtapi\Device0]
DeviceId = 0x00000000
Dll = jatapi.dll
Flags = 0x00001000
IClass = ...
Ioctl = 0x00000004
Prefix = DSK
Settings = 0x00000000

[HKEY_LOCAL_MACHINE\Drivers\Builtin\JAtapi\Device1]
DeviceId = 0x00000001
***same as Device1
[HKEY_LOCAL_MACHINE\Drivers\Builtin\JAtapi\Device2]
DeviceId = 0x00000002
***same as Device1
[HKEY_LOCAL_MACHINE\Drivers\Builtin\JAtapi\Device3]
DeviceId = 0x00000003
***same as Device1

[HKEY_LOCAL_MACHINE\System\Storage Manager\Profiles\HDProfile]
MountAsBootable = 1
Folder = Storage Card

I have tried adding subkey "MountHidden = 1" in HDProfile but,
obviously, both of the partitions desapeared.

I do not manage to assign different profiles to each partition. Could
someone please help me?

Thaks in advance.

maite

Re: Two partitions in a block device. Want to hide one by Valter

Valter
Tue Sep 25 10:23:02 CDT 2007

maite <maiuri7@gmail.com> wrote in
news:1190730825.402849.99970@n39g2000hsh.googlegroups.com:

> Dear all,
>
> I am working with a third party BSP that provides a driver for
> Compact Flash devices, jatapi.dll.
> My Compact Flash has two partitions. A primary DOS partition and
> an EXT DOS partition. The first one contains the WinCE6 image,
> that is why I want it to be hidden.
[...]
> I have tried adding subkey "MountHidden = 1" in HDProfile but,
> obviously, both of the partitions desapeared.
>
> I do not manage to assign different profiles to each partition.
> Could someone please help me?

You can put the mounthidden flag under the
[HKEY_LOCAL_MACHINE\System\Storage Manager\Profiles\HDProfile
\<partition name>]
key.
By default partitions are named Part00, Part01 etc.



--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)

Re: Two partitions in a block device. Want to hide one by maite

maite
Wed Sep 26 01:16:25 CDT 2007

>
> You can put the mounthidden flag under the
> [HKEY_LOCAL_MACHINE\System\Storage Manager\Profiles\HDProfile
> \<partition name>]
> key.
> By default partitions are named Part00, Part01 etc.
>

Thanks Valter, for your hint. But it did not work.
Any other idea??


Re: Two partitions in a block device. Want to hide one by Valter

Valter
Wed Sep 26 02:39:21 CDT 2007

maite <maiuri7@gmail.com> wrote in news:1190787385.812753.254850
@r29g2000hsg.googlegroups.com:


[...]
>> You can put the mounthidden flag under the
>> [HKEY_LOCAL_MACHINE\System\Storage Manager\Profiles\HDProfile
>> \<partition name>]
>> key.
>> By default partitions are named Part00, Part01 etc.
>
> Thanks Valter, for your hint. But it did not work.
> Any other idea??

It should work.
Try to enable the debug zones of mspart, fat and filesystem manager to
understand what went wrong.
Are you sure about partition names? Try to write a simple application
that uses FindFirstPartition/FindNextPartition to retrieve partition
names.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)

Re: Two partitions in a block device. Want to hide one by maite

maite
Fri Sep 28 02:00:57 CDT 2007

> Try to enable the debug zones of mspart, fat and filesystem manager to
> understand what went wrong.

Unfortunately, I can not use the debug version of the image since I
cannot download it. There is a problem with the third party BSP and we
are trying to contact the developers to solve it.

> Are you sure about partition names? Try to write a simple application
> that uses FindFirstPartition/FindNextPartition to retrieve partition
> names.

I have been trying to get the partition names but I find no way. I
cannot find the right "device name" for OpenStore() and it returns an
invalid handle. I have also tried with FindFirstStore to see if I can
get the name that way, but I also get an invalid handle. So I can't
FindFirstPartition/FindNextPartition.

Thanks a lot for your help Valter, but I better ask the BSP developers
for help if I don't want to lose to much time with this.


Re: Two partitions in a block device. Want to hide one by Valter

Valter
Fri Sep 28 02:24:22 CDT 2007

maite <maiuri7@gmail.com> wrote in
news:1190962857.085927.47300@o80g2000hse.googlegroups.com:

[...]
> I have been trying to get the partition names but I find no way. I
> cannot find the right "device name" for OpenStore() and it returns
> an invalid handle. I have also tried with FindFirstStore to see if
> I can get the name that way, but I also get an invalid handle. So
> I can't FindFirstPartition/FindNextPartition.

Using FindFirstStore/FindNextStore you should be able to enumerate
stores.
Don't forget to set cbSize member of STOREINFO to sizeof(STOREINFO)
before invoking the FindFirstStorefunction.
Then you can use the szDeviceName member of STOREINFO to open the
store and call FindFirstPartition/FindNextPartition on it (and also
set the cbSize member of PARTINFO to sizeof(PARTINFO)!).

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)

Re: Two partitions in a block device. Want to hide one by maite

maite
Mon Oct 01 01:30:23 CDT 2007

> Using FindFirstStore/FindNextStore you should be able to enumerate
> stores.
> Don't forget to set cbSize member of STOREINFO to sizeof(STOREINFO)
> before invoking the FindFirstStorefunction.
> Then you can use the szDeviceName member of STOREINFO to open the
> store and call FindFirstPartition/FindNextPartition on it (and also
> set the cbSize member of PARTINFO to sizeof(PARTINFO)!).
>

Interesting detail that one, about the size. Thanks for your patience
Valter.
Now I can see the first partition, Part00, and when adding MountHidden
=1 for it everything works fine.

Thank you very much.




Re: Two partitions in a block device. Want to hide one by maite

maite
Thu Oct 04 09:35:51 CDT 2007

I found an easier way to get the names of the partitions.
Just add the "Storage Manager Control Panel Applet" catalog item and
boot the device.
This application will let you know which are the available storage
devices and their partitions and all the necessary names.