In Binary and Bytes Explained: Flip the Bits Yourself and See Why Your 1 TB Disk Shows 931 GB, DevOps Daily uses an interactive byte display to explain a familiar storage discrepancy. The drive label and a disk utility may start with the same byte count and divide it by different numbers before displaying it.
Read a byte as a sum
The simulator assigns a value to each position in an eight-bit row. Starting on the right, the weights are 1, 2, 4, and so on up to 128. To represent 42, turn on the positions for 32, 8, and 2. Splitting the resulting bit string into groups of four gives 0010 and 1010. Those groups represent 2 and 10, so the hexadecimal display reads 2A.
The simulator can also increment the byte and show each carry. With every position set, the sum is 255. Adding one requires a ninth bit. An eight-bit counter that discards that carry displays zero. The same place values work in groups of three for Unix permission digits. In that setting, a digit of 5 represents read and execute because their weights add to 5.
Compare the byte count directly
A decimal terabyte contains one trillion bytes. Dividing that count by one billion gives 1,000 GB. Dividing by 1,073,741,824 gives about 931.32 GiB. Some interfaces label the second result GB, which makes the discrepancy look like a difference in capacity. The definitions for both divisors are listed by NIST.
DevOps Daily also compares device and filesystem totals on a Raspberry Pi. That is a separate measurement from converting units. A device can include a boot partition and a filesystem can spend space on metadata. When investigating a discrepancy, start by identifying what each tool measured and compare both totals in bytes. The conversion explains the label on a given total. Any difference between the underlying byte counts needs its own explanation.