Format a volume as NTFS on Windows server 2003

Hi there,

I am trying to format a virtual volume with the FormatEx() function of fmifs.dll on Windows Server 2003. It does work to format a volume named with a drive letter, like “\DoesDevice\n:”. However, if a volume is named without a drive letter, like “\DosDevice\Test13”. Can anybody tell me why there is such a difference?

One information for the experts who are interesting in the question. The volume named without a driver letter works fine on Vista. Only Windows 2003 has the problem.

My additional questions:

  1. Is the volume name valid for Windows Server 2003? If not, what is the rule for Windows server 2003?

  2. Is there other way for format NTFS programmically in Windows Server 2003?

Appreciate your answers,
Rex

> 1. Is the volume name valid for Windows Server 2003? If not, what is the rule for Windows server

2003?

  1. Is there other way for format NTFS programmically in Windows Server 2003?

The FORMAT tool and its internals can have arbitrary restrictions of its own to only support the drive letters.

This is just uncharted and undocumented land, and no wonder it does not work on some OSes.

Same is with 1:, 2: etc drive letters - you can define one by kernel-mode and it will work with CMD, but not with Explorer.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Looks like CreateFile Win2k3 only knows

a:, b:, c:,…

and

1:, 2:, 3:, …, 9:

Any other way to create a file handle with other volume name like Test1, Test2, …, Test100?

Rex

Are test1, test2 etc volume mount points ?
If yes then get the guid name (\.\Volume{GUID}) and use it to open the
volume.

Harish

-----Original Message-----
From: xxxxx@gmail.com [mailto:xxxxx@gmail.com]
Sent: Wednesday, September 09, 2009 9:25 PM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Format a volume as NTFS on Windows server 2003

Looks like CreateFile Win2k3 only knows

a:, b:, c:,…

and

1:, 2:, 3:, …, 9:

Any other way to create a file handle with other volume name like Test1,
Test2, …, Test100?

Rex


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer