this post was submitted on 04 Sep 2025
21 points (86.2% liked)

Linux

13123 readers
192 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

I have a quick question about Linux from Scratch - Can one go through the process on a machine with no OS and a prepared thumb drive? I have a spare laptop right here... (or even an image on Ventoy)

you are viewing a single comment's thread
view the rest of the comments
[–] wetbeardhairs@lemmy.dbzer0.com 15 points 1 week ago (1 children)

That's an interesting problem in computer science. Generally it's called "bootstrapping" when you build a process that is used to build another process. For instance, compilers like gcc are bootstrapped from a purpose built compiler compiler but then gcc compiles its own source to result in the final product. But that can be done on one machine. Bootstrapping a machine from bare metal pretty much requires another machine.

[–] racketlauncher831@lemmy.ml 5 points 1 week ago (1 children)

This. It sounds like OP is trying to bootstrap the low-level system. On startup the CPU is instructed to read from the first 512 bytes from the designated hard drive if it's MBR and run it as native code. If OP has any mean (like a butterfly) to write his own invention of boot code and Grub equivalent then it totally goes off the ground there.

[–] HelloRoot@lemy.lol 4 points 1 week ago

a butterfly

In case anybody has no idea what that means:

https://xkcd.com/378/