Upgrading cramfs root file system

Wojciech Kromer wojciech.kromer at dgt.com.pl
Wed Apr 19 17:42:25 EST 2006

Dnia 2006-04-06 22:38, Użytkownik Antonio Di Bacco napisał:
> Hi,
> how could I upgrade my cramfs rootfs? I have a CGI in the rootfs that receives 
> the new rootfs from a web interface and then tries to write it in the flash. 
> While overwriting the old cramfs, the CGI will continue to work? something 
> weird could happen?

Generally it's not a good idea to override working filesystem ( I've 
tried to do it once).

You can have two separate copies of filesystem, one to work with, and 
another to overwrite, it requires more flash.
Another way is working in initrd, it requires more RAM.
You can also use jffs2 or jffs3 (experimental) to have read-write 
filesystem, and change applications only, not whole filesystem (be 
carefull with changing busybox or libraries!)

More information about the Linuxppc-embedded mailing list