Changing root filesystem properties

Jul 15, 2003 1 Replies

Hi,



I'm using uClinux with Motorola M5249C3 Cold Fire. I have the uClinux Full Distribution and building the image file with the default configuration all works good. But now I want to modify the root filesystem. By default this is created in RAM as a readonly filesysytem (romfs filesystem is used). I would like to mount it with read and write properties in the same RAM (using, for example, ramfs filesystem). What is the best method to do this?



Thanks,



Valentina Damato


by default, you should have a ramfs already for /var. this is created (from nothing) by the startup scripts in the romfs.

The problem with running the root fs from ramfs, is that you need to get all the binaries and libraries into it somehow. i guess you could boot from romfs, and then setup your startup scripts to make a ramfs, copy everything over to it, then chroot to the ramfs.

it would probabaly be easier to just create mounted ramfs on other dirs, /home /usr etc. instead of the entire rootfs, but, if you think you need a ramfs rootfs, then i guess you do :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required