Difference between revisions of "Block size"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
+
[[wikipedia:Block (data storage)|Block size]]
  
 +
[[blockdev]] --getbsz /dev/sda11
 +
4096
 +
blockdev --getsize64 '/dev/sda'
 +
 +
[[tune2fs]] -l /path/to/device | grep "[[Block]] size"
 +
 +
blockdev --rereadpt /dev/sdaaa
 +
 +
 +
Windows: <code>fsutil fsinfo ntfsinfo [your drive]</code>
 +
 +
<pre>
 +
fsutil fsinfo ntfsinfo C:
 +
NTFS Volume Serial Number :        0x3a32d3ff32d3de55
 +
NTFS Version  :                  3.1
 +
LFS Version    :                  1.1
 +
Number Sectors :                  0x000000004af04fff
 +
Total Clusters :                  0x00000000095e09ff
 +
Free Clusters  :                  0x0000000008e1334d
 +
Total Reserved :                  0x0000000000001824
 +
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 :            0x000000000d8c0000
 +
Mft Start Lcn  :                  0x00000000000c0000
 +
Mft2 Start Lcn :                  0x0000000000000002
 +
Mft Zone Start :                  0x0000000000506840
 +
Mft Zone End  :                  0x0000000000513060
 +
Max Device Trim Extent Count :    0
 +
Max Device Trim Byte Count :      0x0
 +
Max Volume Trim Extent Count :    62
 +
Max Volume Trim Byte Count :      0x40000000
 +
Resource Manager Identifier :    9D21DA68-6D41-11EA-8D5C-B54A0A7FDTXT
 +
</pre>
 +
 +
<code>Bytes Per Cluster</code> is the equivalent of the allocation unit.
 +
 +
== PostgreSQL ==
 +
* <code>[[show block_size]]</code>
 +
* <code>[[select]] [[current_setting]]('block_size');</code>
 +
 +
== Related terms ==
 +
* [[Reservation percentage]]
 +
* [[Block]]
  
 
== See also ==
 
== See also ==
 +
* {{fdisk}}
 
* {{files}}
 
* {{files}}
 +
* {{filesystems}}
 +
* {{Block device hardware}}
 +
 +
 +
[[Category:Storage]]

Latest revision as of 22:51, 31 October 2021

Block size

blockdev --getbsz /dev/sda11
4096
blockdev --getsize64 '/dev/sda'
tune2fs -l /path/to/device | grep "Block size"
blockdev --rereadpt /dev/sdaaa


Windows: fsutil fsinfo ntfsinfo [your drive]
fsutil fsinfo ntfsinfo C:
NTFS Volume Serial Number :        0x3a32d3ff32d3de55 
NTFS Version   :                   3.1
LFS Version    :                   1.1
Number Sectors :                   0x000000004af04fff
Total Clusters :                   0x00000000095e09ff
Free Clusters  :                   0x0000000008e1334d
Total Reserved :                   0x0000000000001824
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 :            0x000000000d8c0000
Mft Start Lcn  :                   0x00000000000c0000
Mft2 Start Lcn :                   0x0000000000000002
Mft Zone Start :                   0x0000000000506840
Mft Zone End   :                   0x0000000000513060
Max Device Trim Extent Count :     0
Max Device Trim Byte Count :       0x0
Max Volume Trim Extent Count :     62
Max Volume Trim Byte Count :       0x40000000
Resource Manager Identifier :     9D21DA68-6D41-11EA-8D5C-B54A0A7FDTXT

Bytes Per Cluster is the equivalent of the allocation unit.

PostgreSQL[edit]

Related terms[edit]

See also[edit]

Advertising: