Data Centers

Get information about Windows 2003 Server disk volumes with NTFSInfo

What's going on with your Windows Server 2003's NTFS volumes? Scott Lowe talks about Sysinternals' NTFSInfo utility, which can provide you with nearly everything you'd want to know about each and every one of your volumes.

How many of you are running something other than NTFS on your Windows Server 2003 servers? Probably not many—after all, in most cases, running a Windows server without NTFS doesn't make sense. But, how do you get granular information about your individual NTFS volumes, such as the number of sectors, cluster size, and other interesting NTFS information? Use Sysinternals' NTFSInfo utility, which you can download from Microsoft's Web site. (Sysinternals is now owned by Microsoft.)

Among other details, NTFSInfo provides you with the following information:

  • The cluster-based location of the Master File Table
  • The starting cluster of the mirror of the Master File Table
  • The size of the Master File Table
  • The size of the volume in megabytes
  • The total number of sectors and clusters
  • The free space available
  • The number of bytes per sector and cluster

After installing NTFSInfo, this is the output from one of the disks in my machine:

C:\>ntfsinfo f:
NTFS Information Dump V1.01
Copyright © 1997 Mark Russinovich
http://www.sysinternals.com

Volume Size
----------------
Volume size: 16378 MB
Total sectors: 33543656
Total clusters: 4192957
Free clusters: 3848814
Free space: 15034 MB (91% of drive)

Allocation Size
----------------
Bytes per sector: 512
Bytes per cluster: 4096
Bytes per MFT record: 1024
Clusters per MFT record: 0

MFT Information
----------------
MFT size: 15 MB (0% of drive)
MFT start cluster: 786432
MFT zone clusters: 786464—1310560
MFT zone size: 2047 MB (12% of drive)
MFT mirror start: 2096478

Miss a column?

Check out the Windows Server 2003 archive, and catch up on the most recent tips from this newsletter.

Stay on top of the latest WS2K3 tips and tricks with our free Windows Server 2003 newsletter, delivered each Wednesday. Automatically sign up today!

8 comments
PogiDaga
PogiDaga

This NTFSinfo program is just what i was looking for, but i don't want to install it on 400+ servers. Does anybody know a way to get volume size and volume free space into a text file using what's already installed on Server 2003 SP1?

DWRandolph
DWRandolph

ntfsinfo is not "installed", just unzip from the download and run it. The first time there was a license popup, may have to track the reg key to put on your 400 first. Then try something like psexec (also from SysInternals) to run on the remotes. For just volume size and free space, srvinfo (from Resource Kit) already knows how to get data from remotes.

mdbradsh
mdbradsh

Why a text file when you can just click on My computer if that's all the info you want.

kride2006
kride2006

Here is one example of getting disk info from remote systems. First the example for getting the info from the local machine: wmic logicaldisk where (drivetype=3) get systemname, deviceid, size, freespace Enter that line at a cmd prompt. You can of course redirect that output to a file. To run that same command against a remote machine, just add the /node:remotename switch to the above line like this wmic /node:kevstoy logicaldisk where (drivetype=3) get systemname, deviceid, size, freespace There are LOTS of other types of info you can get with WMIC. You can now put the above line into a batch file and run it against a list of computers and have the ouput redirected to unique filenames like this: ::begin diskinfo.bat------------- IF NOT EXIST C:\results MD c:\results FOR /F %%A in (c:\computerlist.TXT) DO Call :NextOne %%A pause GOTO:EOF :Nextone wmic /node:%1 logicaldisk where (drivetype=3) get systemname, deviceid, size, freespace > c:\results\%1.txt GOTO:EOF :EOF ::end of batch------------- I would have some more bells and whistles, but I post here only what is necessary to make it run. Go look in your c:\results folder and see if it worked.

PogiDaga
PogiDaga

I have have to click on My Computer on 400 different servers i'll get carpal tunnel syndrome. I want to execute a batch file on all 400 servers at once (i can do that) and pull back the text files and mash them into a spreadsheet.

mdbradsh
mdbradsh

Very cool. Ask and you shall receive!

PirateSam
PirateSam

There used to be a free program called AIDA32 that allowed you to connect to each server without the need to install anything new. Do a google search for AIDA32 and you will find the new company -paying- program that will do the trick. If my memory serves me right the company is called Lavalys.

mdbradsh
mdbradsh

Don't think you can without downloading some sort of program and/or visiting each server at least once anyway? Don't know of anything in Win Serv 03 that would enable the ability to do this. Sorry.

Editor's Picks