mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
Hi ALL, I have build an embedded Linux system and rootfs is a ramdisk. Ramdisk rootfs resides in memory so modify files is non-effective after a reboot. Some directories in rootfs, like /etc, /usr, ... are contain many application configuration files and I want to mount it to jffs2 flash

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 05:20:53PM +0800 Johnny Hung ha dit: I have build an embedded Linux system and rootfs is a ramdisk. Ramdisk rootfs resides in memory so modify files is non-effective after a reboot. Some directories in rootfs, like

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Matthias Kaehlcke
El Tue, Jan 19, 2010 at 06:13:07PM +0800 Johnny Hung ha dit: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 05:20:53PM +0800 Johnny Hung ha dit: I have build an embedded Linux system and rootfs is a ramdisk. Ramdisk rootfs resides in memory so modify files is

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Matthias Kaehlcke
El Tue, Jan 19, 2010 at 05:20:53PM +0800 Johnny Hung ha dit: I have build an embedded Linux system and rootfs is a ramdisk. Ramdisk rootfs resides in memory so modify files is non-effective after a reboot. Some directories in rootfs, like /etc, /usr, ... are contain many application

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Ricard Wanderlof
On Tue, 19 Jan 2010, Johnny Hung wrote: Okay, I think the steps is below if my rootfs is ramdisk and configure files in jffs2, 1. cp /etc/* /mnt/mtd/etc/(/mnt/mtd is my jffs2 fs) 2. rm -rf /etc/* 3. make symbolic links from all /etc/xx to /mnt/mtd/etc/xxx 4. remake ramdisk rootfs It

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Matthias Kaehlcke
El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: On Tue, 19 Jan 2010, Johnny Hung wrote: Okay, I think the steps is below if my rootfs is ramdisk and configure files in jffs2, 1. cp /etc/* /mnt/mtd/etc/(/mnt/mtd is my jffs2 fs) 2. rm -rf /etc/* 3. make symbolic links

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Johnny Hung
2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: On Tue, 19 Jan 2010, Johnny Hung wrote: Okay, I think the steps is below if my rootfs is ramdisk and configure files in jffs2, 1. cp /etc/* /mnt/mtd/etc/    (/mnt/mtd is my

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Ricard Wanderlof
On Wed, 20 Jan 2010, Johnny Hung wrote: i'd also recommend you to consider if you really need the ramdisk. when using a ram disk its entire content is loaded to the RAM occupying space, even if you don't use certain files (or part of them). other filesystems are more efficient in this aspect.

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Matthias Kaehlcke
El Wed, Jan 20, 2010 at 10:32:15AM +0800 Johnny Hung ha dit: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: On Tue, 19 Jan 2010, Johnny Hung wrote: Okay, I think the steps is below if my rootfs is ramdisk and

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Matthias Kaehlcke
El Wed, Jan 20, 2010 at 08:15:01AM +0100 Ricard Wanderlof ha dit: On Wed, 20 Jan 2010, Johnny Hung wrote: i'd also recommend you to consider if you really need the ramdisk. when using a ram disk its entire content is loaded to the RAM occupying space, even if you don't use certain files (or

Re: mount ramdisk rootfs /etc directory to jffs2 filesystem.

2010-01-19 Thread Marco Stornelli
2010/1/20 Johnny Hung johnny.hack...@gmail.com: 2010/1/19 Matthias Kaehlcke matth...@kaehlcke.net: El Tue, Jan 19, 2010 at 02:17:22PM +0100 Ricard Wanderlof ha dit: I consider to use ramdisk as rootfs because worry about wrong operation in rootfs (is use jffs2 rootfs) and it will cause system