Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


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

The way I solved it was by declaring the disk as a removable disk. Then
format worked just fine.

John Kowalonek

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 7:15 AM
To: NT Developers Interest List
Subject: [ntdev] Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


You are currently subscribed to ntdev as: xxxxx@blockislandsoftware.net
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

You mean returning Removeable disk as Media Type when the Get Media Type and
Get Disk Geometry ? I tested it with returning FixedMedia, but with no
success !

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 15:04
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

The way I solved it was by declaring the disk as a removable disk. Then
format worked just fine.

John Kowalonek

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 7:15 AM
To: NT Developers Interest List
Subject: [ntdev] Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


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


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de
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 just looked at my latest code, and I return FixedMedia. Make certain you
also support IOCTL_DISK_GET_PARTITION_INFO. There was also a weird thing on
Win2K that screwed me up a little… I got called at APC_LEVEL for several
of the early read/write calls. I think it was when the file systems were
being enumerated and testing to see if the boot sector and other signature
sectors matched. Sometimes it worked and sometimes not, since I had code
that needed to run at passive level. If there was any failure, format
didn’t work.

Also NTFS seems to be more forgiving during format than fat32. You should
be aware of that.

John K.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 9:27 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

You mean returning Removeable disk as Media Type when the Get Media Type and
Get Disk Geometry ? I tested it with returning FixedMedia, but with no
success !

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 15:04
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

The way I solved it was by declaring the disk as a removable disk. Then
format worked just fine.

John Kowalonek

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 7:15 AM
To: NT Developers Interest List
Subject: [ntdev] Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


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


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


You are currently subscribed to ntdev as: xxxxx@blockislandsoftware.net
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 also checked my source and found that i return FixedMedia. also my driver
supports the IOCTL_DISK_GET_PARTITION_INFO request. On init of my driver i
format the ramdisk with FAT12 or FAT16 both works, but i cannot reformat the
drive via format.com or Explorer. I tried it with the kernel debugger to
find, what windows request from the driver, but when format.com starts *no*
requests are send to my driver !!!

An other way is to write my own format program, but i what to use the
standard windows way!

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 17:30
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

I just looked at my latest code, and I return FixedMedia. Make certain you
also support IOCTL_DISK_GET_PARTITION_INFO. There was also a weird thing on
Win2K that screwed me up a little… I got called at APC_LEVEL for several
of the early read/write calls. I think it was when the file systems were
being enumerated and testing to see if the boot sector and other signature
sectors matched. Sometimes it worked and sometimes not, since I had code
that needed to run at passive level. If there was any failure, format
didn’t work.

Also NTFS seems to be more forgiving during format than fat32. You should
be aware of that.

John K.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 9:27 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

You mean returning Removeable disk as Media Type when the Get Media Type and
Get Disk Geometry ? I tested it with returning FixedMedia, but with no
success !

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 15:04
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

The way I solved it was by declaring the disk as a removable disk. Then
format worked just fine.

John Kowalonek

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 7:15 AM
To: NT Developers Interest List
Subject: [ntdev] Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


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


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


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


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de
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 solved the problem by myself. I forget to change the driver type from
FILE_DEVICE_VIRTUAL_DISK to FILE_DEVICE_DISK. That’s all.

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Montag, 25. Juni 2001 16:27
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

I also checked my source and found that i return FixedMedia. also my driver
supports the IOCTL_DISK_GET_PARTITION_INFO request. On init of my driver i
format the ramdisk with FAT12 or FAT16 both works, but i cannot reformat the
drive via format.com or Explorer. I tried it with the kernel debugger to
find, what windows request from the driver, but when format.com starts *no*
requests are send to my driver !!!

An other way is to write my own format program, but i what to use the
standard windows way!

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 17:30
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

I just looked at my latest code, and I return FixedMedia. Make certain you
also support IOCTL_DISK_GET_PARTITION_INFO. There was also a weird thing on
Win2K that screwed me up a little… I got called at APC_LEVEL for several
of the early read/write calls. I think it was when the file systems were
being enumerated and testing to see if the boot sector and other signature
sectors matched. Sometimes it worked and sometimes not, since I had code
that needed to run at passive level. If there was any failure, format
didn’t work.

Also NTFS seems to be more forgiving during format than fat32. You should
be aware of that.

John K.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 9:27 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

You mean returning Removeable disk as Media Type when the Get Media Type and
Get Disk Geometry ? I tested it with returning FixedMedia, but with no
success !

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 15:04
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

The way I solved it was by declaring the disk as a removable disk. Then
format worked just fine.

John Kowalonek

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 7:15 AM
To: NT Developers Interest List
Subject: [ntdev] Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


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


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


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


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


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de
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

Try to check “Virtual drive in windows NT/2K” thread from beginning. I
posted IOCTL codes which we support to make our virtual drives formatable.
It should work also for RAM disk.

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


From: Andreas Roth[SMTP:xxxxx@arsoft-online.de]
Reply To: NT Developers Interest List
Sent: Monday, June 25, 2001 4:27 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

I also checked my source and found that i return FixedMedia. also my
driver
supports the IOCTL_DISK_GET_PARTITION_INFO request. On init of my driver i
format the ramdisk with FAT12 or FAT16 both works, but i cannot reformat
the
drive via format.com or Explorer. I tried it with the kernel debugger to
find, what windows request from the driver, but when format.com starts
*no*
requests are send to my driver !!!

An other way is to write my own format program, but i what to use the
standard windows way!

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 17:30
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

I just looked at my latest code, and I return FixedMedia. Make certain
you
also support IOCTL_DISK_GET_PARTITION_INFO. There was also a weird thing
on
Win2K that screwed me up a little… I got called at APC_LEVEL for
several
of the early read/write calls. I think it was when the file systems were
being enumerated and testing to see if the boot sector and other signature
sectors matched. Sometimes it worked and sometimes not, since I had code
that needed to run at passive level. If there was any failure, format
didn’t work.

Also NTFS seems to be more forgiving during format than fat32. You should
be aware of that.

John K.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 9:27 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

You mean returning Removeable disk as Media Type when the Get Media Type
and
Get Disk Geometry ? I tested it with returning FixedMedia, but with no
success !

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John A. Kowalonek
Sent: Sonntag, 24. Juni 2001 15:04
To: NT Developers Interest List
Subject: [ntdev] RE: Formating a RAM Disk

The way I solved it was by declaring the disk as a removable disk. Then
format worked just fine.

John Kowalonek

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Andreas Roth
Sent: Sunday, June 24, 2001 7:15 AM
To: NT Developers Interest List
Subject: [ntdev] Formating a RAM Disk

Hello,

i’ve written a RAM Disk Driver. This driver works fine, but you cannot
format it. Using the format command line, format says Cannot format a RAM
Disk drive.

Has anyone solved this problem ?

A. Roth


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


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


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


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


You are currently subscribed to ntdev as: xxxxx@rkk.cz
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