LinuxQuestions.org
Visit Jeremy's Blog.
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 05-29-2010, 08:27 AM   #16
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Hello,

I've never tried LFS on a virtual machine so cannot really comment on it, though I think that there might be 'issues' when trying it.

Kind regards,

Eric
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-30-2010, 11:10 AM   #17
BStrauss3
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
LiveCD /home is small

When you use the LiveCD, the writable space is a small ram disk. If you give the LFS build machine a lot of ram, this can seem large, but it's not big enough to download and build all the packages.

The book guides you to download your files to the hard drive of the machine you are building, but doesn't suggest you use it's space for chapter 5 work (when you move to the chroot in chapter 6, that's automatic).

So, create a working directory under /mnt/lfs and do your work there, e.g.

mkdir -v $LFS/work
cd $LFS/work

then

tar xfvz <package>
cd <package>

and follow the instructions in the book.

(and remember, if the package is .tar.bz2, the letters are tar xfvj)

-----Burton
 
Old 05-30-2010, 11:38 AM   #18
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@BStrauss3: The solution you suggest won't work, the OP hasn't reached this point yet. As you correctly stated, the livecd needs some room to work on and it doesn't have that (or not enough). This is why the cat command (see post #14) cannot do its thing.

Too my knowledge, changing the VM settings is the only why to solve this.

BTW: The LFS book does suggest a place to store packages and patches and to work from: $LFS/sources (see 3.1 Introduction).

Hope this clears things up a bit.
 
Old 05-31-2010, 12:14 PM   #19
BStrauss3
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by druuna
BTW: The LFS book does suggest a place to store packages and patches and to work from: $LFS/sources (see 3.1 Introduction).
Quote:
Originally Posted by LFS6.6, Section 3.1
Downloaded packages and patches will need to be stored somewhere that is conveniently available throughout the entire build. A working directory is also required to unpack the sources and build them. $LFS/sources can be used both as the place to store the tarballs and patches and as a working directory. By using this directory, the required elements will be located on the LFS partition and will be available during all stages of the building process.
Many people end up overlooking the highlighted part, and work from ~. If you are using the LiveCD, then ~ is on the ramdisk during section 5 and without remastering the LiveCD, you can't make ~ big enough to get to section 6.
 
  


Reply

Tags
from, how, internet, lfs, linux, network, packages, patches, scratch, wget


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
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 12:00 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 09:13 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM

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

All times are GMT -5. The time now is 02:14 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