-   Linux From Scratch (
-   -   how do I copy lfs sources from LiveCD to hard disk (

olcal 01-03-2008 02:30 PM

how do I copy lfs sources from LiveCD to hard disk

I am new to Linux though I have installed and used Fedora and CentOS intermittently.

I have just started to read Linux From Scratch version 6.3 together with "How to build a LFS 6.1 system using the LFS LiveCD as your host" by Joseph Dupre.

Have downloaded and burnt a LFS LiveCD v6.3-r2145 iso
Have dedicated a 10GB HDD completely for LFS.
Have created 2 partitions according to "Linux From Scratch version
6.3" and formatted and mounted them.

What I want to do is copy the sources from the LiveCD to the LFS partition on the hard disk. When I give the command

cp -R /sources $LFS

nothing happens. What am I doing wrong ?


Uncle_Theodore 01-03-2008 02:38 PM

What's the value of the LFS variable? Check with
echo $LFS

lukeiamyourfather 01-03-2008 06:12 PM

Number 1: like he said, check the $LFS variable

echo $LFS

if the output is not


then type:

export LFS=/mnt/lfs

Number 2: I think the sources folder on the disk is "/lfs-sources" not "/sources"

and, just to copy the contents of the folder, not the folder itself, (it might annoy you later), type these commands EXACTLY:

mkdir $LFS/sources

chmod -v a+wt $LFS/sources

cp -r /lfs-sources/* $LFS/sources

that should do it.

lukeiamyourfather 01-03-2008 06:14 PM

i also forgot,

make sure the user "lfs" owns the directory and the files within!

olcal 01-04-2008 01:38 AM


When I typed

echo $LFS

the output was


I will also try the two steps suggested by lukeiamyourfather

olcal 01-07-2008 02:05 AM


The steps suggested by lukeiamyourfather worked

I did the following

mkdir $LFS/sources

chmod -v a+wt $LFS/sources

cp -r /lfs-sources/* $LFS/sources


baoxam 01-27-2008 02:08 PM

Hi i'm a newbie
and my host system is liveCD

i did like this

mkdir $LFS/sources

chmod -v a+wt $LFS/sources

cp -r /lfs-sources/* $LFS/sources

it's ok


i added group lfs ; useradd ;chown $LFS/tools ;chown

$LFS/sources and then su - lfs like the same in book LFS 6.3

it's ok

in chapter 5 ,5.3 build-2.17 pass 1
i make command :

cd $LFS/sources

tar -vxjf biuntils-2.17.tar.bz2

but i had errors :
binutils-2.17/etc/configbuild.ein :cannot open : file exitsts
and many file like this
cannot open :file exits
error exit delayed from previous errors

i dont know why that
help me plz thx ...

imhennessy 02-21-2008 12:45 PM

Is it really necessary to copy the sources? I have been unpacking the tarballs from the cd into the directory I'm compiling in. This saves me a little space on my hard disk, and means that there is one fewer step between the sources I downloaded( on the live cd) and the source I compile from.

All times are GMT -5. The time now is 11:13 PM.