Diskのblock, sectorサイズなどの大きさ

/proc/partitionsのblockは、1024B単位
# cat /proc/partitions 
major minor  #blocks  name

   8        0  117220824 sda
   8        1       1024 sda1
   8        2    2097152 sda2
   8        3   16777216 sda3
   8        4   16777216 sda4
   8        5   16777216 sda5
   8        6   64788480 sda6
   8       16 3907018584 sdb
gdiskのsectorは、下記で、青字にしたように表示されているが512B単位が多い
Disk /dev/sda: 234441648 sectors, 111.8 GiB
Model: KINGSTON SV300S3
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 877EDACD-6579-48A8-ACBD-7F4DAC5E7040
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 4973 sectors (2.4 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            4095   1024.0 KiB  EF02  
   2            4096         4198399   2.0 GiB     8300  
   3         4198400        37752831   16.0 GiB    8300  
   4        37752832        71307263   16.0 GiB    8300  
   5        71307264       104861695   16.0 GiB    8200  
   6       104861696       234438655   61.8 GiB    8300

0 件のコメント: