• pastermil
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    Bet even if you actually get the number of bytes from the raw block device, it won’t match that advertised number.

    • pivot_root@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      If it’s a SSD, it might. They are overprovisioned for wear-levelling, reducing write amplification, and remapping bad physical blocks.

      I wouldn’t trust one off of Wish, but any reputable consumer brand will be overpovisioned by 2-8% of the rated capacity. For 1 TB, it would take an entire 9% to match the rated capacity in base-2 data units instead of SI units, but enterprise drives might reach or exceed that figure.

    • LostXOR@fedia.io
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      My 1TB and 12TB drives are 1000204886016 and 12000138625024 bytes respectively. Looks like between the two I got a whole 343 MB for free!