LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-02-2004, 08:02 AM   #1
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
LFS with small hard drive


I have decided to install LFS for 2 reasons - the customisation should mean that it runs better, and the computer I am about to install it on is very old, and also I want to to learn more about Linux.

The computer I plan to install it on is:
133MHz Pentium I
16MB RAM
1.5GB hard drive

It currently has Slackware 9.1 installed on, and has 440MB free space.

How should I go about installing LFS on this? Should I create a new partition using all the free space? If I do this, would I have enough disk space for all the source and compiled applications?

Could I possibly install LFS from a Knoppix CD? If not, why not?

Thank you.
 
Old 06-02-2004, 08:38 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you need to have a working linux system installed in order
to compile/build the LFS packages!!!
 
Old 06-02-2004, 10:03 AM   #3
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
assuming that was in reference to te knoppix questions - yes, but why doesnt a live cd count - surely I could still use stuff from knoppix to build gcc etc, then stuff that i just built to build glibc, then gcc etc again, then the other stuff? why, specifically, wouldnt it work was my question i.e. what would be the first stumbling block you encountered that you could get past easily?
 
Old 06-02-2004, 03:41 PM   #4
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
well, i don't know if knoppix has the development tools required in its cd (including gcc, and important libraries)

also, the largest package in LFS requires about 650 megs minimum to build; about 1 - 2 gigs is recommended if you actually intend to use lfs; plus, it doesn't include gui and other important tools like dhcpcd, ssh, or even a web browser, so keep all that in mind (this info can be found in the Beyond LFS project)

3 gigs is recommended for gui and more; (but be warned, if you are not careful with deleting unnecessary source files, you will run out of disk space Fast)

*edit: btw, on that slow machine, be prepared to to have single packages take Days to compile, such as glibc and gcc

Last edited by TheOneAndOnlySM; 06-02-2004 at 03:43 PM.
 
Old 06-02-2004, 04:39 PM   #5
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
i was prepared for the days part.

so youve decided that basically i cant do it?

whats all this i hear about 5mb lfs clients?
 
Old 06-02-2004, 05:58 PM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
those 5 meg clients are mainly used for embedded systems; their functionality depends only on a small kernel and a few tiny programs

if you intend to actually use your LFS system, then no, it is probably not doable; but if you have a will, definitely do not let me stop you (that would defeat my purposes of posting)....

what you may want to try to do is get a symlink farm going that will allow you to store your sources and tools in your slackware partition, and have those large libraries compile within slackware

there are certain things like gcc 2.95.3 that are not absolutely necessary, so read through the book and see what you need and don't need

another option is to see if you can resize your slackware partition and make it smaller; very easy to do in windows but a bit more risky in linux... grab the latest parted lib from slackware's site or ftp mirrors and then install qtparted; you can delete your slackware partition then recreate it with a new size (make sure you know how much disk space you use)

i've done this with moderate success.... but i lost my home files in doing so; this is extremely risky the way i've stated here, but i have never found a way to do a normal resize of an ext2/ext3 partition....
 
Old 06-03-2004, 03:25 AM   #7
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
well, currently its all slackware partition and nothing else, and that only has 440 mb free space.

would i be able to reinstall slackware with _only_ development tools (no gui, no apps), then put the old hard drive in another computer, download the sources i need, then use the minimalistic slackware install to build these normally (but with fewer apps that normal lfs)?
 
Old 06-03-2004, 06:11 AM   #8
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
@drigz

If it's a standard desktop PC, is there no chance of finding either a very cheap new HDD (say about 20GB) or being donated one. Last time I needed a linux machine, somebody just gave me a few HDDs between 2 and 10 GB.

To be honest even a minimalist slackware installation is fairly large, I haven't kept my tight at all (theres a few untar tarballs lying around etc + a few extra than basic slack install) but I'm at 67% of my 2GB drive. I doubt you could bring down slackware to that small.

Couldn't you just install DSL (damn small linux) - it's about 50Mb and I think has everything you need(?)

Steve
 
Old 06-03-2004, 10:23 AM   #9
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
well currently my slackware install seems ok for use, and i dont really want to have to burn another cd. it was mainly interest in how linux works that prompted a desire to use lfs.

in response to the hard drive question, i dont want to spend money on it. its a computer that id just get rid of if i cudnt use it for this, and really if i start replacing bits, its gonna go:
new hard drive, new ram
new cpu which needs new motherboard
new graphics card and sound card cos it pointless using the ones i have with a computer ive upgraded this much
new case and monitor cos i damned if im replacing all that and using an old compaq beige case.

hey, i cud build a computer with the stuff i have - lets try and install linux on it, see if i can use it for some basic tasks!

you see the problem?
 
Old 06-03-2004, 08:40 PM   #10
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
1.5 gig hard drive, correct?

my LFS is currently 1.25 gigs, following all the LFS procedures (not installing grub or any bootloader), installing dhcpcd, openssl, and lynx.... it does not even have the 150 megs of sources or 200 megs of tools

you may just want to find a really old distro to use for that computer, or find an older version of LFS (which will use older tools that normally take up a lot less hard disk space)

old doesn't mean bad at all, especially for that hardware

LFS 1.3 or an earlier 2.x release doesn't look too bad (though the packages still seem a bit large...)
 
Old 06-04-2004, 04:02 AM   #11
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
i think im going to stick with slackware until i have a better computer to try lfs on.
 
Old 06-04-2004, 08:47 PM   #12
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Rep: Reputation: 30
im building LFS 5.1 on Knoppix right now and so far it's working... im currently on chapter 6 installing glibc
 
Old 06-05-2004, 05:13 AM   #13
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
tell me if it works in the end - i might just give it a try.
 
Old 06-05-2004, 01:31 PM   #14
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Rep: Reputation: 30
yea i got it to work... check my other thread
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can LFS be copied from 1 hard drive to another after the build? rblythe Linux From Scratch 3 06-18-2005 11:40 AM
small hard drive(s) - partition sizes dimrealm Mandriva 2 05-21-2005 11:28 AM
Small Distro install to Hard Drive Trizon Linux - Distributions 4 04-27-2005 06:50 PM
hard drive looking small on mandrake 10 goodall16 Linux - Newbie 1 04-29-2004 05:50 AM
linux on a very small hard drive tijuana_brass Linux - Newbie 7 01-28-2002 05:34 AM

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

All times are GMT -5. The time now is 10:45 PM.

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