Preface:
We are using a Windows-7-Embedded
image, for making client-ready copies of our software.
The flow is pretty standard:
Windows-7-Embedded
image on the hard-drive.The Problem:
Sometimes, probably due to system crashes, some configurations that are already configured inside the image - reset.
My current problem is with a 'Disable Write Caching' option on the disk. In the image, the option is off . Sometimes, it just resets and turns on .
My Question:
How can I programmatically disable the disk write caching property?
Design Restrictions:
Images (Inside Image -> After Crash):
Clarifications:
There is a registry setting EnableCache you may try to experiment with. It applies to FAT file systems and setting it to 0 shall theoretically disable disk caching. Though I have not tested it.
Look into: HKEY_LOCAL_MACHINE\SYSTEM\StorageManager\FATFS or HKEY_LOCAL_MACHINE\SYSTEM\StorageManager\EXFAT
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.