r/linuxfromscratch • u/StockSalamander3512 • Jun 12 '26
LFS Questions
I’ve been doing some light research on installing Linux from scratch. I’m thinking about using a live USB .iso, and building it on the hard drive from there.
- What are the pros and cons of this approach?
- What’s the best base distro to work from as the base? I’m very familiar with Debian based distros, so I was thinking about just using plain ole Debian.
Any advice? And roughly how much time should I plan on this taking? I’m not in a hurry, and want to do it right, just want a general idea of the time commitment. My experience level with Linux is probably somewhere between intermediate-> proficient. Thanks in advance!
5
u/paradigmx Jun 12 '26
My only advice is don't attempt to use it as your primary distro. It's a learning tool, and a wonderful one at that, but it's not intended for daily use. I only mention that because people do try to install it with the intention of using it as a daily driver.
3
u/ComprehensiveLet3451 Jun 12 '26
I use a live ubuntu usb everyday now while my laptop disk have the unfinished lfs. I havent finished desktop setup on lsf yet. The only app i need is teams for linux on work and firefox. I have a nuc i can ssh iinto. I enjoy this setup but u can rrally use it for anything else than accessing lsf disk during setup and lightweight tasks
3
u/Rockytriton Mod Jun 12 '26
You mean running like an Ubuntu live USB and from there doing all the steps to build LFS? The only issues I can think you may run into are some software not installed, such as gcc and some changes you need to do to prepare the host system which may not be possible with a live USB. Not sure that you can install software and update the filesystem to get the host ready.
3
u/Razzleswoop Jun 12 '26
I used Gentoo Live , has all the tools you'll need. Fairly easy process if you stick to the guide. Enjoy the process.
1
u/testfire10 Jun 12 '26
Debian is a great base for LFS.
I’d say it should take maybe 8 hrs. Follow the book, double check everything, read the commands and the outputs, and google if you get stuck.
Have fun!
1
u/transgentoo Jun 12 '26
Look at a tool called debootstrap instead. Point it at a mountpoint and you've got a persistent, self-contained build environment that it's not a huge deal if you mess up by doing something like accidentally deleting your libc or overwriting your gcc. It gives you a fie system, core utils, bash, and APT, which is basically what a LiveUSB gives, but with the ability to persist changes. The live USB option will be a PITA because you'll have to set your environment back up every time you reboot.
1
u/tseeling Jun 12 '26
Before you begin read the discussion about partitioning. I recommend installing some distro with a gcc compiler as new as possible, e.g. latest Fedora. Install minimal Fedora, e.g. on a separate partition of approx. 16 GB. Create separate partitions for /boot, /home, /boot/efi, and a second LFS partition. I always build the LFS releases twice, one with the "older" LFS to the other LFS partition, then use that fresh build with the latest gcc to recompile everything again.
The initial Fedora partition can either be reused for that second LFS or as swap partition.