--- Joshua Jacksonwrote:> On Friday 24 September 2004 1:20 pm, Frank wrote:> > --- Steve Iribarne > wrote:> > > Don't use ext2 file system with flash.?Use ext3 and mount> it> > > with sync> > > option.?It will save your flash from getting corrupted.> > >> > > -stv> >> > Thanks for the heads up!!> > Keep in mind that ext3 will chew up a default of 8MB of your> flash for the > journal. If you are using really little flash drives, this can> become a > problem.> > With my commercial firewall solution, I use ext2 on the flash> drive and only > mount it in read-write when a configuration change needs to be> stored to the > device. This is a similiar technique to that used in a lot of> embedded > devices... as long as you don't cut power during a disk write,> you should be > fine.> > Another trick I use with both Coyote Linux and Wolverine is to> use a ramdrive > type of tmpfs. This creates a ramdrive that is automatically> exanded and > collapsed as storage space is used and freed. Coyote Linux> uses the > initrd-dyn kernel patch (which allows the initrd to be stored> in a .tgz and > decompressed directly to tmpfs during boot) whereas Wolverine> uses a tiny > (2MB) initrd which bootstraps the rest of the system which is> decompresses > from a .tgz into a tmpfs ramdrive. With Wolverine the system> does a pivot > root to switch to the tmpfs ramdrive and then de-allocates the> initrd.> > While this all seems like a lot of work, it allows for a> ramdrive > configuration that only uses slightly more RAM than is needed> to hold the > files. I've managed to pack a busybox based system with a full> glibc, apache > + php (for web administration), IPSEC, PTPP, UPnP, graphical> network statics, > SNMP, DynDNS, and various other goodies in a 14Mb tmpfs> ramdrive.> > Coyote Linux uses a whopping 2MB of RAM for its ram drive> using a busybox + > uClibc build.> > --> Joshua Jackson> Vortech Consulting, LLC> http://www.vortech.net
原文见:http://www.busybox.net/lists/busybox/2004-...ber/012731.html 不错哦,支持的不少哦
QUOTE
I've managed to pack a busybox based system with a full glibc, apache+ php (for web administration), IPSEC, PTPP, UPnP, graphicalnetwork statics,SNMP, DynDNS, and various other goodies in a 14Mb tmpfs ramdrive.
“tmpfs“ 是什么阿? 临时文件系统? 只能看明一部分哎~~~ 是指他的商业版软件的功能。
页:
[1]