Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Changing root filesystem properties
- 07-15-2003
- Valentina
July 15, 2003, 9:18 am

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
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

Re: Changing root filesystem properties

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: snipped-for-privacy@snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: snipped-for-privacy@snapgear.com
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » OMAP platform
- — Next thread in » Embedded Linux
-
- » USB SL811 and serial devices FTDI SIO or PL2303
- — Previous thread in » Embedded Linux
-
- » Addressing on I2C
- — Newest thread in » Embedded Linux
-
- » Подвох
- — The site's Newest Thread. Posted in » Electronic Circuits (Russian)
-