LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-19-2023, 11:56 AM   #1
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Rep: Reputation: 0
Question Which LiveCD should i use to install LFS?


I have an old tired laptop from 2008 but working on intel core 2 duo t5550 and there is a flash drive for 4 gb (and 8 gb but I don't use it, despite the fact that it kind of works). What LiveCD do you recommend me to install LFS (even without graphics) to have everything I need to install the system? Maybe this question has already been asked on the forum, but I am not an exception.
 
Old 12-19-2023, 12:24 PM   #2
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Original Poster
Rep: Reputation: 0
I just registered here so I don't know the ins and outs of the forum. I don't think I'll abandon my account.
 
Old 12-19-2023, 12:41 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Welcome to LinuxQuestions.

If the laptop does not have a least 8GB ram and a working internal drive then I don't suggest using it since it will be really really slow. The process requires at least a 10GB partition to build LFS.

You can build it using a liveCD like debian which ISO files are less then 4GB but I would install it to hard drive if possible.

https://www.linuxfromscratch.org/lfs...ble/index.html

Hopefully hazel and others with more experience building LFS will chime in.

Last edited by michaelk; 12-19-2023 at 12:42 PM.
 
Old 12-19-2023, 01:16 PM   #4
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Original Poster
Rep: Reputation: 0
I also forgot tell that in notebook installed the formally 50 gb ssd because first 50 gb with bads. So it may be a little bit faster.
 
Old 12-19-2023, 01:25 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
You can easily install debian with a desktop and have sufficient space for LFS with 50GB. I suggest reading the LFS documentation.
 
Old 12-19-2023, 01:27 PM   #6
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Original Poster
Rep: Reputation: 0
Lightbulb

What i do. I write debian minimal in usb stick with ventoy. then i boot from it and by ssh and lfs book perform installation.

And so, i was closing this thread because the question is solved
 
Old 12-20-2023, 01:21 AM   #7
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Rep: Reputation: 21
Moin,

Booting some more or less crappy linux distro on the target and then login via ssh is also how i usually build LFS on "new" Hardware. To avoid problems during build, i strongly recommend performing the version-check.sh test in "host system requirements" (chpt.2) and really resolve any problems, if there are any, before proceeding.
Also: don't do the final stripping in chapter 8 over ssh, if you booted already from LFS. Doing this will cut the ssh connection and leave a damaged libz file.

cheers,
WK
 
Old 12-20-2023, 01:55 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,576
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Another possibility is to use CLFS on another computer to build a "starter system" which you then tar up and copy over to your laptop. I once did that just out of curiosity. It was a bit laborious but it worked.

If you are building from a live host, I wouldn't recommend Debian. It has a few incompatibilities with LFS which need to be fixed before you start building. Maybe better to use something like Liveslak because Slackware itself is definitely a good LFS host.
 
Old 12-20-2023, 02:36 AM   #9
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Original Poster
Rep: Reputation: 0
Well, you can additionally install missing dependences and continue build LFS. So i think that Debian minimal live cd isn't that bad to build system
 
Old 12-20-2023, 05:03 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,576
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
The main things you need to do are to install gawk (Debian uses mauk by default) and make sure the system shell sh is a symbolic link to bash and not to dash.
 
Old 12-20-2023, 05:07 AM   #11
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Original Poster
Rep: Reputation: 0
I installed gawk. Installed all needed libs.
 
Old 12-20-2023, 09:35 AM   #12
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
You could try this:
https://github.com/KeithDHedger/LFSBootCD

It will build a 10.1 LFS system, there is an iso in the releases ( you will need to join it up, it's in 3 parts ).
The iso contains all the source archives as well.

Or you can build from the git repo.

Good luck and welcome to LFS!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updated (unofficial) LFS LiveCD link -- Builds LFS 7.x and CLFS latest bitshark Linux From Scratch 0 04-28-2015 02:44 PM
[SOLVED] Should I use LiveCD of Fedora to install LFS? & Please help me Forget-Me-Not Linux From Scratch 2 10-27-2012 10:14 AM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
LiveCd? Which f these is a LiveCd? Tom6 SUSE / openSUSE 7 07-14-2009 04:22 AM
What I should do with LFS LiveCD files? golden_warrior Linux From Scratch 7 10-04-2005 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration