Building a Linux Distro: The Disk Formatting Adventure
Join Dr. JB as he codes a disk formatter for a custom Linux distro. Debugging, partitioning, and formatting made fun!
Written by AI. Zara Chen

Photo: dr Jonas Birch / YouTube
Alright, folks, gather ‘round for another episode of "Dr. JB Builds a Linux Distro From Scratch." This time, we're diving into the spectacular world of disk formatting and partition verification. Sounds as thrilling as binge-watching paint dry, right? But hold tight! There's more excitement here than a TikTok algorithm update. 🎉
The Plot Thickens
In this third installment, Dr. JB takes us on a journey where coding a disk formatter becomes the main quest. Our hero is not just creating a Linux distribution; he's crafting a full-scale saga, complete with swapping partitions and verifying them like a tech-savvy Sherlock Holmes. "We always create two partitions, one swap, one Linux," says Dr. JB, laying the groundwork for all things partition-related.
Debugging: The Real Plot Twist
Instead of a smooth sail across a sea of code, programming often feels like solving a Rubik's cube blindfolded. Dr. JB's bug-fixing adventure is no different. Our fearless coder encounters a bug where existing partition tables keep getting new additions—unasked guests at your party. His response? A quick erase function to clean up the guest list.
Measure First, Format Later
Before we even think about formatting, we need to map out these partitions. Dr. JB introduces an 'expert button,' giving advanced users the godlike power to create their own partition tables. "In that case, we need to figure out if we have a swap and how big it is," he explains. It's like playing Minecraft but with disk space.
Coding the Formatter: The Main Event
With our detective hats on, we dive into the main event: coding the formatter. Dr. JB breaks down the steps like a chef preparing a complex meal. He's got the recipe, but the ingredients need some fine-tuning. "We have something which is called mkfs," he notes, referring to the tool that formats our chosen partition.
The Final Countdown
As Dr. JB wraps up this coding escapade, he leaves us at the edge of our seats. The hard disk drive construction is the next hurdle, a cliffhanger that would make even Netflix envious. "We have successfully created a formatter and a partition verifier," he declares, a victorious note to an episode that was anything but dull.
So, what's next for our intrepid coder? Only the digital gods know, but one thing's for sure: the path to a perfect Linux setup is never without its bumps—or its memes. Keep those coding fingers limber, and who knows? Maybe you’ll be the next Dr. JB in the making.
Stay curious, stay coding. 🎤⬇️
By Zara Chen
More Like This
GoPro Mission 1 Pro Review: 960fps Changes Everything
GoPro's Mission 1 Pro packs 8K60, 960fps slow-mo, and a 1-inch sensor. Here's what DC Rainmaker's month-long testing actually tells us about who should buy it.
Mastering Linux Man Pages: A Detailed Guide
Learn how to create effective Linux man pages with structure, formatting, and clarity.
Crafting Linux: Exploring Open-Source Empowerment
Building Linux distributions illustrates open-source power and security implications.
Effect-Oriented Programming: Making Side Effects Safe
Three authors explain how effect-oriented programming brings type safety to the messy, unpredictable parts of code—without the intimidating math.
GNU Coreutils Now Run Natively on Windows
Microsoft has ported GNU Coreutils to Windows as native binaries. Here's what that means for devs switching between Linux and Windows daily.
The NSA Backdoor That Broke Internet Encryption
How a 'random' number generator endorsed by the NSA potentially compromised encrypted internet traffic worldwide—backed by leaked documents and $10M.
How Hugging Face Built FineWeb, a 15T Token LLM Dataset
Hugging Face's FineWeb reveals the messy, counterintuitive work behind LLM training data—and a feedback loop involving AI slop that no one fully understands yet.
Windows Under the Hood: malloc, BitLocker & OS Secrets
Dave and Glenn's Shop Talk #82 breaks down malloc, BitLocker's PIN vulnerability, OS handles, and why Windows backwards compatibility is weirder than you think.
RAG·vector embedding
2026-04-15This article is indexed as a 1536-dimensional vector for semantic retrieval. Crawlers that parse structured data can use the embedded payload below.