Re: ROM-only FS and persisting registry on USB HD

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



They actually can only appear once, although they might be in reginit.ini
multiple times. The last value found there is the one that 'wins'. You can
put the items in platform.reg or project.reg and that will take precedence
over anything in any of the PUBLIC folders, including common.reg.
Documentation for the exact registry location for those flags is in the
help.

You actually would not expect everything to be copied to the 'hard disk'
when you're using the ROM-only filesystem. In fact, most of the things in
nk.bin/Windows folder *can't* be copied to the hard disk because they're not
really files but just execute-in-place pieces of code.

You might try this in a DEBUG build with all of the debug zones for
filesys.exe and device.exe turned on. That should give you some idea of
what's going on. At a guess, I'd say that there's an exception occurring.
It may not even be related to the hive stuff.

Paul T.

"Dusan Arsenijevic" <DusanArsenijevic@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:77AACC5D-20E1-4F9D-B8F3-F3085B7F51ED@xxxxxxxxxxxxxxxx
Thanks for your reply!

I have tried to implement the steps you described but I am still not sure
about the details:
Where exactly should MountAsBootable and MountAsRoot be placed? Must they
appear only once in registry?

At present my device hangs after some time into boot process. The LED on
the
drive shows lots of activity but then becomes constantly lit without
audible
disk activity. When I plug the usb drive into PC I see that the folders
have
been generated, registry hives are there, but the windows folder is not
fully
populated.



"K. S. Huang" wrote:

For USB Disk it might be more complexity, while the driver of USB disk is
not a BuiltIn/Default driver which mean it is loaded by someone else
instead
of just loaded at initial (as IDE Hard Driver driver).
Basically, the USB Disk driver is depends on and loaded USB Host driver
to
so the very first thing is make sure your USB Host driver is loaded in
boot
phase (by enclosed the HCD registries with HIVE BOOT as you did for IDE
and
other registry settings), and the relative USB class key is put into BOOT
HIVE as well so that not only the USB Host (HCD) will be loaded in Early
Boot Phase and the USB Disk could be loaded successful.
And make sure the Device Manager is loaded in Boot Phase 1 by applying
HKEY_LOCAL_MACHINE\init\BootVars\Flags = 3 rather than 1 that only loaded
Storage Manager which is not enough in your case but might work on IDE.

A summary is listed as following
Include the
1) HCD host driver key (Could be a builtIn or PCI based)
2) USB Mass Storage Key usually enclosed with CE_MODULES_USBMSC CESYSGEN
tag
3) USB Disk Storage Profile usually enclosed with CE_MODULES_USBDISK6
CESYSGEN tag
4) Loaded Storage and Device Manager in Boot phase 1
HKEY_LOCAL_MACHINE\init\BootVars\Flags = 3

And also make sure the MountAsRoot and MountAsBootable key are included.

"Dusan Arsenijevic" <DusanArsenijevic@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:7EADB61D-4D66-4322-AF4B-7B8148B4A256@xxxxxxxxxxxxxxxx
Hi,

I have successfuly modified the reg files to achieve ROM-only FS and
persistant hive-based registry on IDE HD, but I am not able to achieve
the
same for USB hard disk or memory stick.

Which (additional) registry keys have to be wrapped in:
; HIVE BOOT SECTION

XXXXX

"Flags"=dword:1000
; END HIVE BOOT SECTION

and where should
"MountAsBootable"=dword:1
and
"MountAsRoot"=dword:1
be placed in this case?
Is there something else I am missing?


(using wince 6.0)
Thanks!





.



Relevant Pages

  • Re: soundcard SoundBlaster PCI128 or SoundBlaster live1024 problem
    ... > What messages are you getting from boot log and dmesg? ... ACPI tables contain no PCI IRQ routing entries ... RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize ... USB Universal Host Controller Interface driver v2.2 ...
    (comp.os.linux.hardware)
  • Re: 0x0000007B
    ... If Windows XP Pro cannot install, then you will not get very far with XPe. ... Next I augmented my USB boot with every file system I could find, ... "Windows could not start because of a computer disk hardware configuration ... > Warning:Could not find a driver for Video Controller ...
    (microsoft.public.windowsxp.embedded)
  • Re: ROM-only FS and persisting registry on USB HD
    ... driver and step into the code to figure out how it failed. ... PCI bus driver and its relative registry setting should be moved into BOOT ... you have to have your USB host controller's driver ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Burning my Windows XP installation CD to USB Flash drive
    ... disk readability error. ... the contents on the USB and boot from it like I would a CD? ... Passcape ISO Burner ... USB drives using any ISO) ...
    (microsoft.public.windowsxp.general)
  • Re: Boot from USB PRM (Partitioned Removable Media ) failed after loading OS2LVM.DMD error: "OS/2 i
    ... OS/2 MCP2 with current fix pak and driver level ... USB Support basic and USBMSD.ADD ... Test the system - system is in Boot Manager Menue ... the PRM partition has a drive letter of C: ...
    (comp.os.os2.bugs)