From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mailer.railtec-systems.ch ([85.119.154.248]) by metis.ext.pengutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1Ykqk2-0003kU-51 for ptxdist@pengutronix.de; Wed, 22 Apr 2015 11:14:46 +0200 Received: from localhost (localhost [127.0.0.1]) by mailer.railtec-systems.ch (Postfix) with ESMTP id C4AF25298016 for ; Wed, 22 Apr 2015 11:14:45 +0200 (CEST) Received: from mailer.railtec-systems.ch ([127.0.0.1]) by localhost (mailer.railtec-systems.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v2h5MO+3HUwf for ; Wed, 22 Apr 2015 11:14:45 +0200 (CEST) Received: from hp-ws8.railtec.local (249.209.164.109.static.wline.lns.sme.cust.swisscom.ch [109.164.209.249]) (Authenticated sender: marc.michalewicz@railtec-systems.ch) by mailer.railtec-systems.ch (Postfix) with ESMTPSA id 3AF8F5298014 for ; Wed, 22 Apr 2015 11:14:45 +0200 (CEST) Date: Wed, 22 Apr 2015 11:14:38 +0200 (CEST) From: Marc Michalewicz In-Reply-To: <20150126135132.GC30319@pengutronix.de> Message-ID: References: <1665427.Jcmx2pu0g7@dabox> <20150126135132.GC30319@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1912550767-1429694085=:29906" Subject: Re: [ptxdist] automatic root-fs fsck at boottime with autorepair List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1912550767-1429694085=:29906 Content-Type: text/plain; charset="iso-8859-15"; format="flowed" Content-Transfer-Encoding: quoted-printable Hi, thanks for your hint; the issue is still open and I have no clue what to do= next although your answer helped a little bit. But how or where do I have to install the check ? Could you please detail your idea a little bit more ? I tried "fsck.ext3 -p /dev/mmvblk0p1" on the line before "mount -a ..." in = rcS but this did not work: =3D> "fsck.ext3: No such file or directory while trying to open /dev/mmcblk= 0p1" Just fyi in the syslog I found these lines: Apr 21 11:50:11 [..] [ 1.854104] EXT3-fs: barriers not enabled=20 Apr 21 11:50:11 [..] [12.856129] kjournald starting. Commit interval 5 sec= onds=20 Apr 21 11:50:11 [..] [12.856223] EXT3-fs (mmcblk0p1): warning: maximal moun= t count reached, running e2fsck is recommended Apr 21 11:50:11 [..] [13.091387] EXT3-fs (mmcblk0p1): using internal journa= l=20 Apr 21 11:50:11 [..] [13.091398] EXT3-fs (mmcblk0p1): recovery complete=20 Apr 21 11:50:11 [..] [13.093917] EXT3-fs (mmcblk0p1): mounted filesystem wi= th ordered data mode What does all this mean in detail - especially "recovery complete" ? Another question in this context: do you think a (automatic) fsck is needed= at all with ext3 ? Thanks for any help, Marc --=20 Wir feiern das 10-j=E4hrige Jubil=E4um / We celebrate the 10th anniversary Railtec Systems GmbH Marc Michalewicz Sonnenbergstrasse 19 CH-6052 Hergiswil Tel: +41 41 632 5531 Fax: +41 41 632 5539 www.railtec-systems.ch On Mon, 26 Jan 2015, Michael Olbrich wrote: > On Thu, Jan 22, 2015 at 04:59:45PM +0100, Tim Sander wrote: >>> how can I configure an automatic filesystemcheck of the root filesystem= at >>> boottime ? >> I think you need an initrd image for that? > > No, the rootfs can be checked and fixed, if it is mounted read-only. > Systemd will do this automatically. For a busybox init you need to add the > check yourself. > > Michael > > --=20 > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > --=20 > ptxdist mailing list > ptxdist@pengutronix.de > --8323329-1912550767-1429694085=:29906 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --8323329-1912550767-1429694085=:29906--