I've tried the following to find out the true physical sector size attached storage. However, though it mostly says 512B, I wonder about that. I've read that many devices really use 4kB or 8kB these days while still reporting only 512B. Where can I verify that?
But my actual question is what is the true physical sector size of the device being examined below?
Code:
# f3probe --destructive --time-ops /dev/sda
F3 probe 6.0
[...]
Good news: The device `/dev/sda' is the real thing
Device geometry:
*Usable* size: 14.32 GB (30031250 blocks)
Announced size: 14.32 GB (30031250 blocks)
Module: 16.00 GB (2^34 Bytes)
Approximate cache size: 0.00 Byte (0 blocks), need-reset=no
Physical block size: 512.00 Byte (2^9 Bytes)
Probe time: 4'16"
Operation: total time / count = avg time
Read: 666.5ms / 4814 = 138us
Write: 4'11" / 4192321 = 59us
Reset: 215.7ms / 1 = 215.7ms
# parted /dev/sda print
Error: /dev/sda: unrecognised disk label
Model: SanDisk Ultra Fit (scsi)
Disk /dev/sda: 15,4GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
# fdisk -l /dev/sda
Disk /dev/sda: 14,3 GiB, 15376000000 bytes, 30031250 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# blockdev --getbsz /dev/sda
1024
# cat /sys/block/sda/queue/hw_sector_size
512
# lsblk -o NAME,PHY-sec /dev/sda
NAME PHY-SEC
sda 512
# hdparm -I /dev/sda | grep -i physical
SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 14 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Logical/Physical Sector size: 512 bytes
# lshw
[...]
*-disk
description: SCSI Disk
product: Ultra Fit
vendor: SanDisk
phyical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 1.00
serial: xxxxxxxxxxxxxxxxxxxx
size: 14GiB (15GB)
capabilities: removable
configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
[...]