>>>>> "Aleksander" == Aleksander Adamowski <linux@xxxxxxxxxx> writes: Aleksander> Is using sg_readcap like below sufficient? Aleksander> AFAIU, sg_readcap would not report logical blocks per Aleksander> physical block on older kernels? sg_readcap sends a SCSI command directly to the disk so that won't work. You can look for alignment_offset in /sys/block/sdX, call the BLKALIGNOFF ioctl, or use blockdev from a recent util-linux. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html