Query About Device Driver on Win2000

Hi all,

Ok guys,I am tyring to debug the diskperf.sys
driver on the target system. For this I have made some
changes in the diskperf source code i.e added some
DbgPrint’s , which is there on my host machine, and
then built the whole code which generated the new
diskperf.sys file. Now the problem is that on the
target machine there is already a diskperf.sys
driver running which is present in the
‘winnt/system32/drivers folder’. And for me to debug
my own built diskperf driver I need to replace the
original one which is there in the folder. But I am
not able to either overwrite the Diskperf.sys file nor
I can delete the diskperf.sys file from the folder. I
even tried stopping the driver using the osr_loader
but that also doesn’t work. So please tell me how to
get around this problem. Is there a way in which I can
either overwrite or delete the diskperf.sys file.

It’s a bit urgent So please send me a reply.

Thank You.


Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html

Normally all I do is copy the new sys file over the old sys file and reboot.
This almost sounds like a problem with SFP, but the question is how you got
SFP turned on for this driver. Have you tried Device Manager and update?


The personal opinion of
Gary G. Little

“HUZEFA PANCHA” wrote in message
news:xxxxx@windbg…
> Hi all,
>
> Ok guys,I am tyring to debug the diskperf.sys
> driver on the target system. For this I have made some
> changes in the diskperf source code i.e added some
> DbgPrint’s , which is there on my host machine, and
> then built the whole code which generated the new
> diskperf.sys file. Now the problem is that on the
> target machine there is already a diskperf.sys
> driver running which is present in the
> ‘winnt/system32/drivers folder’. And for me to debug
> my own built diskperf driver I need to replace the
> original one which is there in the folder. But I am
> not able to either overwrite the Diskperf.sys file nor
> I can delete the diskperf.sys file from the folder. I
> even tried stopping the driver using the osr_loader
> but that also doesn’t work. So please tell me how to
> get around this problem. Is there a way in which I can
> either overwrite or delete the diskperf.sys file.
>
> It’s a bit urgent So please send me a reply.
>
> Thank You.
>
>
>
>
>
> __________________________________
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
>

Look at the .kdfiles command. It gives the target a list of replacable drivers via a simple txt file. When the driver gets loaded, the image is taken off the dev machine and copied to the target machine. Generaly works well.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: 09 June 2005 15:47
To: Kernel Debugging Interest List
Subject: Re:[windbg] Query About Device Driver on Win2000

Normally all I do is copy the new sys file over the old sys
file and reboot.
This almost sounds like a problem with SFP, but the question
is how you got
SFP turned on for this driver. Have you tried Device Manager
and update?


The personal opinion of
Gary G. Little

“HUZEFA PANCHA” wrote in message
> news:xxxxx@windbg…
> > Hi all,
> >
> > Ok guys,I am tyring to debug the diskperf.sys
> > driver on the target system. For this I have made some
> > changes in the diskperf source code i.e added some
> > DbgPrint’s , which is there on my host machine, and
> > then built the whole code which generated the new
> > diskperf.sys file. Now the problem is that on the
> > target machine there is already a diskperf.sys
> > driver running which is present in the
> > ‘winnt/system32/drivers folder’. And for me to debug
> > my own built diskperf driver I need to replace the
> > original one which is there in the folder. But I am
> > not able to either overwrite the Diskperf.sys file nor
> > I can delete the diskperf.sys file from the folder. I
> > even tried stopping the driver using the osr_loader
> > but that also doesn’t work. So please tell me how to
> > get around this problem. Is there a way in which I can
> > either overwrite or delete the diskperf.sys file.
> >
> > It’s a bit urgent So please send me a reply.
> >
> > Thank You.
> >
> >
> >
> >
> >
> > __________________________________
> > Discover Yahoo!
> > Get on-the-go sports scores, stock quotes, news and more.
> Check it out!
> > http://discover.yahoo.com/mobile.html
> >
>
>
>
> —
> You are currently subscribed to windbg as: xxxxx@option.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

SFCDisable in the registry with 0xffffff9d (check on that number though)
works for me. Remember to use Windbg to boot into the target before doing
the copy.
bank kus
“HUZEFA PANCHA” wrote in message
news:xxxxx@windbg…
> Hi all,
>
> Ok guys,I am tyring to debug the diskperf.sys
> driver on the target system. For this I have made some
> changes in the diskperf source code i.e added some
> DbgPrint’s , which is there on my host machine, and
> then built the whole code which generated the new
> diskperf.sys file. Now the problem is that on the
> target machine there is already a diskperf.sys
> driver running which is present in the
> ‘winnt/system32/drivers folder’. And for me to debug
> my own built diskperf driver I need to replace the
> original one which is there in the folder. But I am
> not able to either overwrite the Diskperf.sys file nor
> I can delete the diskperf.sys file from the folder. I
> even tried stopping the driver using the osr_loader
> but that also doesn’t work. So please tell me how to
> get around this problem. Is there a way in which I can
> either overwrite or delete the diskperf.sys file.
>
> It’s a bit urgent So please send me a reply.
>
> Thank You.
>
>
>
>
>
> __________________________________
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
>