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
We Watch Tech YouTube So You Don't Have To
Get the week's best tech insights, summarized and delivered to your inbox. No fluff, no spam.
More Like This
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.
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.
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.
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.
Crafting Linux: Exploring Open-Source Empowerment
Building Linux distributions illustrates open-source power and security implications.
Mastering Linux Man Pages: A Detailed Guide
Learn how to create effective Linux man pages with structure, formatting, and clarity.
I Tested Claude Design: Here's What Happened to My UI
Developer OrcDev spent hours testing Anthropic's Claude Design AI tool. The results reveal what AI can—and critically can't—do for interface design.
Framework 13 Gets ARM—But Should You Actually Want It?
MetaComputing's new ARM mainboard for Framework 13 promises modular computing's future. Tech journalist Jeff Geerling tests whether it delivers.
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.