> Hi Paolo,
> 
> Friday, November 03, 2000, 12:27:40 PM, you wrote:
> 
> PM> Just a little newbie question: in order to achieve speed and a good robustness 
>of an embedded system, in order to let user to switch off without a shutdown 
>procedure and avoiding  those bad
> PM> filesystem checks ), should I load everything on a Ramdisk? Any hints about it ?
> 
> when i was confronted with that problem, i decided to mount the
> filesystem read-only. all the parts of the filesystem which need to be
> writable at runtime are linked to ramdisk filesystems (like the /tmp,
> /var/... and the /dev directories). in a linux how-to or faq i found a
> hint by which means you can prevent the fcheck program of checking
> your disks. i don't remember at the moment but i will dig through my
> notes if you are interested in it ...
> 
some posible solutions to that problem , 

1) use reiserfs in the system (the exeption is /boot but that can be readonly)
   reiserfs is stable enough to manage such crash situation (you could also 
   try ext3, but I can't say anything about ext3 realy since I did not play
   with it yet).

      http://www.reiserfs.org (not shure on this one, but it shouls be in the
      kernent kernels/releases anyway)
 
2) if you need to do something realy crule then you might consider using a
   ramdisk-based minisystem for testing . Ramdisk based systems don't even
   need access to the boot-media during runtime and on a crash/power-down
   the ramdisk is lost but that does not influence the boot-media.

      http://www.rtlinux.org/minirtl.html

3) get a network card with an boot-rom on it and boot via DHCP/BOOTP mount
   everything including / via NFS , so if you crash the box it will not corupt
   any filesystems aslong as you did not try to write anything to them, and 
   there is naturally no fsck with such a setup.

       /usr/doc/howto/Diskless-HOWTO

4) write output and debug info to a remote site, ither via syslog/syslog-server
   or via an NFS mounted data-partition, and have everything local mounted 
   read-only.

      man syslogd 

5) Consider using Carbon-kernel for developement/debuging

      http://www.carbonkernel.org 

6) only write perfect, bugfree code :)

hofrat
*------------------------------------------------------------------------*
*THERE           {__}                              FSMLabs               *
*IS              oo )                        The RTLinux Company         *
*LIFE           O_   `_-------.              Mc  Guire  Nicholas         *
*IN               (-.         ,-\                                        *
*THE               || )---<  )             [EMAIL PROTECTED]         *
*NET !             |||     | |          privat: [EMAIL PROTECTED]         *
*                                 [EMAIL PROTECTED]         *
*------------------------------------------------------------------------*
*ASCII-COW (C) 1996-2038 [EMAIL PROTECTED]   http://www.hofr.at           *
*------------------------------------------------------------------------*
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to