Windows provides command line tool named fsutils to manage disk related issues. This tool provides management capabilities volume information to repairing file system, setting quotas to listing free space. In this tutorial we will look most needed usage scenarios of the fsutil
command.
Windows提供了名为fsutils的命令行工具来管理与磁盘相关的问题。 该工具提供管理功能卷信息以修复文件系统,设置配额以列出可用空间。 在本教程中,我们将研究fsutil
命令最需要的使用场景。
帮帮我 (Help)
Help about fsutil command can be get with just issuing the command.
只需发出命令,即可获得有关fsutil命令的帮助。
$ fsutil
![fsutil Help](https://img-blog.csdnimg.cn/img_convert/dcce69e704504bd925ef579f3d8602c2.png)
列出所有驱动器(List All Drives)
While troubleshooting or diagnosing a problem first thing we will do is listing installed drives. All drives connected on the system can be listed with the following command.
在排除故障或诊断问题时,我们要做的第一件事就是列出已安装的驱动器。 可以使用以下命令列出系统上连接的所有驱动器。
$ fsutil fsinfo drives
![List All Drives with fsutil](https://img-blog.csdnimg.cn/img_convert/b833e0007b2a6942106e00c23beeaeab.png)
We have only one drive current installed
我们仅安装了一个驱动器电流
打印驱动器类型(Print Drive Type)
Drive type is generally refer to the drive connection to the system. Local disk are generally used to install operating systems. In order to store data SAN storage is preferred. Disk type will give exact type of the drive.
驱动器类型通常是指驱动器与系统的连接。 本地磁盘通常用于安装操作系统。 为了存储数据,首选SAN存储。 磁盘类型将提供驱动器的确切类型。
$ fsutil fsinfo drivetype c:
![Print Drive Type](https://img-blog.csdnimg.cn/img_convert/42b774498d51733e813536aa399ac7f0.png)