Shadowing Windows folder (help Steve M!!)

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Michael--J (MichaelJ_at_discussions.microsoft.com)
Date: 11/19/04


Date: Thu, 18 Nov 2004 22:57:03 -0800

Hello,

In a post by Steve Maillet he wrote the following:

>>>
1) All files listed on the BIB files are in the ROM file system (and thus
always read only)
2) dlls and exes listed in the bib file MODULES section are linked and
located for execute in place and cannot be copied because they are no longer
actual files in the exe file format.
3) the root of the file system can be either the ram filesytem (if battery
backed ram is available) or can be an external file system such as a Compact
Flash card or hard drive.
4) you can place a file into the \windows folder and it will be placed into
the root file system (RAM or external device) and override any file with the
same name in the ROM FS. You can use that to provide updates to any
individual file. Deleting the updated file reverts to the one in ROM
5) it is possible to use the binfs support provided in Windows CE to split
up the os image into different regions. (e.g one section of ROM for all the
MS stuff and another for all of your custom stuff) You can then update only
the region required.
<<<

I've managed to persist any changed registry settings to my hard disk so
that they are not lost upon hard resets. Now i'm trying to mount my external
file system (i.e. my Disk On Module) as the root as well as Shadowing the
Windows directory. This would allow me to update applications (i.e. the
associated files) which i built into the OS image without having to re-build
the image all over again (this would be implementing Steve's point 4 above).

Below are my registry settings:

[HKEY_LOCAL_MACHINE\init\BootVars]
   "SYSTEMHIVE"="Documents and Settings\\system.hv"
   "PROFILEDIR"="Documents and Settings"
   "Start DevMgr"=dword:1 ; 1 will use HD for persistent registry....
   "RegistryFlags"=dword:1 ; Aggressive registry flushing.

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
   "MountFlags"=dword:E ; Ready to accept the hive....
                     ; Set this file system as root
                     ; To force this root fs to shadow Windows directory

I then copied a file over to my \Windows directory and restarted the device.
I browse to the \Windows folder only to discover the file isn't there -
shadowing did not take place. Are my registry settings correct? The
MountFlags value was obtained by OR'ing 2 (to specify this is where the
registry goes), 4 (to set the FS as the root), and 8 (to enable shadowing of
the windows directory). I then tried to add the following registry settings
but still no luck:

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
        "MountFlags"=dword:E

Can anyone bring any light into this? Steve?

Thanks.



Relevant Pages

  • Re: Platform Builder and Windows folder files
    ... All files listed on the BIB files are in the ROM file system (and thus ... backed ram is available) or can be an external file system such as a Compact ...
    (microsoft.public.windowsce.embedded)
  • Re: mount extern filesystem
    ... When mounting an external file system as the root filesystem with CE 4.2 ... AFS_FLAG_HIDEROM is specified), so anything in the FILES section of the ROM ... work-around is to pre-populate the "\Windows" directory on the root storage ...
    (microsoft.public.windowsce.platbuilder)
  • Re: File system is not working in Retail Version in WinCE 5.0
    ... process to provide the registry settings to the system. ... and when I'm in debug mode, ... As per your suggestion if there is problem in our FMD, for NAND file system ...
    (microsoft.public.windowsce.embedded)
  • Re: SD-Card Problem with the NEW ROM v80.
    ... The Rom 2.00's file system afford to store UPPERcase char and lowercase ...
    (comp.sys.hp48)
  • RE: Mounting external filesystem
    ... > base ROM image. ... Since the hard disk file system is the root, ... Otherwise your understanding of shadowing is correct: ... getting stored on your persistent file system. ...
    (microsoft.public.windowsce.platbuilder)