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.

5
  • 13
    @heinrich5991 How can you be sure the device block-size is always 512 bytes? Commented May 26, 2013 at 19:19
  • 11
    The sector size is always 512 bytes according to the source. For the future, I am trying to get this interface documented. Commented Dec 26, 2015 at 21:39
  • Thank you for making that clear. I noticed that there's also a /sys/class/block/sda/queue/logical_block_size. I wasn't sure if I should use that, or the constant 512. Commented Oct 4, 2019 at 23:10
  • Usually compact disks have 2kB sectors. Adding hidden data, 2352 bytes. Commented Nov 4, 2021 at 4:27
  • Why Am I getting 500082032? Commented May 6, 2023 at 12:51