Re[2]: how to format a drive?

Hello Maxim,

thanks, I didn’t think that it will be so easy :slight_smile:


Roman Kudinov

mailto:xxxxx@rbcmail.ru

Sunday, July 4, 2004, 5:42:46 PM, you wrote:

MSS> Executing “format g:” by a CreateProcess call is one of the best ways.
MSS> Otherwise, you will need to write all filesystem structures to the partition
MSS> yourself.

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

MSS> ----- Original Message -----
MSS> From: “Roman Kudinov”
MSS> To: “Windows File Systems Devs Interest List”
MSS> Sent: Sunday, July 04, 2004 3:58 PM
MSS> Subject: [ntfsd] how to format a drive?

>> Hi,
>>
>> I try to create partitions on a hard drive using
>> IOCTL_DISK_SET_DRIVE_LAYOUT. It works fine but the newly created
>> partitions are not formated, how can I format them?
>>
>> thanks in advance
>>
>> –
>> Roman
>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
MSS> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to
>> xxxxx@lists.osr.com

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

MSS> You are currently subscribed to ntfsd as: xxxxx@rbcmail.ru
MSS> To unsubscribe send a blank email to
MSS> xxxxx@lists.osr.com

Hello Roman,

Sunday, July 04, 2004, 4:34:46 PM, you wrote:

Roman Kudinov> Hello Maxim,

Roman Kudinov> thanks, I didn’t think that it will be so easy :slight_smile:

Additionally you can use method explained here:
http://www.sysinternals.com/ntw2k/source/fmifs.shtml
This is help to get even progress callback to display progress in your application.

MSS> Executing “format g:” by a CreateProcess call is one of the best ways.
MSS> Otherwise, you will need to write all filesystem structures to the partition
MSS> yourself.

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


Best regards,
Al


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

Hello Al,

great thanks for the link.

Are there anything similar on Win9x or format.com is the only way for
this OS?


Roman Kudinov

mailto:xxxxx@rbcmail.ru

Monday, July 5, 2004, 2:38:26 PM, you wrote:

AS> Hello Roman,

AS> Sunday, July 04, 2004, 4:34:46 PM, you wrote:

Roman Kudinov>> Hello Maxim,

Roman Kudinov>> thanks, I didn’t think that it will be so easy :slight_smile:

AS> Additionally you can use method explained here:
AS> http://www.sysinternals.com/ntw2k/source/fmifs.shtml
AS> This is help to get even progress callback to display progress in your application.

MSS>> Executing “format g:” by a CreateProcess call is one of the best ways.
MSS>> Otherwise, you will need to write all filesystem structures to the partition
MSS>> yourself.

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

Roman,

If you need to format a partition in kernel mode I’d suggest you to look at
the ramdisk sample from old NT4 DDK.
It includes a simple routine to format partitions to FAT12/FAT16.
(or you can implement your own partition format code)

In user mode the best way is to use the way Maxim suggested.
(if you don’t want to use a FS that is not supported by Windows directly;)

Best regards,
Valeriy Glushkov

Hi,

I try to create partitions on a hard drive using
IOCTL_DISK_SET_DRIVE_LAYOUT. It works fine but the newly created
partitions are not formated, how can I format them?

thanks in advance


Roman

Roman,

on your place I would not spawn separate process to format the drive.
Really ugly! Mess with getting
progress and feedback, uh! I’d use SHFormatDrive(…) undocumented call.
Check this link:

http://www.codeproject.com/dialog/cformatdrivedialog.asp

to find good working and good looking example of how can be done what
you want :slight_smile:

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roman Kudinov
Sent: Tuesday, July 06, 2004 12:26 PM
To: Windows File Systems Devs Interest List
Subject: Re[2]: [ntfsd] how to format a drive?

Hello Al,

great thanks for the link.

Are there anything similar on Win9x or format.com is the only way for
this OS?


Roman Kudinov

mailto:xxxxx@rbcmail.ru

Monday, July 5, 2004, 2:38:26 PM, you wrote:

AS> Hello Roman,

AS> Sunday, July 04, 2004, 4:34:46 PM, you wrote:

Roman Kudinov>> Hello Maxim,

Roman Kudinov>> thanks, I didn’t think that it will be so easy :slight_smile:

AS> Additionally you can use method explained here:
AS> http://www.sysinternals.com/ntw2k/source/fmifs.shtml
AS> This is help to get even progress callback to display progress in
AS> your application.

MSS>> Executing “format g:” by a CreateProcess call is one of the
MSS>> best ways. Otherwise, you will need to write all filesystem
MSS>> structures to the partition yourself.

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


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

You are currently subscribed to ntfsd as: xxxxx@cooldev.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

If it will be used in user mode - I guess it’s possible to call Disk Manager
COM Object and allow the user to format the partition “by hands” :wink:

But if I got it correct, Roman need a “silent” formatting method to embed it
into his own application, am I right?

Best regards,
Valeriy Glushkov

Roman,

on your place I would not spawn separate process to format the drive.
Really ugly! Mess with getting
progress and feedback, uh! I’d use SHFormatDrive(…) undocumented call.
Check this link:

http://www.codeproject.com/dialog/cformatdrivedialog.asp

to find good working and good looking example of how can be done what
you want :slight_smile:

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roman Kudinov
Sent: Tuesday, July 06, 2004 12:26 PM
To: Windows File Systems Devs Interest List
Subject: Re[2]: [ntfsd] how to format a drive?

Hello Al,

great thanks for the link.

Are there anything similar on Win9x or format.com is the only way for
this OS?


Roman Kudinov

mailto:xxxxx@rbcmail.ru

Monday, July 5, 2004, 2:38:26 PM, you wrote:

AS> Hello Roman,

AS> Sunday, July 04, 2004, 4:34:46 PM, you wrote:

Roman Kudinov>> Hello Maxim,

Roman Kudinov>> thanks, I didn’t think that it will be so easy :slight_smile:

AS> Additionally you can use method explained here:
AS> http://www.sysinternals.com/ntw2k/source/fmifs.shtml
AS> This is help to get even progress callback to display progress in
AS> your application.

MSS>> Executing “format g:” by a CreateProcess call is one of the
MSS>> best ways. Otherwise, you will need to write all filesystem
MSS>> structures to the partition yourself.

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


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

You are currently subscribed to ntfsd as: xxxxx@cooldev.com
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: gvvua@ua.fm
To unsubscribe send a blank email to xxxxx@lists.osr.com