65

Windows 7 で物理セクター サイズを確認するにはどうすればよいですか (たとえば、従来の 512 バイト セクターではなく 4,096 バイト セクターのAdvanced Formatドライブがある場合)。

ファイルをクリックしてプロパティを取得すると、 NTFS Cluster Sizeがわかりますが、これはハード ドライブのセクターサイズとは異なります。

: Windows 7 (および Windows Vista SP1) は 4096 Advanced Format ハード ドライブの存在を認識しているため、Windows 7 についてお尋ねします。

4

8 に答える 8

78

fsutilが必要です。コマンドプロンプトを管理者として実行していることを確認してください。

C:\Windows\system32>fsutil fsinfo ntfsinfo c:
NTFS Volume Serial Number :       0xf4ca5d7cca5d3c54
Version :                         3.1
Number Sectors :                  0x00000000378fd7ff
Total Clusters :                  0x0000000006f1faff
Free Clusters  :                  0x00000000000e8821
Total Reserved :                  0x0000000000000910
Bytes Per Sector  :               512
Bytes Per Physical Sector :       512
Bytes Per Cluster :               4096
Bytes Per FileRecord Segment    : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length :           0x00000000196c0000
Mft Start Lcn  :                  0x00000000000c0000
Mft2 Start Lcn :                  0x000000000097ffff
Mft Zone Start :                  0x000000000051f920
Mft Zone End   :                  0x000000000051f9a0
RM Identifier:        0652C3D3-7AA9-11DA-ACAC-C80AA9F2FF32
于 2012-02-27T13:09:22.577 に答える
40

Windows 10 の更新:

より良い情報を提供するsectorInfoサブコマンドが追加されました。

C:\>fsutil fsinfo sectorInfo C:

LogicalBytesPerSector :                                 512
PhysicalBytesPerSectorForAtomicity :                    4096
PhysicalBytesPerSectorForPerformance :                  4096
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment :                                      Aligned (0x000)
Partition alignment on device :                         Aligned (0x000)
Performs Normal Seeks
Trim Not Supported
于 2016-04-26T18:23:16.650 に答える
29

Chris Gessler の回答を拡張したかったのですが、Windows Management Instrumentation (WMI) を使用してドライブの物理wmicセクターを取得する既知の方法がないことに注意してください。

Advanced Format ドライブを使用している場合 (つまり、セクターあたり 512 ではなく 4,096 バイトを使用):

C:\Windows\system32>fsutil fsinfo ntfsinfo d:
NTFS Volume Serial Number :       0xa016d8a616d87eaa
Version :                         3.1
Number Sectors :                  0x00000000747057ff
Total Clusters :                  0x000000000e8e0aff
Free Clusters  :                  0x000000000e7b2813
Total Reserved :                  0x0000000000000000
Bytes Per Sector  :               512
Bytes Per Physical Sector :       4096

どちらの WMI もDiskDrive:

wmic:root\cli>diskdrive
Availability  BytesPerSector  Capabilities  CapabilityDescriptions                                       Caption
              512             {3, 4, 10}    {"Random Access", "Supports Writing", "SMART Notification"}  ST1000DM003-9YN162 ATA Device

 

Partition:

wmic:root\cli>partition get BlockSize, StartingOffset, Name, Index
BlockSize  Index  Name                   StartingOffset
512        0      Disk #0, Partition #0  1048576

基になる物理セクター サイズを報告できます。どちらも Windows が使用しているセクター サイズを報告していることがわかれば、それは理にかなっています。1 セクターあたり 512 バイトです。たまたまドライブが内部で異なっているだけです。

これは、Windows 8 のみが 4k セクターの使用をサポートしているためです。Windows 7 は、ドライブが 4k である可能性があることを認識し、その 4kクラスターをハードドライブの基礎となる 4kセクターに合わせます。

アップデート

wmic diskdriveでセクターごとの物理バイト数を表示するようなりました:Bytes per Sector

C:\Windows\system32>wmic
wmic:root\cli>diskdrive
Availability  BytesPerSector  Capabilities  CapabilityDescriptions                                       
              4096            {3, 4}        {"Random Access", "Supports Writing"}                        

wmic partition間違っている間。

Windows 10.0.19041.804

于 2012-11-23T16:54:43.477 に答える
15
  1. コマンド ラインで msinfo32 を実行すると、「システム情報」という GUI ウィンドウがポップアップ表示されます。
  2. 左側のペインで、[システムの概要] -> [コンポーネント] -> [ストレージ] -> [ディスク] を選択します。これにより、右側のペインにすべてのドライブの情報が読み込まれます
  3. 目的のドライブを見つけて、「Bytes/Sector」の値を確認します。「Bytes/Sector 4096」と表示されるはずです
于 2015-01-14T17:47:17.183 に答える
9

プログラムで取得したい場合は、構造体から送信IOCTL_DISK_GET_DRIVE_GEOMETRY_EXして使用する必要がありますGeometry.BytesPerSectorDISK_GEOMETRY_EX

于 2014-01-13T09:56:22.743 に答える
6

コマンドラインからwmicを使用できます。

C:\Windows\System32\wmic partition get BlockSize, StartingOffset, Name, Index

BlockSize  Index  Name                   StartingOffset
512        0      Disk #0, Partition #0  32256
512        1      Disk #0, Partition #1  370195176960

BlockSize、ドライブのセクター サイズです。

于 2012-02-27T13:18:47.360 に答える
5

パワーシェル:

$wql = "SELECT Label, Blocksize, Name FROM Win32_Volume WHERE FileSystem='NTFS'"
Get-WmiObject -Query $wql -ComputerName '.' | Select-Object Label, Blocksize, Name

出力例:

Label            Blocksize Name
-----            --------- ----
OSDisk                4096 C:\
Windows RE Tools      4096 \\?\Volume{b042c778-cd66-4381-9312-3f4311321675}\
PS C:\>
于 2016-07-13T14:55:54.723 に答える