public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Padraig Brady <padraig@antefacto.com>
To: Amol Kumar Lad <amolk@ishoni.com>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: Reducing root filesystem
Date: Wed, 10 Apr 2002 20:09:38 +0100	[thread overview]
Message-ID: <3CB48DF2.10900@antefacto.com> (raw)
In-Reply-To: <7CFD7CA8510CD6118F950002A519EA3001067D06@leonoid.in.ishoni.com>

Amol Kumar Lad wrote:
> Hi,
>   I am porting Linux to an embedded system. Currently my rootfilesystem is
> around 2.5 MB (after keeping it to minimal and adding tools like busybox). I
> want to furthur reduce it to say maximum of 1.5 MB. 
> Please suggest some link/references where I can find the details to optimise
> my root filesystem
> 
> thanks
> Amol
> 
> please CC me

Obviously it depends what logic you want in your root partition,
but without too much effort we've created the following minimal
system that can do web downloads and write flash cards, and is
generally very configurable with shell scripting etc.
Note we used dietlibc for our binary. Note also when we did
this buysbox was not compatible with dietlibc.

       5 /boot/message
      10 /etc/hosts.allow
      12 /etc/host.conf
      24 /lib/modules/2.4.16-9afo/modules.pnpbiosmap
      29 /lib/modules/2.4.16-9afo/modules.parportmap
      31 /lib/modules/2.4.16-9afo/modules.generic_string
      51 /bin/runlcdd
      73 /lib/modules/2.4.16-9afo/modules.ieee1394map
      81 /lib/modules/2.4.16-9afo/modules.isapnpmap
      81 /etc/sysconfig/network-scripts/ifcfg-eth1
      99 /lib/modules/2.4.16-9afo/modules.pcimap
     101 /etc/fstab
     103 /etc/passwd
     108 /etc/group
     120 /etc/issue
     125 /etc/sysconfig/network-scripts/ifcfg-lo
     127 /etc/hosts
     134 /etc/shells
     189 /lib/modules/2.4.16-9afo/modules.usbmap
     192 /etc/suauth
     238 /etc/nsswitch.conf
     281 /bin/rescue.ash
     396 /etc/inittab
     538 /etc/profile
     595 /etc/protocols
     976 /etc/init.d/rc
    6008 /boot/boot-text.b
   16406 /bin/afrescue
   20480 /boot/map
  102273 /lib/modules/e100.o
  674931 /boot/bzImage
  717992 /bin/busybox
--------
1542809
========

So to get this even smaller:

1. Get busybox working with dietlibc/uclibc (this probably already done)
2. use something like UPX to "transparently" compress executables.
3. use e2compr to transparently compress the whole filesystem
    (gzip/bzip2 available). dri@sxb.bsf.alcatel.fr has a patch for this.

Padraig.


  parent reply	other threads:[~2002-04-10 19:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7CFD7CA8510CD6118F950002A519EA3001067D06@leonoid.in.ishoni.com>
2002-04-10 14:24 ` Reducing root filesystem Piotr Esden-Tempski
2002-04-10 15:28 ` Erik Andersen
2002-04-11 14:08   ` Erik Mouw
2002-04-10 15:38 ` Jan-Benedict Glaw
2002-04-10 19:09 ` Padraig Brady [this message]
2002-04-11  1:59   ` Miles Bader
2002-04-10 16:36 Kerl, John

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CB48DF2.10900@antefacto.com \
    --to=padraig@antefacto.com \
    --cc=amolk@ishoni.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox