LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-14-2001, 10:23 AM   #16
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57

I guess simply enough, the easiest way, if there are only two partitions on the machine (not including swap), would be after the LFS partition is working solid just rm -rf the original distro, then copy all the source from your LFS's /usr/src/
right onto that partition, edit /etc/fstab to add the old mother hen partition as /usr/src/, reboot and enjoy.

You might think this would make for too much space under /usr/src... think about the size of X, KDE, or Gnome, all from source... er, yeah. Plenty of playroom.

Cheers,

Finegan
 
Old 12-14-2001, 01:29 PM   #17
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Ahh i,ve had an idea

Suppose I had another hd which I have in another machine and use for windows, I could take it out put it into my Linux box temporarily load Mandrake on that and use the blank one to install $LFS and use all the disk space, would that work?? I suppose it would wouldnt it.

Hehe cracked it

RecoilUK
 
Old 12-15-2001, 08:19 AM   #18
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Ok i,m stuck..lol I havnt even started yet.

My problem is this. The 3.1 book states that you shouldnt use a single partition but then goes on and gives you instructions as though you are using a single aprtition, but i,m not and i,m not sure how to mount my filesystem.

I,m going to use the following

/
SWAP
/usr
/var
/home

Do I just tell mandrake that the $LFS partition is / and carry on as normal? and when i create the filesystem will everything configure automatically? or do I have to configure each partition manually, putting the correct file system on the correct partition?

I hope I explained that properly.

btw i.m using two hd,s now for this install, so I can utilise the $LFS hd to its maximum.

Thx guys

RecoilUK
 
Old 12-15-2001, 02:20 PM   #19
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Nah, your just going to have to mount everything a number of times. For instance, say / is /dev/hdc1 and /usr is /dev/hdc2. This is going to be a bit of a pain in the arse

mount /dev/hdc1 /mnt/lfs

make the basic what, 8, 10 directories...etc, usr, blah blah, they're in the book.

mount /dev/hdc2 /mnt/lfs/usr

again for /var and /home

Oh, and the one not-so-intuitive leap that the book requires you to make on your own... you'll have to format your swap partition on your own with mkswap /dev/hdcx (I waited until the end because I just wanted to use the mkswap I had built from source :P, er, and I forgot.)

After you have the right partitions mounted on the right points, you may want to NOT turn the machine off for however many days its going to take to finish. It would be an annoyance to have to do all of that all over again. You'll have to make sure to get your /etc/fstab right at the very end though...

Its really just a minor variation on the whole LFS schema.
 
Old 12-15-2001, 02:29 PM   #20
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Hmmmm ok

But my Maandrake distro wont allow me to create another / , /usr , /var , /home partiton, and I dont expect any other to either, so do I create the following instead?

/LFS - instead of /
/LFS/usr - etc
/LFS/var - etc
/LFS/home - etc

Is my thinking right on this matter?

Thx again

RecoilUK
 
Old 12-15-2001, 04:35 PM   #21
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Hi again

Please ignore the last post as I have now created and mounted all my partitions and everything is fine, but I have another problem which all of you should have come across if i,m right.

I,m at present creating my dilesystem but I dont think the code from the book is right....





cd $LFS &&
mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin tmp var opt &&
for dirname in $LFS/usr $LFS/usr/local
do
mkdir $dirname
cd $dirname
mkdir bin etc include lib sbin share src var
ln -s share/man man
ln -s share/doc doc
ln -s share/info info
cd $dirname/share
mkdir dict doc info locale man nls misc terminfo zoneinfo
cd $dirname/share/man
mkdir man{1,2,3,4,5,6,7,8}
done
cd $LFS/var &&
mkdir -p lock log mail run spool tmp opt cache lib/misc local &&
cd $LFS/opt &&
mkdir bin doc include info lib man &&
cd $LFS/usr &&
ln -s ../var/tmp tmp

my problem is with the forth line

for dirname in $LFS/usr $LFS/usr/local

$LFS/usr/local doesnt exist and never will exist with the code above, what did everybody else do, ignore it or create it manually?

Thx guys

RecoilUK
 
Old 12-15-2001, 04:42 PM   #22
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Ooooooooooppppppppppssssssssss

My mistake lmao

L8rs

RecoilUK
 
Old 12-15-2001, 09:16 PM   #23
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Hi again

Now I dont think this one,s my fault

I,m trying to install my first program like the book says...bash-2.05a ...but when i run the commands i get this...

./configure --enable-static-link --prefix=$LFS/usr
\ --bindir=$LFS/bin --with-curses

configure: error: invalid variable name: --bindir

any idea whats happening here???

Thx guys

RecoilUK
 
Old 12-15-2001, 09:20 PM   #24
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
OK solved it i wasnt supposed to put a in between \ --bindir like that, dam this Linux is a tricky son of a bitch lol.

But now lol

[root@localhost bash-2.05a]# ./configure --enable-static-link --prefix=$LFS/usr
\--bindir=$LFS/bin --with-curses
checking build system type... i586-pc-linux-gnuoldld
checking host system type... i586-pc-linux-gnuoldld

Beginning configuration for bash-2.05a for i586-pc-linux-gnuoldld

checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable cc found in $PATH

what am I missing, bet its easy, coz they have been up to now

Thx guys

RecoilUK
 
Old 12-15-2001, 09:33 PM   #25
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Mandy, being a great big pain in the arse, seems not to have installed for you: a compiler!

Grab the RPM for it off of one... der what am I talking about, I have a mandy box, use one of the auto-installers and drop gcc on there. Unfortunately I think Mandy ran with the compiler kgcc, which is just the KDE groups knockoff version. I compiled kernels with it before so you should have no foreseeable problems. I hope.

Hopefully you won't be missing anything else. Glibc is almost definately on there... I hope. If you find that you're constantly getting missing dependencies and want to throw your arms up, you might be better off either a) re-installing mandrake and saying yes to anything that says 'developer' (because that's what you are now :P), or find a copy of Slack 8.0, say no to X, GTK, EMACS, and KDE, and install evrything else. That second part is really just personal preference.

Luck,

Finegan
 
Old 12-15-2001, 09:44 PM   #26
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Thx m8,

hehe, i,m a developer.

I like the sound of that lmao

L8rs

RecoilUK
 
Old 12-16-2001, 12:56 PM   #27
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Hi again

I,m rdy to install the gcc package but i,m not sure what to do with the patch file. After I have unzipped them both do I place the patch file the gcc folder?

Thx again

RecoilUK
 
Old 12-16-2001, 03:46 PM   #28
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Nope, no meed to move it. assuming all of your files are in one directory eg. /lfs/usr/src (or something) you just go with the destructions. On page 32 "Installing GCC-2.95.3 the very first line patches the files. You'll notice how it says patch -Np1 -i ../gcc-2.95.3-2.patch &&
The ../ is what tells patch to look in the previous directory, so's all you have to do is leave it there and you'll be good.
 
Old 12-16-2001, 03:54 PM   #29
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Thx for that TAZ

I,m now just about to start installing gcc in chapter 6 and everything is going good so far woohoo

Anyway, a quick question? The packages that I have allready installed, what should I be doing with the source files, should I delete them now or use them to reinstall again, except for linux files which I should leave alone...... is this correct, I just need someone to confirm it or not.

Thx guys

btw I made files from 0-9 a-z to put the source files in, wish I hadnt now lol

RecoilUK
 
Old 12-16-2001, 03:57 PM   #30
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
And its now official

I HAVE NO NAME

lol

RecoilUK
 
  


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
Linux From Scratch Help! TechnoPhile Linux From Scratch 7 05-20-2005 12:25 AM
Linux From Scratch fuelinjection Linux - General 8 12-04-2003 01:48 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM
Linux From Scratch astablemaverick Linux From Scratch 1 08-03-2002 02:59 AM
Need Help with Linux From Scratch!! jbhoo Linux From Scratch 8 04-23-2002 06:43 PM


All times are GMT -5. The time now is 07:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration