dmesg --follow
[ 68692020.000 ] posts.x: Full talk on building a structured query engine for agent context, from schema discovery to self-correcting queries:  |   [ 68692020.000 ] posts.x: When Claude starts a task with no context attached, it behaves like a brand new employee: grepping through the codebase, guessing at what matters…  |   [ 68673720.000 ] posts.x: @davidsenra you will love this!  |   [ 68673600.000 ] posts.x: https://t.co/vhJifvV8y9  |   [ 68673600.000 ] posts.x: This Jay-Z documentary, In 8, is exceptional! Nearly 6 hours of intimate conversation between @sc and the brilliant @RickRubin. It’s rare to get such…  |   [ 68662260.000 ] posts.x: Full talk on turning re-prompted fixes into linters, including the OpenAPI drift fix and the skill-writing whack-a-mole:  |   [ 68662260.000 ] posts.x: Re-prompting an agent to fix the same sloppy pattern over and over isn't a workflow, it's a sign the rule should live in code, not in your head…  |   [ 68650020.000 ] posts.x: ↻ @willcb: me: kinda fucked up how many people are offloading their whole lives to muse or instinct or grokbot or whatever claude: yeah  |   [ 68650020.000 ] posts.x: ↻ @iamdevloper: signs you've become the senior dev: you're the only one who understands the deploy script you're the only one who remembe…  |   [ 68649720.000 ] posts.x: Gooooooooood morning! Brazil Oberon Cerrado. Roasted 110 seconds past first crack. Milk chocolate and almond.  |   [ 68647800.000 ] posts.x: @Saanvi_dhillon “Git expert” is a weird flex, though, isn’t it?  |   [ 68610720.000 ] posts.x: @sujee_dev @dkundel @aiDotEngineer Thanks mate!  |   [ 68600580.000 ] posts.x: Full talk on the Codex app server protocol and what you can build on top of the Codex harness:  |   [ 68600580.000 ] posts.x: A lot of engineers assume building their own agent interface means writing their own agent harness from scratch. @dkundel, Developer Experience Lead…  |  
corey@gallon.me:~/til$

Why An 8TB Drive Isn’t 8 Usable TB

FIGURE 1 ⋅ Why An 8TB Drive Isn’t 8 Usable TB

I bought an 8TB external SSD to use as a live boot Linux device. I knew that this issue was due to the way that bits are aggregated into terabytes, but — thanks to our mate ChatGPT — here’s a nice explanation of why my 8TB SSD only shows 7,452.02 GB (7.452TB) of usable space.


The discrepancy between the advertised capacity of your SSD (8 TB) and the actual usable capacity (7,452.02 GB) is due to differences in how storage manufacturers and operating systems calculate disk space. Here’s a detailed explanation:


1. Manufacturer vs. Operating System Measurements

  • Manufacturer Calculation (Decimal - Base 10):
    • Storage manufacturers use the decimal system, where:
      • 1 TB = 1,000,000,000,000 bytes.
      • 8 TB = 8,000,000,000,000 bytes.
  • Operating System Calculation (Binary - Base 2):
    • Operating systems (like Windows, Linux, macOS) use the binary system, where:
      • 1 GiB = 1,073,741,824 bytes.
      • 1 TiB = 1,099,511,627,776 bytes.

When your OS displays capacity:

  • 8,000,000,000,000 bytes ÷ 1,073,741,824 bytes per GiB = ~7,452 GiB.
  • Similarly:
    • 8,000,000,000,000 bytes ÷ 1,099,511,627,776 bytes per TiB = ~7.28 TiB.

2. Why This Happens

  • Marketing: Manufacturers prefer the larger-looking decimal numbers.
  • Reality Check: Computers deal in binary, so the OS displays the actual capacity based on base-2 calculations.

3. Example of Conversion

If you calculate the conversion:

  • Advertised (Decimal): 8 TB = 8,000,000,000,000 bytes.
  • Actual (Binary): 8,000,000,000,000 bytes ÷ 1,073,741,824 (GiB) = ~7,452 GiB.

4. Formatting Overhead

Additionally, after formatting the drive:

  • Some space is used for file system structures and metadata (e.g., NTFS, exFAT, ext4), reducing the usable capacity further.

5. Practical Impact

  • The actual capacity you see (7,452.02 GB) is correct and normal for an 8 TB SSD.
  • You haven’t lost any capacity—it’s just how the numbers are calculated and represented.
corey@gallon.me:~$ tail -f /writing Attach to the stream. An email when I have something worth sending. Replies encouraged!
corey@gallon.me:~$ ls -lt /til ↑2024-11-28 Copying Files in Linux With a Progress Bar
▸2024-11-28 Why An 8TB Drive Isn’t 8 Usable TB ⋅ you are here
↓2024-11-14 Wrap with HTML tags in VSCode