Newbie! (some basic questions)

Hi everyone,

I’m new to WDM and filter drivers. I’m trying to write a storage filter
driver for dumping all the CDB packets sent to the disks.
I tried to compile and run the DDK’s diskperf example (it looks like the
closest example to what I’m trying to write) but since then I can’t boot my
system - it keep crashing somewhere on the system - I can’t locate where it
crashing (using SoftICE) since that SoftICE itself can’t load the debug
symbols. I do wrote some device drivers in the past but these were NT4
legacy drivers to control PCI based hardware devices and I have little
knowledge on WDM / filter drivers.

My questions:

  1. What is the best method to prevents a boot device from loading? Can I
    still save a copy of the registry files and restore them from another
    Windows 2000 system (as I did on NT4)? I tried to disable the diskperf
    driver from the recovery console (using the installation CD) but it didn’t
    work either. Later, I found out a boot driver with the same name installed
    on the other Win2K system that I have on the same computer.
  2. Anyone have a better example for storage filter drivers? or at last give
    me some hints?

thanks,
Ziv Barber


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> 1. What is the best method to prevents a boot device from loading?

Maybe LastKnownGood configuration or such?

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

LastKnownGood -> not working

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 15, 2001 5:38 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Newbie! (some basic questions)

  1. What is the best method to prevents a boot device from loading?

Maybe LastKnownGood configuration or such?

Max


You are currently subscribed to ntdev as: xxxxx@siliquent.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Sounds like you need to do some form of remote debugging using either SI or
Windbg. I’m not sure about SI, but with Windbg you can see all drivers and
system components loading before you crash.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ziv Barber
Sent: Thursday, November 15, 2001 5:55 AM
To: NT Developers Interest List
Subject: [ntdev] Newbie! (some basic questions)

Hi everyone,

I’m new to WDM and filter drivers. I’m trying to write a storage filter
driver for dumping all the CDB packets sent to the disks.
I tried to compile and run the DDK’s diskperf example (it looks like the
closest example to what I’m trying to write) but since then I can’t boot my
system - it keep crashing somewhere on the system - I can’t locate where it
crashing (using SoftICE) since that SoftICE itself can’t load the debug
symbols. I do wrote some device drivers in the past but these were NT4
legacy drivers to control PCI based hardware devices and I have little
knowledge on WDM / filter drivers.

My questions:

  1. What is the best method to prevents a boot device from loading? Can I
    still save a copy of the registry files and restore them from another
    Windows 2000 system (as I did on NT4)? I tried to disable the diskperf
    driver from the recovery console (using the installation CD) but it didn’t
    work either. Later, I found out a boot driver with the same name installed
    on the other Win2K system that I have on the same computer.
  2. Anyone have a better example for storage filter drivers? or at last give
    me some hints?

thanks,
Ziv Barber


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Again, maybe I have an overly simplistic approach here…but if you just want to keep it from loading to recover from a problem or
something, I just rename the sys file…the IoManager won’t be able to find the driver to load it. Of course, if the driver is
needed to boot this won’t work…but then you probably wouldn’t want to prevent it from loading if it was needed.

Shaun

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Ziv Barber
Sent: Thursday, November 15, 2001 8:23 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Newbie! (some basic questions)

LastKnownGood -> not working

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 15, 2001 5:38 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Newbie! (some basic questions)

  1. What is the best method to prevents a boot device from loading?

Maybe LastKnownGood configuration or such?

Max


You are currently subscribed to ntdev as: xxxxx@siliquent.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@tenpennies.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Boot from setup CD, select repair, go to recovery console and type “disable
[devicedriverid]” … listdev or list command can
actually show all ID’s.

It’s also good to have recovery console installed on the box so you don’t
need CD to go to it anymore.

regards,

Adel.

----- Original Message -----
From: “Ziv Barber”
To: “NT Developers Interest List”
Sent: Thursday, November 15, 2001 11:22 AM
Subject: [ntdev] Re: Newbie! (some basic questions)

> LastKnownGood -> not working
>
> -----Original Message-----
> From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
> Sent: Thursday, November 15, 2001 5:38 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Newbie! (some basic questions)
>
>
> > 1. What is the best method to prevents a boot device from loading?
>
> Maybe LastKnownGood configuration or such?
>
> Max
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@siliquent.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@cifnet.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I usually boot thru a secondary OS like DOS and rename the driver.sys file … thats it the load fails…u escaped ur BSOD…
but if u are writing a driver thats important to load at boot time… this cant help it out…!!! any other ideas regarding this ??
Adel Abushaev wrote: Boot from setup CD, select repair, go to recovery console and type “disable
[devicedriverid]” … listdev or list command can
actually show all ID’s.

It’s also good to have recovery console installed on the box so you don’t
need CD to go to it anymore.

regards,

Adel.

----- Original Message -----
From: “Ziv Barber”
To: “NT Developers Interest List”
Sent: Thursday, November 15, 2001 11:22 AM
Subject: [ntdev] Re: Newbie! (some basic questions)

> LastKnownGood -> not working
>
> -----Original Message-----
> From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
> Sent: Thursday, November 15, 2001 5:38 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Newbie! (some basic questions)
>
>
> > 1. What is the best method to prevents a boot device from loading?
>
> Maybe LastKnownGood configuration or such?
>
> Max
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@siliquent.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@cifnet.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I usaully rename the driver.sys file thru a secondary OS like DOS and reboot it … thats it u have escaped ur BSOD… I guess this is the simplest way to get ur system up and look in to the map file for a clue !!! hopefully if u get one :slight_smile:
regards,
Srriram
Adel Abushaev wrote: Boot from setup CD, select repair, go to recovery console and type “disable
[devicedriverid]” … listdev or list command can
actually show all ID’s.

It’s also good to have recovery console installed on the box so you don’t
need CD to go to it anymore.

regards,

Adel.

----- Original Message -----
From: “Ziv Barber”
To: “NT Developers Interest List”
Sent: Thursday, November 15, 2001 11:22 AM
Subject: [ntdev] Re: Newbie! (some basic questions)

> LastKnownGood -> not working
>
> -----Original Message-----
> From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
> Sent: Thursday, November 15, 2001 5:38 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Newbie! (some basic questions)
>
>
> > 1. What is the best method to prevents a boot device from loading?
>
> Maybe LastKnownGood configuration or such?
>
> Max
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@siliquent.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@cifnet.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com