Share via


fsutil volume

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows 10、Windows Server 2012 R2、Windows 8.1、Windows Server 2012、Windows 8

卸載磁碟區或查詢硬碟,以判斷硬碟上目前有多少可用空間或哪個檔案正在使用特定叢集。

語法

fsutil volume [allocationreport] <volumepath>
fsutil volume [diskfree] <volumepath>
fsutil volume [dismount] <volumepath>
fsutil volume [filelayout] <volumepath> <fileID>
fsutil volume [list]
fsutil volume [querycluster] <volumepath> <cluster> [<cluster>] … …

參數

參數 描述
allocationreport 顯示指定磁碟區上儲存體使用方式的相關資訊。
<volumepath> 指定磁碟機號 (後面跟著冒號)。
diskfree 查詢硬碟,以判斷硬碟上的可用空間量。
卸載 - dismount 卸載磁碟區。
filelayout 顯示指定檔案的 NTFS 中繼資料。
<fileID> 指定檔案識別碼。
清單 列出系統上的所有磁碟區。
querycluster 尋找使用指定叢集的檔案。 您可以使用 querycluster 參數指定多個叢集。
<cluster> 指定邏輯叢集編號 (LCN)。

範例

若要顯示已配置的叢集報告,請輸入:

fsutil volume allocationreport C:

若要卸載磁碟機 C 上的磁碟區,請輸入:

fsutil volume dismount c:

若要查詢磁碟機 C 上磁碟區的可用空間量,請輸入:

fsutil volume diskfree c:

若要顯示指定檔案的所有資訊,請輸入:

fsutil volume C: *
fsutil volume C:\Windows
fsutil volume C: 0x00040000000001bf

若要列出磁碟上的磁碟區,請輸入:

fsutil volume list

若要尋找磁碟機 C 上正在使用由邏輯叢集編號 50 和 0x2000 指定的叢集之檔案,請輸入:

fsutil volume querycluster C: 50 0x2000