LinuxQuestions.org
Help answer threads with 0 replies.
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 01-03-2008, 01:30 PM   #1
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Rep: Reputation: 0
how do I copy lfs sources from LiveCD to hard disk


Hi,

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 ?

Regards
olcal
 
Old 01-03-2008, 01:38 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
What's the value of the LFS variable? Check with
echo $LFS
 
Old 01-03-2008, 05:12 PM   #3
lukeiamyourfather
Member
 
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30

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

echo $LFS

if the output is not

/mnt/lfs

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.
 
Old 01-03-2008, 05:14 PM   #4
lukeiamyourfather
Member
 
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30

Rep: Reputation: 15
i also forgot,

make sure the user "lfs" owns the directory and the files within!
 
Old 01-04-2008, 12:38 AM   #5
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Original Poster
Rep: Reputation: 0
Hi

When I typed

echo $LFS

the output was

/mnt/lfs


I will also try the two steps suggested by lukeiamyourfather
 
Old 01-07-2008, 01:05 AM   #6
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Original Poster
Rep: Reputation: 0
Hi

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


Thanks
 
Old 01-27-2008, 01:08 PM   #7
baoxam
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
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

after

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 ...

Last edited by baoxam; 01-27-2008 at 01:13 PM.
 
Old 02-21-2008, 11:45 AM   #8
imhennessy
LQ Newbie
 
Registered: Jan 2007
Posts: 16

Rep: Reputation: 0
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.
ivan
 
  


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
How can I install lfs livecd on hard disk? bhxs1809 Linux From Scratch 3 02-25-2009 04:13 AM
LFS Live CD: want to copy it to the hard drive... hrp2171 Linux From Scratch 1 10-22-2007 10:52 AM
LFS hard copy gloomz Linux - General 1 02-12-2007 08:58 PM
how to install manual on LFS 6.1 livecd to hard drive asskickingbob Linux From Scratch 4 12-07-2005 08:04 PM
Hard disk backup/copy.... Irf Linux - General 26 05-27-2004 05:26 PM

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

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