programing

Vista에서 NTFS 파티션의 할당 단위 크기를 어떻게 볼 수 있습니까?

nasanasas 2020. 11. 29. 11:48
반응형

Vista에서 NTFS 파티션의 할당 단위 크기를 어떻게 볼 수 있습니까?


특정 NTFS 파티션의 할당 단위 크기를 결정하는 데 사용할 수있는 기본 제공 도구 (있는 경우)는 무엇입니까?


관리자 명령 프롬프트를 열고 다음 명령을 수행하십시오.

fsutil fsinfo ntfsinfo [your drive]

클러스터 당 바이트는 할당 단위와 동일합니다.


사용 diskpart.exe.

당신이 diskpart를에서 일단 select volume <VolumeNumber>다음 입력합니다 filesystems.

파일 시스템 유형과 할당 단위 크기를 알려줍니다. 또한 지원되는 크기 등을 알려줄 것입니다. 이전에 언급 한대로 fsutil작동하지만 대답이 명확하지 않고 연결 지점에 대해 동일한 정보를 얻을 수있는 구문을 찾을 수 없습니다.


모든 Windows 시스템에서 GUI를 통해 빠르게 찾을 수있는 또 다른 방법 :

  1. 텍스트 파일을 만들고 그 안에 한두 단어 (또는 임의의 텍스트)를 입력 한 다음 저장합니다.

  2. 파일을 마우스 오른쪽 버튼으로 클릭하면 속성이 표시됩니다.

  3. "디스크상의 크기"= 할당 단위.


이것이 오래된 스레드라는 것을 알고 있지만 fsutil 또는 diskpart를 사용해야하는 새로운 방법이 있습니다.

이 powershell 명령을 실행합니다.

Get-Volume | Format-List AllocationUnitSize, FileSystemLabel


클러스터 당 바이트 값-65536 = 64K

C:\temp>fsutil fsinfo drives

Drives: C:\ D:\ E:\ F:\ G:\ I:\ J:\ N:\ O:\ P:\ S:\

C:\temp>fsutil fsinfo ntfsInfo N:
NTFS Volume Serial Number :       0xfe5a90935a9049f3
NTFS Version   :                  3.1
LFS Version    :                  2.0
Number Sectors :                  0x00000002e15befff
Total Clusters :                  0x000000005c2b7dff
Free Clusters  :                  0x000000005c2a15f0
Total Reserved :                  0x0000000000000000
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 :           0x0000000000040000
Mft Start Lcn  :                  0x00000000000c0000
Mft2 Start Lcn :                  0x0000000000000002
Mft Zone Start :                  0x00000000000c0000
Mft Zone End   :                  0x00000000000cc820
Resource Manager Identifier :     560F51B2-CEFA-11E5-80C9-98BE94F91273

C:\temp>fsutil fsinfo ntfsInfo N:
NTFS Volume Serial Number :       0x36acd4b1acd46d3d
NTFS Version   :                  3.1
LFS Version    :                  2.0
Number Sectors :                  0x00000002e15befff
Total Clusters :                  0x0000000005c2b7df
Free Clusters  :                  0x0000000005c2ac28
Total Reserved :                  0x0000000000000000
Bytes Per Sector  :               512
Bytes Per Physical Sector :       512
Bytes Per Cluster :               65536
Bytes Per FileRecord Segment    : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length :           0x0000000000010000
Mft Start Lcn  :                  0x000000000000c000
Mft2 Start Lcn :                  0x0000000000000001
Mft Zone Start :                  0x000000000000c000
Mft Zone End   :                  0x000000000000cca0
Resource Manager Identifier :     560F51C3-CEFA-11E5-80C9-98BE94F91273

Microsoft 에 따르면 할당 단위 크기는 "파일 시스템의 클러스터 크기를 지정합니다"-따라서 다음과 같이 "클러스터 당 바이트"에 표시된 값입니다.

fsutil fsinfo ntfsinfo C:

명령 줄에서 Mark Russinovich의 SysInternals NTFSInfo사용할 수 있으며 fsutil fsinfo ntfsinfo를보다 읽기 쉬운 정보, 특히 MFT 테이블 정보로 변환합니다.


명령 줄에서 :

chkdsk l : (스캔이 완료 될 때까지 기다리십시오)

sizdir32 http://www.ltr-data.se/opencode.html/


The simple GUI way, as provided by J Y in a previous answer:

  1. Create a small file (not empty)
  2. Right-click, choose Properties
  3. Check "Size on disk" (in tab General), double-check that your file size is less than half that so that it is certainly using a single allocation unit.

This works well and reminds you of the significance of allocation unit size. But it does have a caveat: as seen in comments to previous answer, Windows will sometimes show "Size on disk" as 0 for a very small file. In my testing, NTFS filesystems with allocation unit size 4096 bytes required the file to be 800 bytes to consistently avoid this issue. On FAT32 file systems this issue seems nonexistent, even a single byte file will work - just not empty.


start > run > MSINFO32

goto components

goto storage

goto disk

on the right look for Bytes/Sector

참고URL : https://stackoverflow.com/questions/81236/how-can-i-view-the-allocation-unit-size-of-a-ntfs-partition-in-vista

반응형