
我在 Windows 中使用 fsutil 來尋找有關我的磁碟區的磁區資訊。我有兩個硬碟,一個是SSD,另一個是典型的磁帶硬碟。
SSD 磁碟機磁碟區 C 的邏輯和實體磁區大小均為 512。
C:\Windows\system32>fsutil fsinfo sectorinfo C:
LogicalBytesPerSector : 512
PhysicalBytesPerSectorForAtomicity : 512
PhysicalBytesPerSectorForPerformance : 512
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 512
Device Alignment : Aligned (0x000)
Partition alignment on device : Aligned (0x000)
No Seek Penalty
Trim Supported
Not DAX capable
Not Thinly-Provisioned
但是,我的磁硬碟的邏輯磁區大小為 512,實體磁區大小為 4096。
C:\Windows\system32>fsutil fsinfo sectorinfo G:
LogicalBytesPerSector : 512
PhysicalBytesPerSectorForAtomicity : 4096
PhysicalBytesPerSectorForPerformance : 4096
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment : Aligned (0x000)
Partition alignment on device : Aligned (0x000)
Performs Normal Seeks
Trim Not Supported
Not DAX capable
Not Thinly-Provisioned
我的 SSD 具有 GPT 分割區樣式,而磁硬碟具有 MBR 分割區樣式。
為什麼一個卷的邏輯和物理大小與另一個卷的邏輯和物理大小有差異,這顯示什麼?
答案1
為什麼一個卷的邏輯和物理大小與另一個卷的邏輯和物理大小有差異,這顯示什麼?
儘管 fsutil 命令的回應顯示分區/磁碟區標籤(在您的情況下為“C”或“G”)下方的數據,但邏輯和實體磁區大小是磁碟機的屬性。 C 和 G 分區僅繼承該資訊。
之所以有這種差異,是因為硬碟機製造商決定將磁區大小從 512 位元組增加到 4096 位元組。一旦出現問題,他們透過繼續在內部使用 4096 位元組的新磁區大小來解決問題,但在外部介面上顯示每個磁區為 512 位元組。
這表示您應該小心地將分割區與實體磁區邊界對齊。傳統作業系統(例如Windows XP)試圖在柱面邊界上對齊分割區,這很容易導致缺乏對齊。對準不匹配會增加磨損並降低性能。目前(2021 年 11 月 12 日)分區工具確實可以正確設定分區邊界以避免錯位。