Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Actually, I think you have those reversed. (Unless my system has 512-byte physical blocks and 4096-byte logical blocks.) Commented Jul 10, 2012 at 19:24
  • 2
    Well, I realized that block/ioctl.c in Linux kernel source contains misleading comments. BLKPBSZGET (notice the P) gets physical sector size, BLKSSZGET gets logical sector size and BLKBSZGET (or BLKBSZGET_32 in block/compat_ioctl.c) gets file system allocation unit (cluster) size. Logical and physical sector size differ when Advanced Format 512e is used. (512e @ WP) Commented Feb 22, 2015 at 21:03
  • @Palec Most knowledgeful comment among all answers and comments to this question. Commented Sep 5, 2019 at 9:26