LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-14-2009, 08:27 AM   #1
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Rep: Reputation: 16
Help again with jhalfs please


I'm trying to use jhalfs for the first time. I'm using the LFS Live CD as my host system.

After configuring the menu I type 'make' and the first few lines seem OK. then I get the lines:

cp: writing './automake-1.10.tar.bz2': No space left on device

<jhalfs 2.3.1> exit
make: *** [all] Error 1

Now my partition is 90Gb and the swap partition is over 4Gb - how much more space does it need?

Obviously there is something fundamental I am not understanding yet so if any kind soul could point a way forward I'd be most grateful.
 
Old 03-14-2009, 12:04 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
while in the Live CD environment but you will need a partition to install them onto
so cd to the 90 GB partition, and install from there
 
Old 03-15-2009, 11:43 AM   #3
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
Many thanks repo for your reply. I'm still not quite sure but this is what I'm doing:

Make a directory /mnt/build_dir
mount my file system partition on it
make a directory /mnt/sources
copy all the LFS source tarballs into it from the live CD
cd into /home/jhalfs/lhalfs-2.3.1
then install jhalfs with make config

In the config menu I tell it where to find both these directories.

So am I doing something wrong - or is there something I haven't yet done?

Are you saying that jhalfs is trying to write to /home/jhalfs/jhalfs-2.3.1 which is on the CD - so I need to copy those directories onto the hard drive partition as well, then cd into it there?

Any help would be much appreciated.
 
Old 03-15-2009, 11:42 PM   #4
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
I think I see your problem, and it explains why you initially had the earlier issue with it trying to download the book despite it being available on the CD, which I had actually been wondering about. The default jhalfs configuration that comes with the LiveCD is already set to use the "Working Copy" of the book in /usr/share/LFS-BOOK-6.3-XML and to use the packages available in /lfs-sources, but you seem to be following the instructions in the Automated LFS using jhalfs-2.3.1 thread. Those instructions are, for the most part, unnecessary when doing a standard LFS build from the LiveCD and seem to be more geared towards using jhalfs with a pre-existing distro as host.

If I were you, I would reformat the partition you want to use, just to make sure you're starting fresh; then, after booting from the LiveCD and activating the swap partition, making /mnt/build_dir and mounting your partition there, issue the following commands:

Code:
chown -v jhalfs:jhalfs /mnt/build_dir
su - jhalfs
cd jhalfs-2.3.1
make
You shouldn't need to change anything in the menu, with the possible exception of your timezone and default page size: under "Build Settings" change the TimeZone field from "GMT" to "$TZ" (to match the timezone you chose on booting the LiveCD) and change "Groff page size" to A4 (since you're in the UK). After that, just Exit, save the configuration, and away it goes. It will copy the packages & patches from /lfs-sources into /mnt/build_dir/sources, so there's no need for you to make a sources directory yourself or do any manual copying. (That actually may have been your main problem, by the way, with running out of space: the directory you made, "/mnt/sources", wasn't on the partition but rather in RAM; "/mnt/build_dir/sources" *would* be on the partition, and as I mentioned jhalfs takes care of creating that.)

Last edited by Mystican; 03-15-2009 at 11:49 PM.
 
Old 03-16-2009, 04:24 AM   #5
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
Many thanks once again Mystican for your excellent help. Yes I think I understand what is going wrong now so I'll go off and give it a go. I'll report back here in case it helps anybody else who has the same question.

I'm most grateful again for your time.
 
Old 03-17-2009, 05:03 AM   #6
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Original Poster
Rep: Reputation: 16
Just to say that I have now succeeded with jhalfs using the advice given in this thread. On my setup it took about 3.5 hours which is a great improvement on the manual method.

I'd like to thank once again Mystican and repo for their valuable help and advice, without which I probably would have given up by now! I hope this thread helps and encourages others who use the LFS Live CD.
 
  


Reply



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
Automated LFS using jhalfs-2.3.1 guyFromThere Linux From Scratch 3 11-10-2010 06:20 AM
Using jhalfs - book problem bines Linux From Scratch 4 03-14-2009 08:18 AM
Compile error with jhalfs 2.3.1 on 032-linux-headers fahadsadah Linux From Scratch 3 06-12-2008 01:06 PM
LFS & jhalfs problem guenther_r Linux From Scratch 0 08-17-2007 10:22 AM
need some help with jhalfs-1.0 arcile Linux - Newbie 2 08-30-2006 09:06 PM

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

All times are GMT -5. The time now is 04:30 AM.

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