Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.