JSI Tip 5351. How can I display drive information from the Windows XP command-line?

Jerold Schulman

May 23, 2002

2 Min Read
ITPro Today logo in a gray background | ITPro Today

When you use Help and Support to view information about the fsutil fsinfo command, you receive:

Fsutil: fsinfo Typically used by support professionals. Lists all drives, queries the drive type,               queries volume information, queries NTFS-specific volume information,               or queries file system statistics.Syntaxfsutil fsinfo [drives]fsutil fsinfo [drivetype] PathNamefsutil fsinfo [ntfsinfo] RootPathnamefsutil fsinfo [statistics] VolumePathnamefsutil fsinfo [volumeinfo] RootPathnameParametersdrives     Lists all drives in the computer. drivetype      Queries a drive and lists its type, for example CD-ROM drive. ntfsinfo      Lists NTFS specific volume information for the specified volume, such as the number of sectors,     total clusters, free clusters, and the start and end of the MFT Zone. statistics      Lists file system statistics for the specified volume, such as metadata, log file, and MFT reads and writes. volumeinfo     Lists information for the specified volume, such as the file system, and whether the volume supports     case-sensitive file names, unicode in file names, or disk quotas. PathName     Specifies the drive letter (followed by a colon), mount point, or volume name. RootPathname     Specifies the drive letter (followed by a colon) of the root drive. VolumePathname     Specifies the drive letter (followed by a colon), mount point, or volume name. ExamplesTo query the drive type of drive C, type:fsutil fsinfo drivetype C:Possible results:Unknown Drive No such Root Directory Removable Drive, for example floppy Fixed Drive Remote/Network Drive CD-ROM Drive Ram Disk To query the volume information for volume E, type:fsinfo volumeinfo E:Sample output:Volume Name :Volume Serial Number : 0xd0b634d9Max Component Length : 255File System Name : NTFSSupports Case-sensitive filenamesPreserves Case of filenamesSupports Unicode in filenamesPreserves & Enforces ACL'sSupports file-based CompressionSupports Disk QuotasSupports Sparse filesSupports Reparse PointsSupports Object IdentifiersSupports Encrypted File SystemSupports Named StreamsTo query drive F for NTFS-specific volume information, type:fsutil fsinfo ntfsinfo F:Sample output:NTFS Volume Serial Number : 0xe660d46a60d442cbNumber Sectors : 0x00000000010ea04fTotal Clusters : 0x000000000021d409Free Clusters : 0x00000000000f222aTotal Reserved : 0x0000000000003550Bytes Per Sector : 512Bytes Per Cluster : 4096Bytes Per FileRecord Segment : 1024Clusters Per FileRecord Segment : 0Mft Valid Data Length : 0x0000000003eab000Mft Start Lcn : 0x0000000000000004Mft2 Start Lcn : 0x000000000010ea04Mft Zone Start : 0x0000000000003ea0Mft Zone End : 0x0000000000004700To query the file system statistics for drive E, type:fsinfo statistics E:Sample output:File System Type : NTFSVersion : 1UserFileReads : 75021UserFileReadBytes : 1305244512UserDiskReads : 71213UserFileWrites : 8037UserFileWriteBytes : 207685440UserDiskWrites : 5278MetaDataReads : 14377MetaDataReadBytes : 58888192MetaDataDiskReads : 14773MetaDataWrites : 18705MetaDataWriteBytes : 138108928MetaDataDiskWrites : 21464MftReads : 9394MftReadBytes : 38477824MftWrites : 17061MftWriteBytes : 115359744Mft2Writes : 0Mft2WriteBytes : 0RootIndexReads : 0RootIndexReadBytes : 0RootIndexWrites : 0RootIndexWriteBytes : 0BitmapReads : 136BitmapReadBytes : 557056BitmapWrites : 1180BitmapWriteBytes : 11161600MftBitmapReads : 4MftBitmapReadBytes : 16384MftBitmapWrites : 118MftBitmapWriteBytes : 491520UserIndexReads : 2938UserIndexReadBytes : 12034048UserIndexWrites : 2738UserIndexWriteBytes : 20615168LogFileReads : 4LogFileReadBytes : 16384LogFileWrites : 8407LogFileWriteBytes : 180936704

NOTE: See tip 5350 How can I determine a drive size and free space in a Windows XP batch?



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like