Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#169 closed defect (fixed)

investigate a better minimal LFS partition limit

Reported by: gerard@… Owned by: gerard@…
Priority: highest Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

750 MB isn't working for some people anymore. See what's a better limit, add 100 or 200 MB to it and put that in the book

Change History (15)

comment:1 by gerard@…, 23 years ago

Resolution: later
Status: newclosed

comment:2 by gerard@…, 23 years ago

Resolution: later
Status: closedreopened

comment:3 by gerard@…, 23 years ago

after building glibc (not removing glibc-* from $LFS/usr/src):

Filesystem Size Used Avail Use% Mounted on /dev/hdb5 125M 66M 59M 53% /mnt/lfs /dev/hdb6 1.9G 767M 1.1G 40% /mnt/lfs/usr

comment:4 by gerard@…, 23 years ago

Priority: normalhighest

comment:5 by markh@…, 23 years ago

how much should we say? I've done it on 750Mb before but I had to remove the kernel source tree whilst compiling glibc. I say we say (!?) 850Mb. That seems to be about right for Gerard's comment above and what I see in my experience.

comment:6 by gerard@…, 23 years ago

To get some acurate stats, do it this way:

build and entire system by-the-book (put it on a 2 GB or so partition so you're sure you got enough room. 1 GB will do too most likely). Don't remove glibc-build and glibc-2.2.4 after you installed glibc in chapter 6. Also, don't remove gcc-build and gcc-2.95.3 after you installed gcc in chapter 6.

Then look at the disk usage, round it of to the nearest hundred MB mark (so 775

MB becomes 800 MB. 715 MB becomes 700 MB) and put that. Then write down:

"We recommend a minimum partition size of xyz MB so you won't ever risk running out of space while building your LFS system. If you plan to use the LFS system as your main workstation/server you may want to allocate more room as you will need to add more software after you finish this book".

That should cover it I think?

comment:7 by gimli@…, 23 years ago

There are many people who don't know that they should delete the sources after installing them to stay below the minimum LFS partition limit. This is mentioned in the book, but obviously not in a very strategic place. Let's move this paragraph closer to the minimum partition limit paragraph.

comment:8 by gerard@…, 23 years ago

Let's not move it, but we can remind people of it again. That info still belongs in chapter 2 and moving things around could be more confusing for people who are in problems are actually go back to read the "important information" to see if they missed anything that could attribute to their problems.

Though, we can restructure chapter 2 a little bit and perhaps split the "how to install software" up in smaller chunks, like a page "Delete Your Sources"

comment:9 by gimli@…, 23 years ago

/dev/discs/disc0/part5

1011M 852M 168M 84% /mnt/lfs

This is a full chapter 5 (the static files are way bigger than the dynamic ones), plus the kernel source tree, plus all bzip2ed packages in /usr/src/packages plus the glibc sources and object files plus an installed glibc. In other words: this is a typical LFS partition after running "exec /bin/bash --login" in chapter 6, installing glibc. From now on, the disk usage will only reduce because the glibc sources are deleted and static programs are replaced by dynamic ones. I think the minimum partition limit should be 900 MB.

comment:10 by gerard@…, 23 years ago

900 MB sounds good.

Or we may as well just make it 1 GB which will leave ample room for extra packages after you finish the lfs book (that's the whole idea anyways. You don't wnat to build LFS then find out you have no room for anything else - we would wnat to explain this in chapter too).

I'd say: minimum 900 MB, but recommended 1 GB to 2 GB

comment:11 by gimli@…, 23 years ago

/dev/discs/disc0/part5

1011M 434M 577M 43% /mnt/lfs

And this is the same typical LFS build. I've done everything by the book, including the bootscript stuff and all optional packages. I removed the /usr/src/packages directory, but I didn't strip any debug symbols. As you can see, the disk usage is only 435 MB which would leave over 400 MB for auxiliary programs after LFS with a 900 MB partition. I think 900 MB is enough, but the more the better.

comment:12 by markh@…, 23 years ago

With a full chapter 5 build and after compiling glibc (not removing the compile tree), I was using 927M (without any .tar.bz2 files present). This is the peak as far as I know so I agree that 1Gb is about the right recommendation.

comment:13 by gerard@…, 23 years ago

Owner: changed from lfs-book@… to gerard@…
Status: reopenedassigned

comment:14 by gerard@…, 23 years ago

Resolution: fixed
Status: assignedclosed

comment:15 by markh@…, 23 years ago

checked chapter 4. has been updated to 1GB. closing

Note: See TracTickets for help on using tickets.