I am trying to use hive based registry, on my platform, with a ATA harddisk.
I have add following registry to my project.reg, and copy the generated
default.hv to my harddisk. ( the ata driver and harddisk is working fine
under ram registry)

; @CESYSGEN IF FILESYS_FSREGHIVE
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="Hard Disk\\default.hv"
"Start DevMgr"=dword:1
"NoDefaultUser"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ATAPIMaster]
"Prefix"="DSK"
"Dll"="s1e_atapi.dll"
"DeviceId"=dword:0
"Ioctl"=dword:4
"Object"="CreateGeneric"
"Settings"=dword:F
"SysIntr"=dword:11
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
"MountFlags"=dword:2
; END HIVE BOOT SECTION

after boot up I can see atadriver and fatfs loaded, but is somehow die after
fat system inited

: FATFS!OpenVolume: write verify disabled
: FATFS!OpenVolume: extra FAT on format disabled
: FATFS!OpenVolume: force write through enabled
: FATFS!OpenVolume: Codepage = 1
: FATFS!InitVolume: driver disagrees with BPB (BPB CHS=765:128:63)
: FATFS: Sec/FAT = 6027!!!
: FATFS: CacheSize = 512!!!
: FS: Registering file system Hard Disk, index 4, flags 0x00000000

does any one know what happening?
Thanks



Expand AllCollapse All

RE: Hive based registry on FATFS + hardisk by sloh

sloh
Tue Aug 31 17:54:22 CDT 2004

Like I mentioned in your later post, since it says "flags=0x00000000" it's
not getting your MountFlags value.

It sounds like ATAPIMaster is not using the HDProfile. I think if under
ATAPIMaster you set "Profile"="HDProfile" you might be okay. Or if it is
using some other profile, you will have to create registry keys for that
profile (you can copy the HDProfile keys) and add MountFlags=0x2 there.

Sue
sloh@microsoft.com (remove "online" from reply-to address)
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________

Windows Embedded Developer Center (http://msdn.microsoft.com/embedded)
Windows Embedded FAQ
(http://www.microsoft.com/windows/embedded/faq/default.asp)

Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let
us know!
https://www.windowsembeddedeval.com/community/newsgroups