LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-31-2008, 08:33 AM   #1
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Rep: Reputation: 15
Is 950 MB pendrive sufficient to build LFS 6.3


Hi all

i want to install LFS in my 1 GB pendrive... whose capacity is around 950MB

its given in official lfs ebook that
Quote:
A minimal system requires a partition of around 1.3 gigabytes (GB). This is enough to store all the source tarballs and compile the packages.
Will i be able to install LFS if i keep on deleting the source and build directories as soon as they are installed...

can any tell me if i can continue installing in my 950 MB drive ..now i have already installed binutils..going to install gcc...

Please reply me as soon as possible so that i can choose another drive with 1.3GB....

THANKS IN ADVANCE
 
Old 01-31-2008, 08:37 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If you can afford it, buy a bigger drive. It's definitely better to have some extra space than run out of it in the last meters. And what stops you from making it in a harddisk with plenty of space, and then moving to the pendrive?
 
Old 01-31-2008, 09:05 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

1 Gb (or the 1.5Gb as stated in the book) is not enough if you also build the packages in that space. If you have a separate partition for $LFS/sources it (1Gb) is enough.

$LFS => ~ 1Gb
$LFS/sources => a few Gb as a separate partition.

Especially the build of gcc and glibc will take a lot of temporary space.

If at all possible take b0uncer's advice.
 
Old 01-31-2008, 09:39 AM   #4
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

1 Gb (or the 1.5Gb as stated in the book) is not enough if you also build the packages in that space. If you have a separate partition for $LFS/sources it (1Gb) is enough.

$LFS => ~ 1Gb
$LFS/sources => a few Gb as a separate partition.

Especially the build of gcc and glibc will take a lot of temporary space.

If at all possible take b0uncer's advice.
Thanks for ur reply....

i have 4 partitions in my comp..
for
1) XP
2) MyData
3) Linux root
5) Linux Swap..

As per your advice i will install LFS in harddisc...

Quote:
Is there any utility in Linux to Split my Partition MyData(10GB) into two drives ... 7GB + 3GB OR 8GB + 2GB..... Using Partition manager in windows has created problems (like grubloading failed...etc)many times .....etc Please suggest some nice utilty in Linux
If there are some commands to split/join FAT32 partitions then please let me know....
----
Quote:
After installing LFS in my hard disk can i copy the contents of that drive in some removable disk/CD so that i can run LFS that i have created in any other computer provided that i have modified the grub boot loader to include LFS as one of the options in the bootmenu........(since i am doing this as project..i need to show the final implementation)
----

Note :

I dont want to install anything otherthan what specified in LFS ebook..since i am doing this as a project to just implement LFS. Even now do i need to install it in Harddisc OR 1GB pendrive is sufficient..?
Quote:
Moreover the space needed to build gcc/glibc is given as 655MB/342MB in the documentation.... if this is the case then why cant i install it in 950MB ....please let me know the reason behind it....

Last edited by lfs_rocks; 01-31-2008 at 09:51 AM.
 
Old 01-31-2008, 11:34 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Is there any utility in Linux to Split my Partition MyData(10GB) into two drives ... 7GB + 3GB OR 8GB + 2GB..... Using Partition manager in windows has created problems (like grubloading failed...etc)many times .....etc Please suggest some nice utilty in Linux
If there are some commands to split/join FAT32 partitions then please let me know....
gparted should be able to re-size partitions. I know it is already present on the ubuntu live cd.

This link will direct you to its home page.

Quote:
After installing LFS in my hard disk can i copy the contents of that drive in some removable disk/CD so that i can run LFS that i have created in any other computer provided that i have modified the grub boot loader to include LFS as one of the options in the bootmenu........(since i am doing this as project..i need to show the final implementation)
Short answer: No.

Longer answer: Yes, but.....
If both systems are the same it will probably work, otherwise you need to add some 'global' settings to your kernel and hope that the compiled programs didn't use to much specifics from the machine you initially build it on.

Quote:
Moreover the space needed to build gcc/glibc is given as 655MB/342MB in the documentation.... if this is the case then why cant i install it in 950MB ....please let me know the reason behind it....
Chapter 5 builds a temporary environment (which takes up space), chapter 6 will build your actual lfs system (which takes up space) and the source packages take up lots of space. By the time you start with chapter 6.12. GCC-4.1.2 most of the 1Gb is already used by the temp environment and what has been build in chapter 6. You will not have enough space left to install (and test) gcc. Even if you throw away all the packages and patches in $LFS/sources (except gcc) you will not have enough space (tried this myself and decided to put all the sources on a seperate partition).

Hope this clears things up.
 
Old 01-31-2008, 01:01 PM   #6
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Original Poster
Rep: Reputation: 15
Hi Druuna

Thanks a lot for ur COMPREHENSIVE reply...
Quote:
How much space will u suggest me to keep for LFS... shall i seperate 3GB from my MyData partition to install LFS...?

Last edited by lfs_rocks; 01-31-2008 at 01:02 PM.
 
Old 01-31-2008, 01:26 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

3 Gb is enough. This also leaves you with some space to use after you are finished.
 
Old 02-04-2008, 08:17 AM   #8
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

3 Gb is enough. This also leaves you with some space to use after you are finished.
hi druuna

i am done with the partitioning and got struck at the compiling stage of Glibc....

Please see the following thread for the description of the Error

http://www.linuxquestions.org/questi...-error-618381/

THANKS IN ADVANCE
 
  


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
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
nvsound on an lfs build behmjoe Linux From Scratch 6 12-10-2005 06:28 AM
How to build LiveCD from LFS isilinux Linux From Scratch 1 08-24-2005 03:45 AM
Is it safe to build LFS as a root ? dimaash Linux From Scratch 3 07-29-2005 10:59 AM
Build LFS from dos partition? Phonics3k Linux From Scratch 7 07-05-2002 12:48 PM

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

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