need suggestion about embedded FS plan

Henrik Nordstrom hno at
Mon Feb 3 16:37:03 EST 2003

No need for a linuxrc for such stuff.. simply have it as a sysinit script 
in your inittab.

If the mounting of etc makes that you will have a "better" inittab than in 
the underlying root just do a "telinit q" after mounting the real etc.


On 3 Feb 2003, Russ Dill wrote:

> > In fact,there is only a little fs need to
> > be 'SAVE',like /etc direcory,it take rooms less
> > than %1 of all flash size.And the main parts
> > /lib,/sbin,/bin...maybe never changed.
> > So I have an idea,
> > Put main parts of fs(/lib,/sbin....)on Cramfs
> > at one of the flash bank.
> > Put bootloader,kernel and need-save-fs(/etc) on
> > the other flash bank with jffs2 fs.
> > 
> > Is that possible?Sth ,I am not sure,is if no
> > /etc in root fs,Maybe it can not boot up!!!
> just make a /linuxrc, linuxrc is a shell script run by the kernel
> (init=/linuxrc) that would do stuff like:
> #!/bin/sh
> mount -t ramfs ramfs /var
> mount -t ramfs ramfs /tmp
> mkdir /var/run
> mkdir /var/lock
> mount -t jffs2 /dev/mtd2 /etc
> exec /sbin/init

More information about the linux-mtd mailing list