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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-17-2003, 04:29 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571
Rep:
|
mirroring LFS CD
I guess this isn't specifically an LFS question, but I am about to start my LFS project (finally) and I'll be using a P-II 400 system with slackware 9.0 and I simply want to 'mirror', or, well, copy all of the files from, the CD onto the slackware filesystem to speed up the process a little.
Is that as simple as doing a:
cd /mnt/cdrom
cp -r * /bigpartitiononharddrive
Or something similar?
I suppose I could just copy the packages directory, but I don't want to miss anything and I want to eliminate the cdrom drive from the process.
Hmmm, but, it looks like maybe just copying the packages directory is all I'll need for this, eh?
All advice welcome.
thanks...
|
|
|
07-17-2003, 04:53 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
If you have the iso images, you can mount them.
# Generate an ISO from a CD
dd if=/dev/cdrom of=foo.iso
# Mount CD iso images
mount /path/to/foo.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0
Last edited by fancypiper; 07-17-2003 at 05:02 PM.
|
|
|
07-17-2003, 05:25 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571
Original Poster
Rep:
|
I don't have the ISO. I purchased the book and CD from linuxfromscratch.org.
Maybe I'm just giving this too much pre-thought.
I'm thinking now that the CD is just to facilitate getting the packages for us 56K captives. So, now all I think I need to do is copy the packages directory from the CD to my slack system. I assume that will eliminate the need for the packages to be compiled from the CD and speed up the process a little on that slower machine. It's no biggie I reckon. Maybe I'll discover all this on my own as I go through the book, I just wanna be prepared from the start.
Also, when I setup slackware I created an /LFS partition, /dev/hda11, (as opposed to /mnt/lfs as I now see that the book uses) and it's 10Gigs. I don't see why I can't just copy that packages directory there, /LFS/packages, and work from there rather than from /mnt/cdrom. Or, maybe these source files need to separate from the LFS partition for some reason.
Oh, and for anybody with similar experience, what kind of SBU factors am I going to be looking at on a P-II 400 machine? Am I in for some 2 day compiles?
thanks...
|
|
|
07-17-2003, 06:32 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
I showed you how to make an ISO of the CD, BTW, which I still think would be the fastest way to get it on the hard disk. If you have a working Linux distro, try it, you might like it.
Another way is to tar it over.
Mount the cd then:
Code:
[root@fancypiper root]# cd /mnt/cdrom
[root@fancypiper source]# tar cf - . | (cd /mnt/destination && tar xBfp -)
|
|
|
All times are GMT -5. The time now is 08:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|