Re: [lfs-support] Reduce Size Of LFS Build

2012-04-11 Thread Kshitij Jain
On Tue, Apr 10, 2012 at 3:28 PM, DJ Lucas d...@linuxfromscratch.org wrote:

 On 04/10/2012 02:10 AM, Kshitij Jain wrote:
  Hi
  I am a student and working on building LFS as a project I have already
  build the Linux but i want to reduce the size of the system to minimum.
  Can u please suggest me ways to reduce the size of LFS.
 

 Your question is a bit ambiguous. The solution really depends on the
 goal of the system. Take an embedded system for example. You would
 likely want to use uClibC as suggested by Firerat, but busybox is
 certainly a matter of taste. It may actually be more responsible to
 build the few utilities you need linked statically and forgo the typical
 environment completely. At an absolute minimum, you need only a kernel
 and a statically linked binary to run as init (granted, it wouldn't be
 very functional), but a kernel with no modules, a statically linked ash
 or dash, and a supported file system (with static device nodes) do
 equate to a functional (read-only) system. In fact, we used to use this
 method many many moons ago for LFS itself. The first test reboot of LFS
 had only sysvinit and bash statically linked, and that could have easily
 been reduced to just bash if desired (either 'ln -s /bin/bash
 /sbin/init' or init=/bin/bash in LILO). Yes, I had to review 1.0 (which
 I never completed) to remember exactly how it was done.
 http://archive.linuxfromscratch.org/lfs-museum/1.0/LFS-HOWTO-1.0-HTML/

  Sir,
 I've already prepared the lfs system and it is working perfectly.
I just want reduce the size of the whole system (so that it is easy to
migrate) by deleting files and folders like /sources and /tools which is
not useful anymore.

Suggest me some files that i can remove.It may include help files and
documentation files.

Thank u
Kshitij Jain.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Reduce Size Of LFS Build

2012-04-11 Thread Thomas de Roo

On 04/11/12 12:26, Kshitij Jain wrote:
On Tue, Apr 10, 2012 at 3:28 PM, DJ Lucas d...@linuxfromscratch.org 
mailto:d...@linuxfromscratch.org wrote:


On 04/10/2012 02:10 AM, Kshitij Jain wrote:
 Hi
 I am a student and working on building LFS as a project I have
already
 build the Linux but i want to reduce the size of the system to
minimum.
 Can u please suggest me ways to reduce the size of LFS.


Your question is a bit ambiguous. The solution really depends on the
goal of the system. Take an embedded system for example. You would
likely want to use uClibC as suggested by Firerat, but busybox is
certainly a matter of taste. It may actually be more responsible to
build the few utilities you need linked statically and forgo the
typical
environment completely. At an absolute minimum, you need only a kernel
and a statically linked binary to run as init (granted, it wouldn't be
very functional), but a kernel with no modules, a statically
linked ash
or dash, and a supported file system (with static device nodes) do
equate to a functional (read-only) system. In fact, we used to use
this
method many many moons ago for LFS itself. The first test reboot
of LFS
had only sysvinit and bash statically linked, and that could have
easily
been reduced to just bash if desired (either 'ln -s /bin/bash
/sbin/init' or init=/bin/bash in LILO). Yes, I had to review 1.0
(which
I never completed) to remember exactly how it was done.
http://archive.linuxfromscratch.org/lfs-museum/1.0/LFS-HOWTO-1.0-HTML/

 Sir,
 I've already prepared the lfs system and it is working perfectly.
I just want reduce the size of the whole system (so that it is easy to 
migrate) by deleting files and folders like /sources and /tools which 
is not useful anymore.


Suggest me some files that i can remove.It may include help files and 
documentation files.


Thank u
Kshitij Jain.



If you don't care about having documentation of the installed software 
around on your LFS-system, you can remove it:

/usr/share/doc/* and /usr/share/man/*

Groet,
Thomas
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Reduce Size Of LFS Build

2012-04-11 Thread Andrew Benton
On Wed, 11 Apr 2012 11:26:58 +0100
Kshitij Jain kjain181...@gmail.com wrote:

  I've already prepared the lfs system and it is working perfectly.
 I just want reduce the size of the whole system (so that it is easy to
 migrate) by deleting files and folders like /sources and /tools which is
 not useful anymore.
 
 Suggest me some files that i can remove.It may include help files and
 documentation files.

Have your read this hint?
http://www.linuxfromscratch.org/hints/downloads/files/small-lfs.txt

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] Reduce Size Of LFS Build

2012-04-10 Thread Kshitij Jain
Hi
I am a student and working on building LFS as a project I have already
build the Linux but i want to reduce the size of the system to minimum.
Can u please suggest me ways to reduce the size of LFS.

Thank you
Kshitij Jain
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Reduce Size Of LFS Build

2012-04-10 Thread Firerat
On Apr 10, 2012 8:11 AM, Kshitij Jain kjain181289@kjain181...@gmail.com
gmail.com kjain181...@gmail.com wrote:

 Hi
 I am a student and working on building LFS as a project I have already
build the Linux but i want to reduce the size of the system to minimum.
 Can u please suggest me ways to reduce the size of LFS.

 Thank you
 Kshitij Jain


Things like uclibc and busybox would help

http://cross-lfs.org/view/clfs-embedded/

That may go further than you need but should give you an idea
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Reduce Size Of LFS Build

2012-04-10 Thread DJ Lucas
On 04/10/2012 02:10 AM, Kshitij Jain wrote:
 Hi
 I am a student and working on building LFS as a project I have already
 build the Linux but i want to reduce the size of the system to minimum.
 Can u please suggest me ways to reduce the size of LFS.


Your question is a bit ambiguous. The solution really depends on the 
goal of the system. Take an embedded system for example. You would 
likely want to use uClibC as suggested by Firerat, but busybox is 
certainly a matter of taste. It may actually be more responsible to 
build the few utilities you need linked statically and forgo the typical 
environment completely. At an absolute minimum, you need only a kernel 
and a statically linked binary to run as init (granted, it wouldn't be 
very functional), but a kernel with no modules, a statically linked ash 
or dash, and a supported file system (with static device nodes) do 
equate to a functional (read-only) system. In fact, we used to use this 
method many many moons ago for LFS itself. The first test reboot of LFS 
had only sysvinit and bash statically linked, and that could have easily 
been reduced to just bash if desired (either 'ln -s /bin/bash 
/sbin/init' or init=/bin/bash in LILO). Yes, I had to review 1.0 (which 
I never completed) to remember exactly how it was done. 
http://archive.linuxfromscratch.org/lfs-museum/1.0/LFS-HOWTO-1.0-HTML/

-- DJ Lucas

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page