Can I run linux without a file system?

Jerry Van Baren vanbaren_gerald at si.com
Sat Jun 22 06:58:02 EST 2002


OK, you and John Kerl caught me fear-mongering :-).  Thank you for the link
and shameless plug, it looks very, very useful.  4.8MB is very respectable
but not what most people think about when they say "minimal file
system".  Tim wants less than 1MByte, care to take up THAT challenge
:-)?  That would require shrinking the libraries to just the necessary
functions, which is a big jump in difficulty.

gvb


At 02:31 PM 6/21/2002 -0600, Dr. Craig Hollabaugh wrote:
>At 04:12 PM 6/21/2002 -0400, Jerry Van Baren wrote:
> >
> >You need at least a RAM file system for "/" and a bunch of subdirectories
> >such as /dev, /lib, etc.  The common way to do this on a minimalistic
> >system is to create a file system image in ROM (often compressed) and copy
> >it to RAM on start up.  Given the questions you are asking, I am very
> >confident creating a minimal RAM disk image will challenge you sufficiently
> >:-).  I'm not being snide, lots of people with lots of linux knowledge have
> >tried and failed.  Most people use someone else's pre-configured minimal
> >file systems and add/subtract (mostly add :-) programs to it.  This is
> >because it is very, very hard to create a minimal file system (that works,
> >that is).
>
>I disagree. Creating a minimal root filesystem is easy once you understand
>what
>happens when init executes. (Shameless plug here) In my Embedded Linux
>book, I show
>you exactly the files needed to get bash running with a network
>connection. You use ldd to find out lib dependencies. Then copy binaries
>you want with their libs and some config files and your done. Here's my
>script to build such a root filesystem
>(http://www.embeddedlinuxinterfacing.com/chapters/04/buildrootfilesystem/buildrootfilesystem).
>Look it over, it probably won't make much sense without reading chapter 4.
>
>I can say that a minimum RedHat install uses 29,296 files ­ 382.020MB,
>debian 10,734 files - 67.428MB, my minimal root filesystem 82 files and 4.8MB.

[snip]


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list