LinuxQuestions.org
Visit Jeremy's Blog.
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 07-17-2003, 04:29 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
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...
 
Old 07-17-2003, 04:53 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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.
 
Old 07-17-2003, 05:25 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
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...
 
Old 07-17-2003, 06:32 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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 -)
 
  


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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
Mirroring bkeating Linux - Software 1 06-22-2003 06:37 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM

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

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