Problem in Formatting Filedisk drive with FAT

Hi

I am writing Virtual Disk Driver using Filedisk.

My virtual drive is working well when I format it using NTFS.

However, whenever I tried to format it using FAT or FAT32 an error
‘Windows is unable to format the disk’ occurs.

Same error occurs even while using Filedisk as it is.

eg I am using foll. command for Filedisk to mount a file as row disk.

Filedisk /mount 0 c:\file.dat 4M m:

This command mount file.dat as M:.

This drive gets formatted properly with NTFS.

But while formatting it with FAT/FAT32 above error occurs.

Can somebody please let me know why this is happening?

I’ve seen unhandled IOCTL 0x4D0008 while debugging Filedisk. Therefore
I’ve handled corr. MOUNTDEV_NAME IOCTL to return device name properly.

After this it has started giving me other unhandled IOCTL. After putting
that into IOCTL debugger, I got that Device Code id 0x66 and function
name ix 0x6.

Is this related to the formatting problem? Is so, what is solution for
it? I am getting the correct header file for IOCTL.

Please me help to solve this problem.

Thanks in advance.

Regards,

Kailas Joshi

Why would you use pirated software? Don’t expect much help.
wrote in message news:xxxxx@ntfsd…
Hi

I am writing Virtual Disk Driver using Filedisk.

My virtual drive is working well when I format it using NTFS.

However, whenever I tried to format it using FAT or FAT32 an error ‘Windows is unable to format the disk’ occurs.

Same error occurs even while using Filedisk as it is.

eg I am using foll. command for Filedisk to mount a file as row disk.

Filedisk /mount 0 c:\file.dat 4M m:

This command mount file.dat as M:.

This drive gets formatted properly with NTFS.

But while formatting it with FAT/FAT32 above error occurs.

Can somebody please let me know why this is happening?

I’ve seen unhandled IOCTL 0x4D0008 while debugging Filedisk. Therefore I’ve handled corr. MOUNTDEV_NAME IOCTL to return device name properly.

After this it has started giving me other unhandled IOCTL. After putting that into IOCTL debugger, I got that Device Code id 0x66 and function name ix 0x6.

Is this related to the formatting problem? Is so, what is solution for it? I am getting the correct header file for IOCTL.

Please me help to solve this problem.

Thanks in advance.

Regards,

Kailas Joshi

Hi David,

I am sorry but I am not getting which pirated s/w you are talking about.
I believe Filedisk is free for modification and distribution from MS.

Please help me to understand.

Thanks in advance
Regards,


Do you Yahoo!?
Get on board. You’re invited to try the new Yahoo! Mail Beta.

FileDisk is a ‘supposedly’ GNU Public License disk in a file. It is a stolen work. It was written by Jamey Kirby of StorageCraft and others in that company. It is not a product of Microsoft and never has been. I have used the StorageCraft product in the past and know Jamey Kirby who sold his company. The commercial product has been updated a lot since the pirated version and is very stable.

Any GNU Public License (GPL) product when used and modified by another still carries the GPL restrictions including that source be available for a nonimal charge or free.
“Kailas Joshi” wrote in message news:xxxxx@ntfsd…
Hi David,

I am sorry but I am not getting which pirated s/w you are talking about.
I believe Filedisk is free for modification and distribution from MS.

Please help me to understand.

Thanks in advance
Regards,

------------------------------------------------------------------------------
Do you Yahoo!?
Get on board. You’re invited to try the new Yahoo! Mail Beta.

Hi David,

Thank you very much for that information.

Being a beginner in driver programming I had never read the lincense agreement carefully. Actually, I am developing this driver for the practice purpose, to know how to build a Virtual Disk Driver. I was thinking about keeping this driver for free download.

Can you please guide me on how should I proceed with the project?

Do you suggest me to recode everything? If so, is there any other sample source that I can use?

Actually, I’ve neerly finished coding with the driver mentioned above and the problem that I mentioned is the last problem that I am facing. On some other websites I’ve seen that many people are facing some problem with the FileDisk.

Please help us to solve the problem.

Thanks in advance.

Regards,
Kailas Joshi


Ring’em or ping’em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.

The commercial product comes with a sample ‘disk in a file’ program and driver. It is a simple project to write one with the library code, so how much of a learning experience can it be? Write from scratch if you want to learn. Google the subject and see where you should not go - such as miniport. The Vista Beta 2 WDK has a ramdisk sample using KMDF. I hear Microsoft has a sample of a ‘disk in a file’ project using iSCSI. There are a couple of libraries still available for creating one of the projects, but with most of the work done for you they are more suitable for commercial projects and not practice.
“Kailas Joshi” wrote in message news:xxxxx@ntfsd…
Hi David,

Thank you very much for that information.

Being a beginner in driver programming I had never read the lincense agreement carefully. Actually, I am developing this driver for the practice purpose, to know how to build a Virtual Disk Driver. I was thinking about keeping this driver for free download.

Can you please guide me on how should I proceed with the project?

Do you suggest me to recode everything? If so, is there any other sample source that I can use?

Actually, I’ve neerly finished coding with the driver mentioned above and the problem that I mentioned is the last problem that I am facing. On some other websites I’ve seen that many people are facing some problem with the FileDisk.

Please help us to solve the problem.

Thanks in advance.

Regards,
Kailas Joshi

------------------------------------------------------------------------------
Ring’em or ping’em. Make PC-to-phone calls as low as 1?/min with Yahoo! Messenger with Voice.

>FileDisk is a ‘supposedly’ GNU Public License disk in a file. It is a stolen
work.

It was written by Jamey Kirby of StorageCraft and others in that company.

By Jamey alone, long-long ago, in 90ies I think.

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

Hi David and Maxim,

Thanks for your help.

I’ve a genuine doubt. Please guide me on this issue.

I agree that it is very easy to make few changes in some ready to use sample. So, it will not give me much learning experience using it.

But, what I think is most of the things are predefined over here. For example, the input parameters and expected results for each IOCTL is predefined. So, even while writing driver from scratch one will need to look into such samples again and again. Then, instead of retyping most of the things from sample, why someone shouldn’t use the sample after going through its minute details? Wouldn’t this make him know more things in short span?

Also, I wonder why we shouldn’t be able to correct some sample in spite of having complete code. Isn’t that a great debugging challenge?

P.S. : While debugging the driver I’ve observed that the message ‘Windows is unable to format the drive’ comes before any unknown IOCTL or MOUNTDEV IOCTL occurs.

That means the problem is only with the data that formatter is reading from virtual drive. Is there something that FAT expects on disk even before formatting it? Can I get the trace of what FAT formatter does exactly?

Please help me to understand.

Regards,

Kailas Joshi

Project Engineer,

Global Microsoft Unit,

Wipro Technologies,

Pune-57

Extn : 3572

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David J. Craig
Sent: Sunday, May 28, 2006 12:12 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Re:Problem in Formatting Filedisk drive with FAT

The commercial product comes with a sample ‘disk in a file’ program and driver. It is a simple project to write one with the library code, so how much of a learning experience can it be? Write from scratch if you want to learn. Google the subject and see where you should not go - such as miniport. The Vista Beta 2 WDK has a ramdisk sample using KMDF. I hear Microsoft has a sample of a ‘disk in a file’ project using iSCSI. There are a couple of libraries still available for creating one of the projects, but with most of the work done for you they are more suitable for commercial projects and not practice.

“Kailas Joshi” wrote in message news:xxxxx@ntfsd…

Hi David,

Thank you very much for that information.

Being a beginner in driver programming I had never read the lincense agreement carefully. Actually, I am developing this driver for the practice purpose, to know how to build a Virtual Disk Driver. I was thinking about keeping this driver for free download.

Can you please guide me on how should I proceed with the project?

Do you suggest me to recode everything? If so, is there any other sample source that I can use?

Actually, I’ve neerly finished coding with the driver mentioned above and the problem that I mentioned is the last problem that I am facing. On some other websites I’ve seen that many people are facing some problem with the FileDisk.

Please help us to solve the problem.

Thanks in advance.

Regards,
Kailas Joshi

________________________________

Ring’em or ping’em. Make PC-to-phone calls as low as 1?/min http: with Yahoo! Messenger with Voice.


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</http:>

No. I will not help with pirated software.
wrote in message news:xxxxx@ntfsd…
Hi David and Maxim,

Thanks for your help.

I’ve a genuine doubt. Please guide me on this issue.

I agree that it is very easy to make few changes in some ready to use sample. So, it will not give me much learning experience using it.

But, what I think is most of the things are predefined over here. For example, the input parameters and expected results for each IOCTL is predefined. So, even while writing driver from scratch one will need to look into such samples again and again. Then, instead of retyping most of the things from sample, why someone shouldn’t use the sample after going through its minute details? Wouldn’t this make him know more things in short span?

Also, I wonder why we shouldn’t be able to correct some sample in spite of having complete code. Isn’t that a great debugging challenge?

P.S. : While debugging the driver I’ve observed that the message ‘Windows is unable to format the drive’ comes before any unknown IOCTL or MOUNTDEV IOCTL occurs.

That means the problem is only with the data that formatter is reading from virtual drive. Is there something that FAT expects on disk even before formatting it? Can I get the trace of what FAT formatter does exactly?

Please help me to understand.

Regards,

Kailas Joshi

Project Engineer,

Global Microsoft Unit,

Wipro Technologies,

Pune-57

Extn : 3572

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David J. Craig
Sent: Sunday, May 28, 2006 12:12 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Re:Problem in Formatting Filedisk drive with FAT

The commercial product comes with a sample ‘disk in a file’ program and driver. It is a simple project to write one with the library code, so how much of a learning experience can it be? Write from scratch if you want to learn. Google the subject and see where you should not go - such as miniport. The Vista Beta 2 WDK has a ramdisk sample using KMDF. I hear Microsoft has a sample of a ‘disk in a file’ project using iSCSI. There are a couple of libraries still available for creating one of the projects, but with most of the work done for you they are more suitable for commercial projects and not practice.

“Kailas Joshi” wrote in message news:xxxxx@ntfsd…

Hi David,

Thank you very much for that information.

Being a beginner in driver programming I had never read the lincense agreement carefully. Actually, I am developing this driver for the practice purpose, to know how to build a Virtual Disk Driver. I was thinking about keeping this driver for free download.

Can you please guide me on how should I proceed with the project?

Do you suggest me to recode everything? If so, is there any other sample source that I can use?

Actually, I’ve neerly finished coding with the driver mentioned above and the problem that I mentioned is the last problem that I am facing. On some other websites I’ve seen that many people are facing some problem with the FileDisk.

Please help us to solve the problem.

Thanks in advance.

Regards,
Kailas Joshi

----------------------------------------------------------------------------

Ring’em or ping’em. Make PC-to-phone calls as low as 1?/min with Yahoo! Messenger with Voice.


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

This is a BIG NEWS for me !!!

Are you sure the FileDisk provided here
http://www.acc.umu.se/~bosse/
and the one in question are the same?

I am interested because prolly I have also used the same as a starting
point for a CD Emulator although later I switched to SCSI miniport
method.

On 5/29/06, David J. Craig wrote:
>
> No. I will not help with pirated software.
> wrote in message news:xxxxx@ntfsd…
>
>
> Hi David and Maxim,
>
>
>
> Thanks for your help.
>
> I’ve a genuine doubt. Please guide me on this issue.
>
>
>
> I agree that it is very easy to make few changes in some ready to use
> sample. So, it will not give me much learning experience using it.
>
> But, what I think is most of the things are predefined over here. For
> example, the input parameters and expected results for each IOCTL is
> predefined. So, even while writing driver from scratch one will need to look
> into such samples again and again. Then, instead of retyping most of the
> things from sample, why someone shouldn’t use the sample after going through
> its minute details? Wouldn’t this make him know more things in short span?
>
>
>
> Also, I wonder why we shouldn’t be able to correct some sample in spite of
> having complete code. Isn’t that a great debugging challenge?
>
>
>
> P.S. : While debugging the driver I’ve observed that the message ‘Windows is
> unable to format the drive’ comes before any unknown IOCTL or MOUNTDEV IOCTL
> occurs.
>
> That means the problem is only with the data that formatter is reading from
> virtual drive. Is there something that FAT expects on disk even before
> formatting it? Can I get the trace of what FAT formatter does exactly?
>
>
>
> Please help me to understand.
>
>
>
>
> Regards,
>
>
>
>
>
> Kailas Joshi
>
>
> Project Engineer,
>
>
> Global Microsoft Unit,
>
>
> Wipro Technologies,
>
>
> Pune-57
>
>
> Extn : 3572
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> David J. Craig
> Sent: Sunday, May 28, 2006 12:12 AM
> To: Windows File Systems Devs Interest List
> Subject: Re:[ntfsd] Re:Problem in Formatting Filedisk drive with FAT
>
>
>
>
> The commercial product comes with a sample ‘disk in a file’ program and
> driver. It is a simple project to write one with the library code, so how
> much of a learning experience can it be? Write from scratch if you want to
> learn. Google the subject and see where you should not go - such as
> miniport. The Vista Beta 2 WDK has a ramdisk sample using KMDF. I hear
> Microsoft has a sample of a ‘disk in a file’ project using iSCSI. There are
> a couple of libraries still available for creating one of the projects, but
> with most of the work done for you they are more suitable for commercial
> projects and not practice.
>
>
> “Kailas Joshi” wrote in message news:xxxxx@ntfsd…
>
> Hi David,
>
> Thank you very much for that information.
>
> Being a beginner in driver programming I had never read the lincense
> agreement carefully. Actually, I am developing this driver for the practice
> purpose, to know how to build a Virtual Disk Driver. I was thinking about
> keeping this driver for free download.
>
> Can you please guide me on how should I proceed with the project?
>
> Do you suggest me to recode everything? If so, is there any other sample
> source that I can use?
>
> Actually, I’ve neerly finished coding with the driver mentioned above and
> the problem that I mentioned is the last problem that I am facing. On some
> other websites I’ve seen that many people are facing some problem with the
> FileDisk.
>
> Please help us to solve the problem.
>
> Thanks in advance.
>
> Regards,
> Kailas Joshi
> ________________________________
>
>
> Ring’em or ping’em. Make PC-to-phone calls as low as 1?/min with Yahoo!
> Messenger with Voice.
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com


Ankit Raizada
Room No. 349
Boys Hostel
IIITA Campus
Deoghat Jhalwa
Allahabad - 211012
Email: xxxxx@iiita.ac.in
xxxxx@yahoo.com
xxxxx@gmail.com

Hi David,

Let’s forget about helping me using Filedisk.

But can you help me understand what exactly do you mean by stolen work?

Using a product under GPL license doesn’t seem big issue as whole Linux
community works with same license agreement.

Regards,

Kailas Joshi

If it is a ‘disk in a file’ system, I know of no other named filedisk. I
wonder how you got around the lack of an interrupt in the SCSI miniport.
The advantage of the Storagecraft library is that it is a full SCSI port
driver library which makes the whole thing easy. There are supposed to be
some samples using iSCSI. Look at RocketDivision.com for StarPort.

“Ankit Raizada” wrote in message
news:xxxxx@ntfsd…
This is a BIG NEWS for me !!!

Are you sure the FileDisk provided here
http://www.acc.umu.se/~bosse/
and the one in question are the same?

I am interested because prolly I have also used the same as a starting
point for a CD Emulator although later I switched to SCSI miniport
method.

On 5/29/06, David J. Craig wrote:
>
> No. I will not help with pirated software.
> wrote in message news:xxxxx@ntfsd…
>
>
> Hi David and Maxim,
>
>
>
> Thanks for your help.
>
> I’ve a genuine doubt. Please guide me on this issue.
>
>
>
> I agree that it is very easy to make few changes in some ready to use
> sample. So, it will not give me much learning experience using it.
>
> But, what I think is most of the things are predefined over here. For
> example, the input parameters and expected results for each IOCTL is
> predefined. So, even while writing driver from scratch one will need to
> look
> into such samples again and again. Then, instead of retyping most of the
> things from sample, why someone shouldn’t use the sample after going
> through
> its minute details? Wouldn’t this make him know more things in short span?
>
>
>
> Also, I wonder why we shouldn’t be able to correct some sample in spite of
> having complete code. Isn’t that a great debugging challenge?
>
>
>
> P.S. : While debugging the driver I’ve observed that the message ‘Windows
> is
> unable to format the drive’ comes before any unknown IOCTL or MOUNTDEV
> IOCTL
> occurs.
>
> That means the problem is only with the data that formatter is reading
> from
> virtual drive. Is there something that FAT expects on disk even before
> formatting it? Can I get the trace of what FAT formatter does exactly?
>
>
>
> Please help me to understand.
>
>
>
>
> Regards,
>
>
>
>
>
> Kailas Joshi
>
>
> Project Engineer,
>
>
> Global Microsoft Unit,
>
>
> Wipro Technologies,
>
>
> Pune-57
>
>
> Extn : 3572
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> David J. Craig
> Sent: Sunday, May 28, 2006 12:12 AM
> To: Windows File Systems Devs Interest List
> Subject: Re:[ntfsd] Re:Problem in Formatting Filedisk drive with FAT
>
>
>
>
> The commercial product comes with a sample ‘disk in a file’ program and
> driver. It is a simple project to write one with the library code, so how
> much of a learning experience can it be? Write from scratch if you want
> to
> learn. Google the subject and see where you should not go - such as
> miniport. The Vista Beta 2 WDK has a ramdisk sample using KMDF. I hear
> Microsoft has a sample of a ‘disk in a file’ project using iSCSI. There
> are
> a couple of libraries still available for creating one of the projects,
> but
> with most of the work done for you they are more suitable for commercial
> projects and not practice.
>
>
> “Kailas Joshi” wrote in message news:xxxxx@ntfsd…
>
> Hi David,
>
> Thank you very much for that information.
>
> Being a beginner in driver programming I had never read the lincense
> agreement carefully. Actually, I am developing this driver for the
> practice
> purpose, to know how to build a Virtual Disk Driver. I was thinking about
> keeping this driver for free download.
>
> Can you please guide me on how should I proceed with the project?
>
> Do you suggest me to recode everything? If so, is there any other sample
> source that I can use?
>
> Actually, I’ve neerly finished coding with the driver mentioned above and
> the problem that I mentioned is the last problem that I am facing. On some
> other websites I’ve seen that many people are facing some problem with the
> FileDisk.
>
> Please help us to solve the problem.
>
> Thanks in advance.
>
> Regards,
> Kailas Joshi
> ________________________________
>
>
> Ring’em or ping’em. Make PC-to-phone calls as low as 1¢/min with Yahoo!
> Messenger with Voice.
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com


Ankit Raizada
Room No. 349
Boys Hostel
IIITA Campus
Deoghat Jhalwa
Allahabad - 211012
Email: xxxxx@iiita.ac.in
xxxxx@yahoo.com
xxxxx@gmail.com

The product is NOT, NOT, NOT under GPL. The source code was copyrighted and those headers and information was removed from the code and it was posted as GPL. Just added a GPL license to someone’s source code does not make it GPL. Do a search on the OSR web site about this issue. This has been said before. Search for Jamey Kirby who wrote the code and not the guy who ‘made it GPL’. He got the code from Jamey and tried to take credit for it being his own code. Just wait until you get a commercial product released and the new owners of the copyright to that code decide you have enough money to make it worthwhile to sue you and prevent your product from being sold in the U.S. and other countries.
wrote in message news:xxxxx@ntfsd…
Hi David,

Let’s forget about helping me using Filedisk.

But can you help me understand what exactly do you mean by stolen work?

Using a product under GPL license doesn’t seem big issue as whole Linux community works with same license agreement.

Regards,

Kailas Joshi

Oh! Now, I understood that.

I will try to go with the iSCSI Miniport driver.

Thank you very much for your help.

Best Regards,

Kailas Joshi

Project Engineer,

Global Microsoft Unit,

Wipro Technologies,

Pune-57

Extn : 3572

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David J. Craig
Sent: Monday, May 29, 2006 11:24 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Problem in Formatting Filedisk drive with FAT

The product is NOT, NOT, NOT under GPL. The source code was copyrighted
and those headers and information was removed from the code and it was
posted as GPL. Just added a GPL license to someone’s source code does
not make it GPL. Do a search on the OSR web site about this issue.
This has been said before. Search for Jamey Kirby who wrote the code
and not the guy who ‘made it GPL’. He got the code from Jamey and tried
to take credit for it being his own code. Just wait until you get a
commercial product released and the new owners of the copyright to that
code decide you have enough money to make it worthwhile to sue you and
prevent your product from being sold in the U.S. and other countries.

wrote in message news:xxxxx@ntfsd…

Hi David,

Let’s forget about helping me using Filedisk.

But can you help me understand what exactly do you mean by
stolen work?

Using a product under GPL license doesn’t seem big issue as
whole Linux community works with same license agreement.

Regards,

Kailas Joshi


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com