Hi

Is there some registry key (or something else) that i can read
from a boot driver in order to know if the last boot was successfull?
(no BSOD)

And if there was a BSOD, is there any way to know what driver caused
it, or what was the last loading driver?

Thanks

RE: How to know if the last boot was successfull by pavel_a

pavel_a
Tue Aug 02 10:05:06 CDT 2005

"Omer" wrote:
> Hi
>
> Is there some registry key (or something else) that i can read
> from a boot driver in order to know if the last boot was successfull?
> (no BSOD)

Not exactly a registry key. Look in MSDN about NotifyBootConfigStatus.
You can add a bootverificationprogram that talks to your driver.

> And if there was a BSOD, is there any way to know what driver caused
> it, or what was the last loading driver?

Again, not exactly. The dump analyzer of windbg has a
"knowledge base" that allows it to guess the root cause of the crash.
Of course it is not always the last driver.
An unsigned driver from unknown vendor possibly is the culprit.

--PA



Re: How to know if the last boot was successfull by Norman

Norman
Tue Aug 02 19:36:48 CDT 2005

"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:F687B902-1685-44B9-BC6C-534C544FB03C@microsoft.com...
> "Omer" wrote:
>> And if there was a BSOD, is there any way to know what driver caused it,
>> or what was the last loading driver?
>
> Again, not exactly. The dump analyzer of windbg has a "knowledge base"
> that allows it to guess the root cause of the crash.
> Of course it is not always the last driver.

It is still interesting to know what was the last loading driver, because
there is a somewhat higher than average probability that the BSOD was due to
either that driver or the next one which was supposed to load next.

> An unsigned driver from unknown vendor possibly is the culprit.

A signed driver from a known vendor possibly is the culprit too. Especially
in some known cases.


Re: How to know if the last boot was successfull by Arkady

Arkady
Wed Aug 03 02:07:50 CDT 2005

Another option to read system log , obviously if that option "write an event
to system log" set in "System failure" options
Arkady

"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:F687B902-1685-44B9-BC6C-534C544FB03C@microsoft.com...
> "Omer" wrote:
>> Hi
>>
>> Is there some registry key (or something else) that i can read
>> from a boot driver in order to know if the last boot was successfull?
>> (no BSOD)
>
> Not exactly a registry key. Look in MSDN about NotifyBootConfigStatus.
> You can add a bootverificationprogram that talks to your driver.
>
>> And if there was a BSOD, is there any way to know what driver caused
>> it, or what was the last loading driver?
>
> Again, not exactly. The dump analyzer of windbg has a
> "knowledge base" that allows it to guess the root cause of the crash.
> Of course it is not always the last driver.
> An unsigned driver from unknown vendor possibly is the culprit.
>
> --PA
>
>



Re: How to know if the last boot was successfull by Arkady

Arkady
Wed Aug 03 02:44:12 CDT 2005

Additionally look at http://support.microsoft.com/kb/192463/ and
http://support.microsoft.com/kb/314084/EN-US/
Arkady
"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:eZtYeG$lFHA.3144@TK2MSFTNGP12.phx.gbl...
> Another option to read system log , obviously if that option "write an
> event to system log" set in "System failure" options
> Arkady
>
> "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
> news:F687B902-1685-44B9-BC6C-534C544FB03C@microsoft.com...
>> "Omer" wrote:
>>> Hi
>>>
>>> Is there some registry key (or something else) that i can read
>>> from a boot driver in order to know if the last boot was successfull?
>>> (no BSOD)
>>
>> Not exactly a registry key. Look in MSDN about NotifyBootConfigStatus.
>> You can add a bootverificationprogram that talks to your driver.
>>
>>> And if there was a BSOD, is there any way to know what driver caused
>>> it, or what was the last loading driver?
>>
>> Again, not exactly. The dump analyzer of windbg has a
>> "knowledge base" that allows it to guess the root cause of the crash.
>> Of course it is not always the last driver.
>> An unsigned driver from unknown vendor possibly is the culprit.
>>
>> --PA
>>
>>
>
>



Re: How to know if the last boot was successfull by Doron

Doron
Wed Aug 03 01:48:12 CDT 2005

In all my time debugging failed / hung boots, the last driver to load during
the boot process is typically *NOT* the culprit.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Norman Diamond" <ndiamond@community.nospam> wrote in message
news:uVVm1N8lFHA.764@TK2MSFTNGP14.phx.gbl...
> "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
> news:F687B902-1685-44B9-BC6C-534C544FB03C@microsoft.com...
>> "Omer" wrote:
>>> And if there was a BSOD, is there any way to know what driver caused it,
>>> or what was the last loading driver?
>>
>> Again, not exactly. The dump analyzer of windbg has a "knowledge base"
>> that allows it to guess the root cause of the crash.
>> Of course it is not always the last driver.
>
> It is still interesting to know what was the last loading driver, because
> there is a somewhat higher than average probability that the BSOD was due
> to
> either that driver or the next one which was supposed to load next.
>
>> An unsigned driver from unknown vendor possibly is the culprit.
>
> A signed driver from a known vendor possibly is the culprit too.
> Especially
> in some known cases.
>



Re: How to know if the last boot was successfull by Norman

Norman
Wed Aug 03 23:19:42 CDT 2005

I agree, if the boot failed or hanged then it was more likely due to an
action that was attempted after successfully loading drivers whose names
made it into the boot log.

But if the boot BSODed due to a defective action by a driver, isn't it
possible that the defective driver's name was already recorded in the boot
log when it was about to be loaded?

"Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
news:%23cwLSd$lFHA.3300@TK2MSFTNGP15.phx.gbl...
> In all my time debugging failed / hung boots, the last driver to load
> during the boot process is typically *NOT* the culprit.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "Norman Diamond" <ndiamond@community.nospam> wrote in message
> news:uVVm1N8lFHA.764@TK2MSFTNGP14.phx.gbl...
>> "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
>> news:F687B902-1685-44B9-BC6C-534C544FB03C@microsoft.com...
>>> "Omer" wrote:
>>>> And if there was a BSOD, is there any way to know what driver caused
>>>> it,
>>>> or what was the last loading driver?
>>>
>>> Again, not exactly. The dump analyzer of windbg has a "knowledge base"
>>> that allows it to guess the root cause of the crash.
>>> Of course it is not always the last driver.
>>
>> It is still interesting to know what was the last loading driver, because
>> there is a somewhat higher than average probability that the BSOD was due
>> to
>> either that driver or the next one which was supposed to load next.
>>
>>> An unsigned driver from unknown vendor possibly is the culprit.
>>
>> A signed driver from a known vendor possibly is the culprit too.
>> Especially
>> in some known cases.
>>
>
>


Re: How to know if the last boot was successfull by Omer

Omer
Thu Aug 04 05:32:02 CDT 2005

The event log I accessible during boot time ?

My purpose is to know if my boot driver caused the BSOD, and if so,
unload it in the next boot.

Regarding to NotifyBootConfigStatus: let's say my driver causes a
BSOD in the boot process.
When do I have the chance to call NotifyBootConfigStatus and pass it
FALSE in order to load a configuration without my driver?


Re: How to know if the last boot was successfull by Mark

Mark
Thu Aug 04 06:26:33 CDT 2005

Omer wrote:
> The event log I accessible during boot time ?
>
> My purpose is to know if my boot driver caused the BSOD, and if so,
> unload it in the next boot.
>
> Regarding to NotifyBootConfigStatus: let's say my driver causes a
> BSOD in the boot process.
> When do I have the chance to call NotifyBootConfigStatus and pass it
> FALSE in order to load a configuration without my driver?
>
Install yourself with a registry value in HKLM/CCS/Services/YourDriver
that is set to 'notbootedsuccessfully' on install and that you clobber
to 'bootedsuccessfully' the first time you manage to boot, for some
value of boot. Of course this approach is a one-time switch.

--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

Re: How to know if the last boot was successfull by Pavel

Pavel
Thu Aug 04 19:40:10 CDT 2005

So the bootlog will give the last loaded driver.
--PA

"Norman Diamond" <ndiamond@community.nospam> wrote in message news:uhTVAvKmFHA.2852@TK2MSFTNGP15.phx.gbl...
>I agree, if the boot failed or hanged then it was more likely due to an action that was attempted after successfully loading
>drivers whose names made it into the boot log.
>
> But if the boot BSODed due to a defective action by a driver, isn't it possible that the defective driver's name was already
> recorded in the boot log when it was about to be loaded?
>
> "Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message news:%23cwLSd$lFHA.3300@TK2MSFTNGP15.phx.gbl...
>> In all my time debugging failed / hung boots, the last driver to load during the boot process is typically *NOT* the culprit.
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no rights.
>>
>>
>> "Norman Diamond" <ndiamond@community.nospam> wrote in message news:uVVm1N8lFHA.764@TK2MSFTNGP14.phx.gbl...
>>> "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
>>> news:F687B902-1685-44B9-BC6C-534C544FB03C@microsoft.com...
>>>> "Omer" wrote:
>>>>> And if there was a BSOD, is there any way to know what driver caused it,
>>>>> or what was the last loading driver?
>>>>
>>>> Again, not exactly. The dump analyzer of windbg has a "knowledge base"
>>>> that allows it to guess the root cause of the crash.
>>>> Of course it is not always the last driver.
>>>
>>> It is still interesting to know what was the last loading driver, because
>>> there is a somewhat higher than average probability that the BSOD was due to
>>> either that driver or the next one which was supposed to load next.
>>>
>>>> An unsigned driver from unknown vendor possibly is the culprit.
>>>
>>> A signed driver from a known vendor possibly is the culprit too. Especially
>>> in some known cases.
>>>
>>
>>
>



Re: How to know if the last boot was successfull by Pavel

Pavel
Thu Aug 04 19:42:33 CDT 2005

Is it that hooking driver? Then there is no "if"...
it surely caused the last BSOD.
--PA

"Omer" <Omerb99@gmail.com> wrote in message news:1123151522.252577.292180@g47g2000cwa.googlegroups.com...
> The event log I accessible during boot time ?
>
> My purpose is to know if my boot driver caused the BSOD, and if so,
> unload it in the next boot.
>
> Regarding to NotifyBootConfigStatus: let's say my driver causes a
> BSOD in the boot process.
> When do I have the chance to call NotifyBootConfigStatus and pass it
> FALSE in order to load a configuration without my driver?
>