ts-7000
[Top] [All Lists]

[ts-7000] Re: Dealing with unexpected power supply loss in ucLinux?

To:
Subject: [ts-7000] Re: Dealing with unexpected power supply loss in ucLinux?
From: "Yan Seiner" <>
Date: Mon, 13 Nov 2006 14:46:50 -0000
--- In  "tonalbuilder2002" <>
wrote:
> I need networking and Apache (or at least a primitive web server), so
> I presume this requires a "Full Boot" from a CF or SD card.  The boot
> times I see now on my 7300 are just barely tolerable for my product,
> but would become a real problem if the system were to do a lengthy
> file system check upon rebooting after an improper shutdown.  (Not to
> mention maybe becoming unusable!)
> 
> Would appreciate any thoughts on this, thanks!
> 

Mount the rootfs readonly (actually the kernel does this by default)
and then use tmpfs (a ram-based file system) to build your volatile
file systems like /tmp, /dev, and /var.

On every boot, create any volatile entries in those directories from
static files or scripts, or create symlinks from /etc to /tmp.  For
example /etc/resolv.conf can be symlinked to /tmp/resolv.conf.

That way you don't have to worry about unclean shutdowns.

If you're really paranoid, use squashfs instead of jffs2.  squashfs is
built compressed, and cannot be changed other than rebuilding the
whole filesystem.  (Does the TS kernel support squashfs?)

Actually, you don't need anything near a 'full system' to run a basic
webserver.  busybox comes with a very basic web server, and lighttpd
does a good job of being a mid-range web server.  Neither needs
anything like a full system.  My whole server file system, including
PHP4 and lighttpd, probably comes in at just under 16 MB.

--Yan




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU