• @Ret2libsanity
    link
    English
    1011 months ago

    Someone should get one of these and dd copy all 0xdeadbeefs to the disk

    Then dd it all off and confirm no corruption and it truly is the size it says.

    Seen firmwares of shitty sd cards and drives lie about their storage capacity

        • TWeaK
          link
          fedilink
          English
          910 months ago

          That’s not the only issue. Some flash drives have been found to completely misrepresent their sizes. There was something of an epidemic of them a few years ago, so much so that people started testing their drives after purchase (with tools eg Fight Flash Fraud). You could fill up the drive, then it would just completely fail as it did not actually have the storage capacity advertised.

          Suffice it to say, the data storage industry isn’t without its own brand of shady practices.

        • @Aceticon@lemmy.world
          link
          fedilink
          7
          edit-2
          10 months ago

          Just as a side note for any reader that doesn’t already know it, the computer ones are 2 to the power of a multiple of 10.

          So 1 kilobyte is 210 (which is 1024) bytes, 1 MiB is 220 (1048576) btes and so on.

          So there is actually some logic behind the wierd looking numbers.

        • @phoenixz@lemmy.ca
          link
          fedilink
          210 months ago

          True, and adding the filesystem also takes off somewhat. That, however, doesn’t explain 15 vs 9 gb

        • lemmyvore
          link
          fedilink
          English
          -111 months ago

          And then you have to put a filesystem on it, which has its own metadata – file attributes and folder/file names and so on. If you use NTFS you lose at least 12.5% to the metadata so now you’re down to 11.8 GiB. 😛

          • FaceDeer
            link
            fedilink
            410 months ago

            As an amusing side note, I once came across a joke compression program that could compress any data down to zero bytes. It did this by creating directories filled with zero-sized files whose filenames contained the actual data of the file in question.

            If you right-clicked on the folder and asked the OS how big it was, it’d report 0 bytes. But of course all that data still had to be stored somewhere, in the metadata of the filesystem.

      • TWeaK
        link
        fedilink
        English
        -511 months ago

        It’s worse than that, the computer will still see 15GB, however when you fill it beyond 9GB everything will turn to shit and get corrupted. The idea being that this won’t happen until some time after the purchase, making it harder to return.