LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-21-2011, 01:59 AM   #1
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Rep: Reputation: 0
how to copy sources from CD to HDD


Hi,

I want to copy the LFS 6.7 sources tarball from a CD to the /mnt/lfs/sources directory on the HDD. How do I do this since I am running from LFS LiveCD 6.3 ?

I have one IDE HDD as primary master
one IDE DVD writer as primary slave

My HDD partitions are

SDA1 linux swap
SDA2 linux

I am new to linux but have used it before.

Regards
olcal
 
Old 01-21-2011, 02:15 AM   #2
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
Hi,

The LFS 6.3 liveCD holds the packages for LFS 6.3, not LFS 6.7.

After you boot from the LFS liveCD (which is a fully working linux environment) download the packages (one tarball) from here: LFS Packages
Untar it in the $LFS directory (the sources directory is part of the tarball).

You could also download the tarball using another OS and put it on a USB stick, which can be used after you boot from the liveCD.

Hope this helps.
 
Old 01-21-2011, 03:07 AM   #3
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Original Poster
Rep: Reputation: 0
Hi

Thanks for the reply.

I have downloaded the LFS 6.7 source tarball and burnt it to a CD. What I want to do is...

1) Unmount and eject the LFS 6.3 LiveCD
2) Insert and mount the LFS 6.7 tarball CD
3) Copy the LFS 6.7 tarball from the CD to the /mnt/lfs/source directory on HDA 2
4) Unmount and eject LFS 6.7 tarball CD
3) Re-mount the LFS 6.3 LiveCD

Is my procedure correct ?
If yes, what is the procedure and the commands to carry this out ?

The LFS LiveCD I'm using is lfslivecd-x86-6.3-r2160-min which has no sources.


Regards
Olavo

Last edited by olcal; 01-21-2011 at 03:27 AM.
 
Old 01-21-2011, 11:33 AM   #4
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
Hi,

Why so complicated? Can't you put the tarball on an usb stick, it is less the 300 Mb....

I'm not even sure if you can unmount the livecd you boot from (never tried that myself, but I doubt it).

I would suggest:

- Boot from the liveCD,
- Do chapter 2 (LFS 6.7 Book, I do assume you read the first parts!),
- Instead of chapter 3.2 and 3.3: Mount usb stick, copy files to $LFS/sources (as created in 3.1) and unmount usb stick,
- Continue with chapter 4.

If a package is missing from the tarball you can use the wget command to fetch it.

Hope this helps.
 
Old 01-21-2011, 12:38 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Unmounting and ejecting the CD a live-system runs from is only supported by distributions that copy themselves to RAM and run from there, like Puppy or Slitaz. The LFS cd cannot do that.
 
1 members found this post helpful.
Old 01-21-2011, 12:46 PM   #6
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
@TobiSGD: That's what I assumed, thanks for the confirmation
 
Old 01-24-2011, 03:34 AM   #7
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Original Poster
Rep: Reputation: 0
I was assuming that the LFS LiveCD was running from RAM. I had used Puppy Linux and Damn Small Linux before and therefore wrongly assumed the same applied to LFS LiveCD. Thanks for pointing out my mistake.

I also took your advice an copied the contents via USB flash drive.

Once again thank you.

On a separate note, I've decided to first install & use Slackware. Once I'm familiar with it (commands, shell scripts, compiling etc.) I will come back to LFS. I think I'm still too "raw" to attempt LFS.

Last edited by olcal; 01-24-2011 at 03:39 AM.
 
Old 01-24-2011, 02:06 PM   #8
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
Hi,

You're welcome
 
  


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
if any utility available for copy one HDD to two more HDD simultaneously? mdfakkeer Linux - General 3 02-07-2010 06:07 AM
SVN working copy locked error updating e17 sources. The_Seraphim Linux - Software 0 04-28-2009 03:53 AM
how do I copy lfs sources from LiveCD to hard disk olcal Linux From Scratch 7 02-21-2008 11:45 AM
in DSL on HDD, compile from sources as apt-get is too risky? stabu DamnSmallLinux 1 04-14-2007 01:25 PM
Anyone know of a readily available hdd to hdd copy utility? lumix Linux - Software 1 03-29-2007 11:57 AM

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

All times are GMT -5. The time now is 02:04 AM.

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