On Tue, 16 Aug 2005, nivekengg wrote:
> 2. Power shutdowns and file corruption. In reading the list, it
> appears that filesystem corruption is a common problem after power
> cycling. My current application centers around data logging with just
> the keypad and lcd interface for a minimal interface. The system
> should not require user interaction to boot and run from powerup, and
> ideally shut down gracefully upon power removal. Datalogging to
> either comnpact flash, or more ideally USB memory stick is required
> to allow easy removal of media and copy to windows machines (this
> means vfat fs).
> Can anyone recommend a best practice in this scenario to minimize
> risk of filesystem corruption?
> One thought is to implement a delay timer to leave the ts7000 powered
> for long enough to shut down gracefully but what is the preferred
> shutdown sequence to minimize risk of filesystem corruption? Is
> poweroff the right solution?
I've been thinking again about this.
You could mount the cfdisk readonly - if power goes there's nothing to go
wrong.
If you had a ramdisk to store your data, and a daemon to remount the
cfdisk rw, copy the data acros, and remount the cfdisk back ro, every so
often (minutes or more) then it cuts down the chances of power loss
causing problems.
just some thoughts.
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12h34sqth/M=362131.6882499.7825260.1510227/D=groups/S=1705005378:TM/Y=YAHOO/EXP=1124240104/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|