LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-23-2006, 07:46 PM   #1
spadeandarcher
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Rep: Reputation: 0
Copying live cd sources to HD - reprise


I have searched this forum for a simple instruction, hoping not to have to start a new thread -- as this question has been posed several times before, but simple as it is, it has not been(in my opinion) clearly enough answered. I have a measure of confidence in my ability to make my way around the linux file system, and to copy files from a CD to the hard disk (and vice versa). But how do I copy the live CD's /lfs/sources directory to the /LFS/$sources directory I have created on my hard drive? (I would of course use/*.*) I cannot find a way to get sufficiently into the live CD from my command line terminal on my Linux PC to achieve this. I would prefer not to have to download all the source files from the internet if I can merely(!) copy them from the CD. I hope that some more-knowledgeable (and patient) person out there will assist me.
 
Old 10-25-2006, 10:22 PM   #2
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Three easy steps :
1. cd /
2. cd lfs-sources
3. cp * /LFS/$sources
 
Old 10-26-2006, 10:59 AM   #3
spadeandarcher
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
With my live, bootable LINUX FROM SCRATH cd in the drawer and recognized as present by my linux desktop, the command CD / doesn't recognize it and give me access to the files on it (namely lfs-sources). Any further thoughts? I am most appreciative of your response and attention to my query.
 
Old 10-27-2006, 09:52 AM   #4
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
I do not exactly understand the problem [never worked with live CDs], but I'd suggest booting from something else [like a trivial diskette], mounting the CD and "cd" into it.
 
Old 10-27-2006, 02:59 PM   #5
spadeandarcher
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I am guessing that my problem stems from the fact that my live Linux From Scratch CD is made up of .iso files, which I assume from this experience can't readily be read through a standard operating system, i.e., linux or widnows, without some sort of conversion. This effort has now become more trouble than any benefits to be gained, and I will just download every source file directly from the internet. Many thanks to all.
 
Old 10-28-2006, 02:18 AM   #6
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Nope. You have to boot from the LFS CD, then only you can copy over the files. That is, as far as i know.
 
Old 10-28-2006, 07:47 AM   #7
spadeandarcher
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
From my experience so far, you are quite right. However, I have not been able to copy the files to my hard drive after finding them through booting from the live cd. That was the reason for my initial query and this thread. They copy onto the cd itself.
 
Old 10-28-2006, 08:40 AM   #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 cannot copy anything to a cd. It's a read-only medium. Yeah, I know, you can burn an image, but that's something else completely and not relevant in this case.

Basic first steps up to and including 4.2 (need to be tailored to for your setup: replace hdaX with appropriate partition):

- boot from liveCD

- create the lfs partition
use (c)fdisk to create a partition (could be you already have one ready to use).

- create filesystem
mke2fs -jv /dev/hdaX

- create/activate swap
mkswap /dev/[yyy]
swapon -a

- mount partition:
export LFS=/mnt/lfs
mkdir -p $LFS
mount /dev/hdaX $LFS

- copy packages/patches
mkdir $LFS/sources
cp /lfs-sources/* $LFS/sources
chmod a+wt $LFS/sources

- create tools directory/link
mkdir $LFS/tools
ln -s $LFS/tools /

Read the documentation for details.
 
Old 10-28-2006, 08:42 AM   #9
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Well, his way works, but still, you have to boot from the CD.
 
Old 10-28-2006, 08:54 AM   #10
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,

What works? Copying files from hd to cd? I don't think so
You could mount the iso and copy files to that, but that's an image on HD not the cd itself and not relevant for installing LFS.

Last edited by druuna; 10-28-2006 at 08:55 AM.
 
Old 10-28-2006, 10:39 AM   #11
spadeandarcher
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for your guidance in this regard. I may in the end decide to use the live CD LFS installation method throughout, for a number of reasons. Principally, it might be more reliable. Anyway, though, I have not set up a separate HD partition but have instead chosen to follow the suggested option of just setting up a separate LINUX_FROM_SCRATCH directory on my existing linux partition. I will try again to boot from the CD and see if I can access from that my HD LFS partition to copy the CD's lfs/sources file to it. Otherwise, I will just try to download each source file directly from the internet. Thanks much again for your help.
 
Old 10-28-2006, 10:54 AM   #12
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,

Quote:
I have not set up a separate HD partition but have instead chosen to follow the suggested option of just setting up a separate LINUX_FROM_SCRATCH directory on my existing linux partition
That is a possibility, but the book assumes a partition. You also need to follow the link mentioned in the documentation next to the book (and match them up). I haven't tried this approach, so I cannot give you any pointers.
 
Old 10-28-2006, 11:04 AM   #13
spadeandarcher
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, I am following the "documentation" you refer to, which seems to provide a manageable dovetailing with the instructions in the book. But it still doesn't provide a satisfactory linkage between the cd and hard drive. I think I'm trying to do something very difficult (if not almost impossible) for the sake of saving me the effort of downloading source files from the internet. The subject is now of only academic interest to me --and hopefully to you as well. Are we now any the wiser? Thanks again for the time you've devoted to helping me on this.
 
  


Reply


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
Copying packages from Live CD? Sir. BOBSONATOR Linux From Scratch 2 08-11-2006 04:07 PM
Running LIVE CD from hard disk, i.e. copying the iso on HD & then booting the same nitinatindore Linux - Newbie 13 03-12-2006 04:35 AM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
Software Sources Manager, how to add installation cd sources after deletion Lakota Mandriva 1 10-23-2003 12:39 AM

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

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