From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Stornelli Subject: Re: mount ramdisk rootfs /etc directory to jffs2 filesystem. Date: Fri, 22 Jan 2010 09:14:54 +0100 Message-ID: <2ea1731b1001220014v59ea7767m6e1a8547d41c6afb@mail.gmail.com> References: <20100119095024.GD16182@darwin> <20100119102026.GF16182@darwin> <20100119140600.GH16182@darwin> <2ea1731b1001192357r72d627e2gb36d71f23fd69b2e@mail.gmail.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jXM+AGeZFGPYzyB6gNvaiAt4KjEXM1Nbm595wRU/BrA=; b=LZ34Dd8VpKc01eFfH86KRaw8mY6z7HA4Azff0jshgK7+IsiGXmFxEBpea1/o7flzwY tIKw673ndVfVieya6RELG1cESYyLe2daYPZXda1DGd+b8nNbBmk3v4ZsgrFjtpkyPhLN 7h2q4fgI6ZqiHRCE+ZhxRsKYNDHD/liQSAMrs= In-Reply-To: Sender: linux-embedded-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Johnny Hung Cc: Matthias Kaehlcke , Ricard Wanderlof , kernelnewbies , "linux-mtd@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-embedded@vger.kernel.org" 2010/1/22 Johnny Hung : > 2010/1/20 Marco Stornelli : >> 2010/1/20 Johnny Hung : >>> 2010/1/19 Matthias Kaehlcke : >>>> 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 >>> boot up failed. >>> Another query, does the syslogd/klogd log files also store in jffs2 >>> rootfs? Write to jffs2 frequently will reduce flash life cycle. >>> >>> BRs, H. Johnny >>>> >>>> -- >> > > It seems there are a lot of file-systems I have to study :P. The same > question is > how to split my rootfs? Re-mount /etc, /var to another file-sysyem mtd part when > system boot up? > Simply, you can mount each mount point with the fstab file and a script, same approach of every linux distribution, nothing more. Even in the pc world you can mount your /home on a partition with ext3, /var in a partition with ext4, and so on. A very simple approach to setup the system, it is to start with NFS for example with "whole" fs, copy what you need in the right place, setup the start-up script and reboot. Marco