How soon in the startup process is it safe for a service to access the filesystem?

  • Thread starter Thread starter T. L-Rasmussen
  • Start date Start date
T

T. L-Rasmussen

I have coded a native c++ service which must flip a flag in the
boot.ini as soon as possible during boot. I assume that this can be
controlled programmatically by setting the loadordergroup in
CreateService. I am uncertain, however, if this is possible at all,
and if so: what group to select.

Please share your knowledge regarding this (rather long, I admit)
topic.

Best regards,
Tommy
 
Once the OS is loading services, boot.ini is out of the picture. Can you
describe a little more of what you are trying to change?

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
 
Yes. I need to change partition(1) to partition(2) as early in the
startup process as possible. Partition(2) is a recovery partition thus
enabling the device to reboot in some sort of custom safe mode should
anything fail during startup. If, however, the startup runs smoothly,
partition(2) will be reset to partition(1).

Best regards,
Tommy
 
Is this a remote or unattended system? If not, why not use the menu that
appears from boot.ini with a timeout?

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit

Yes. I need to change partition(1) to partition(2) as early in the
startup process as possible. Partition(2) is a recovery partition thus
enabling the device to reboot in some sort of custom safe mode should
anything fail during startup. If, however, the startup runs smoothly,
partition(2) will be reset to partition(1).

Best regards,
Tommy
 
Another possible approach would be to use a Linux type boot loader
to invoke the NT boot loader on the correct partition. Since the
Linux boot loaders are open source, you can customize the behavior.


Yes. I need to change partition(1) to partition(2) as early in the
startup process as possible. Partition(2) is a recovery partition thus
enabling the device to reboot in some sort of custom safe mode should
anything fail during startup. If, however, the startup runs smoothly,
partition(2) will be reset to partition(1).

Best regards,
Tommy
 
My hands are kinda tied since the sketched strategy is a specific
client request. So, I just need an answer to the original question.

/Tommy
 
Back
Top