How to make my scsi miniport virtual disk active without disk management's help?

hi,all:
I have created a virtual disk by writing a scsi miniport driver and a
virtual bus driver on winxp. When I “plug in” a HBA (by sending an IOCTL to
bus driver), the explore can’t show the disk volume. When I open disk
management, I can see the disk in disk management and a disk initialization
wizard appears. Following the wizard, I can make my virtual disk work well.
My question is: can I make my virtual disk be initialized without opening
disk management? Is there some IOCTLs I can send to make my virtual disk
active?
Thanks in advance!
Shell

Just add a line and try:

deviceObject->Characteristics = FILE_REMOVABLE_MEDIA;


Polo G.Z
EAZ Solution,Inc.
Http://www.eazsolution.com
->Make your life easier!

----- Original Message -----
From: jason shell
Newsgroups: ntdev
To: xxxxx@lists.osr.com
Sent: Friday, October 21, 2005 11:36 PM
Subject: How to make my scsi miniport virtual disk active without disk
management’s help?

hi,all:
I have created a virtual disk by writing a scsi miniport driver and a
virtual bus driver on winxp. When I “plug in” a HBA (by sending an IOCTL to
bus driver), the explore can’t show the disk volume. When I open disk
management, I can see the disk in disk management and a disk initialization
wizard appears. Following the wizard, I can make my virtual disk work well.
My question is: can I make my virtual disk be initialized without opening
disk management? Is there some IOCTLs I can send to make my virtual disk
active?

Thanks in advance!

Shell

Polo,
I have tried. But it seemed that all the things are as same as before. Any
other good suggestions?
Thanks.
Shell
On 10/22/05, osronline wrote:
>
> Just add a line and try:
>
> deviceObject->Characteristics = FILE_REMOVABLE_MEDIA;
>
>
> –
> Polo G.Z
> EAZ Solution,Inc.
> Http://www.eazsolution.com
> ->Make your life easier!
>
>
> ----- Original Message -----
> From: jason shell
> Newsgroups: ntdev
> To: xxxxx@lists.osr.com
> Sent: Friday, October 21, 2005 11:36 PM
> Subject: How to make my scsi miniport virtual disk active without disk
> management’s help?
>
>
> hi,all:
> I have created a virtual disk by writing a scsi miniport driver and a
> virtual bus driver on winxp. When I “plug in” a HBA (by sending an IOCTL
> to
> bus driver), the explore can’t show the disk volume. When I open disk
> management, I can see the disk in disk management and a disk
> initialization
> wizard appears. Following the wizard, I can make my virtual disk work
> well.
> My question is: can I make my virtual disk be initialized without opening
> disk management? Is there some IOCTLs I can send to make my virtual disk
> active?
>
> Thanks in advance!
>
> Shell
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

>My question is: can I make my virtual disk be initialized without opening

disk management? Is there some IOCTLs I can send to make my virtual disk
active?

Just fill its partition table with something sane.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

>hi,all:

I have created a virtual disk by writing a scsi miniport driver and a
virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL to
bus driver), the explore can’t show the disk volume. When >I open disk
management, I can see the disk in disk management and a disk initialization
wizard >appears. Following the wizard, I can make my virtual disk work well.

My question is: can I make my virtual disk be initialized without opening
disk management? Is >there some IOCTLs I can send to make my virtual disk
active?
>Thanks in advance!
>Shell

Have you filled up the partition information for the vdisk? if not the
IOCTLs are not gonna work!!!

Amitrajit

Thanks for all first.
I have filled up my virtual disk file with partition information. When I run
the disk management the wizard didn’t appear any more. But another problem
is coming that my virtual disk is always marked as offline. I must right
click the virtual disk icon in the disk management to reactivate the virtual
disk to be online. Is there any IOCTLs to reactivate the virtual disk?
Thanks again!
Shell
On 10/24/05, Developer wrote:
>
> >hi,all:
> >I have created a virtual disk by writing a scsi miniport driver and a
> virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL to
> bus driver), the explore can’t show the disk volume. When >I open disk
> management, I can see the disk in disk management and a disk initialization
> wizard >appears. Following the wizard, I can make my virtual disk work well.
>
> >My question is: can I make my virtual disk be initialized without opening
> disk management? Is >there some IOCTLs I can send to make my virtual disk
> active?
> >Thanks in advance!
> >Shell
>
> Have you filled up the partition information for the vdisk? if not the
> IOCTLs are not gonna work!!!
>
> Amitrajit
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 You are currently subscribed
> to ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank
> email to xxxxx@lists.osr.com
>

What OS version? 2003 Enterprise? what about earlier versions?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: jason shell
To: Windows System Software Devs Interest List
Sent: Tuesday, October 25, 2005 9:35 AM
Subject: Re: [ntdev] How to make my scsi miniport virtual disk active without disk management’s help?

Thanks for all first.
I have filled up my virtual disk file with partition information. When I run the disk management the wizard didn’t appear any more. But another problem is coming that my virtual disk is always marked as offline. I must right click the virtual disk icon in the disk management to reactivate the virtual disk to be online. Is there any IOCTLs to reactivate the virtual disk?
Thanks again!

Shell

On 10/24/05, Developer wrote:
>hi,all:
>I have created a virtual disk by writing a scsi miniport driver and a virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL to bus driver), the explore can’t show the disk volume. When >I open disk management, I can see the disk in disk management and a disk initialization wizard >appears. Following the wizard, I can make my virtual disk work well.
>My question is: can I make my virtual disk be initialized without opening disk management? Is >there some IOCTLs I can send to make my virtual disk active?

>Thanks in advance!

>Shell

Have you filled up the partition information for the vdisk? if not the IOCTLs are not gonna work!!!

Amitrajit

— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com

— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com

Maxim,
I have tested the drivers on Win2K sp4, WinXP sp1,sp2. The results are same
on these platforms. What on earth does the DiskManagement do when I choose
to reactivate the disk?
Thanks.
Shell

On 10/25/05, Maxim S. Shatskih wrote:
>
> What OS version? 2003 Enterprise? what about earlier versions?
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: jason shell
> To: Windows System Software Devs Interest List
> Sent: Tuesday, October 25, 2005 9:35 AM
> Subject: Re: [ntdev] How to make my scsi miniport virtual disk active
> without disk management’s help?
>
> Thanks for all first.
> I have filled up my virtual disk file with partition information. When I
> run the disk management the wizard didn’t appear any more. But another
> problem is coming that my virtual disk is always marked as offline. I must
> right click the virtual disk icon in the disk management to reactivate the
> virtual disk to be online. Is there any IOCTLs to reactivate the virtual
> disk?
> Thanks again!
> Shell
> On 10/24/05, Developer wrote:
> >
> > >hi,all:
> > >I have created a virtual disk by writing a scsi miniport driver and a
> > virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL to
> > bus driver), the explore can’t show the disk volume. When >I open disk
> > management, I can see the disk in disk management and a disk initialization
> > wizard >appears. Following the wizard, I can make my virtual disk work well.
> >
> > >My question is: can I make my virtual disk be initialized without
> > opening disk management? Is >there some IOCTLs I can send to make my virtual
> > disk active?
> > >Thanks in advance!
> > >Shell
> >
> > Have you filled up the partition information for the vdisk? if not the
> > IOCTLs are not gonna work!!!
> >
> > Amitrajit
> > — Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256 You are currently subscribed
> > to ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank
> > email to xxxxx@lists.osr.com
> >
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 You are currently subscribed
> to ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank
> email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
>
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

You need to put a non-zero, 32-bit signature in the MBR right before the
partition table. offset 0x1BE (446)
“jason shell” wrote in message news:xxxxx@ntdev…
Thanks for all first.
I have filled up my virtual disk file with partition information. When I run
the disk management the wizard didn’t appear any more. But another problem
is coming that my virtual disk is always marked as offline. I must right
click the virtual disk icon in the disk management to reactivate the virtual
disk to be online. Is there any IOCTLs to reactivate the virtual disk?
Thanks again!

Shell

On 10/24/05, Developer wrote:
>hi,all:
>I have created a virtual disk by writing a scsi miniport driver and a
>virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL
>to bus driver), the explore can’t show the disk volume. When >I open disk
>management, I can see the disk in disk management and a disk initialization
>wizard >appears. Following the wizard, I can make my virtual disk work
>well.
>My question is: can I make my virtual disk be initialized without opening
>disk management? Is >there some IOCTLs I can send to make my virtual disk
>active?

>Thanks in advance!

>Shell

Have you filled up the partition information for the vdisk? if not the
IOCTLs are not gonna work!!!

Amitrajit

— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 You are currently subscribed to
ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank email
to xxxxx@lists.osr.com

Sorry, I forgot to say that this is to get rid of the activation problem.

“Jonathan Ludwig” wrote in message
news:xxxxx@ntdev…
> You need to put a non-zero, 32-bit signature in the MBR right before the
> partition table. offset 0x1BE (446)
> “jason shell” wrote in message
> news:xxxxx@ntdev…
> Thanks for all first.
> I have filled up my virtual disk file with partition information. When I
> run the disk management the wizard didn’t appear any more. But another
> problem is coming that my virtual disk is always marked as offline. I must
> right click the virtual disk icon in the disk management to reactivate the
> virtual disk to be online. Is there any IOCTLs to reactivate the virtual
> disk?
> Thanks again!
>
> Shell
>
> On 10/24/05, Developer wrote:
>>hi,all:
>>I have created a virtual disk by writing a scsi miniport driver and a
>>virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL
>>to bus driver), the explore can’t show the disk volume. When >I open disk
>>management, I can see the disk in disk management and a disk
>>initialization wizard >appears. Following the wizard, I can make my
>>virtual disk work well.
>>My question is: can I make my virtual disk be initialized without opening
>>disk management? Is >there some IOCTLs I can send to make my virtual disk
>>active?
>
>>Thanks in advance!
>
>>Shell
>
> Have you filled up the partition information for the vdisk? if not the
> IOCTLs are not gonna work!!!
>
> Amitrajit
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 You are currently subscribed
> to ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank
> email to xxxxx@lists.osr.com
>
>

Jonathan,
I have changed the byte to 0x80 in MBR. But it seemed that nothing was
changed.
David,
My codes are based on a sourcecode named VDISK. Maybe u can find it by
google.

On 10/26/05, Jonathan Ludwig wrote:
>
> You need to put a non-zero, 32-bit signature in the MBR right before the
> partition table. offset 0x1BE (446)
> “jason shell” wrote in message news:xxxxx@ntdev
> …
> Thanks for all first.
> I have filled up my virtual disk file with partition information. When I
> run
> the disk management the wizard didn’t appear any more. But another problem
> is coming that my virtual disk is always marked as offline. I must right
> click the virtual disk icon in the disk management to reactivate the
> virtual
> disk to be online. Is there any IOCTLs to reactivate the virtual disk?
> Thanks again!
>
> Shell
>
> On 10/24/05, Developer wrote:
> >hi,all:
> >I have created a virtual disk by writing a scsi miniport driver and a
> >virtual bus driver on winxp. When I >“plug in” a HBA (by sending an IOCTL
> >to bus driver), the explore can’t show the disk volume. When >I open disk
> >management, I can see the disk in disk management and a disk
> initialization
> >wizard >appears. Following the wizard, I can make my virtual disk work
> >well.
> >My question is: can I make my virtual disk be initialized without opening
> >disk management? Is >there some IOCTLs I can send to make my virtual disk
> >active?
>
> >Thanks in advance!
>
> >Shell
>
> Have you filled up the partition information for the vdisk? if not the
> IOCTLs are not gonna work!!!
>
> Amitrajit
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 You are currently subscribed
> to
> ntdev as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank
> email
> to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>