From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] Check root file system at boot time
Date: Thu, 5 Jun 2014 21:21:13 +0200 [thread overview]
Message-ID: <20140605192113.GE3553@free.fr> (raw)
In-Reply-To: <1401963933710-71653.post@n4.nabble.com>
Pedro, All,
On 2014-06-05 03:25 -0700, psnsilva spake thusly:
> I usually properly shutdown the rPi triggering "poweroff" or "reboot".
> However, the system I am build is to be installed at an uncontrolled
> environment, where power interruptions can occur.
Ah, then that makes sense.
> As you say, I would expect that in this case the "filesystem "driver" in the
> kernel" automatically check the file system at boot time, but it's not
> happening.
Check your dmesg for messages like "recovery required on readonly
filesystem".
These mean that recovery on the filesystem is indeed happening.
> I think I have all the necessary tools (e2fstools) and
> configurations on my systems, but I should be missing something here.
As I said, you can't really do an fscp pass on a mounted filesystem. You
may be able to do so on a filesystem mounted read-only, but then you'd
have to reboot after fixing the filesystem.
An alternate solution would be to boot into an initramfs, that would be
responsible for checking the root filesystem, and then pivotroot-ing
into it.
But that will need some additional work on your side, since that not the
standrrd boot process of Buildroot-generated systems.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-06-05 19:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 16:02 [Buildroot] Check root file system at boot time psnsilva
2014-06-04 17:09 ` Yann E. MORIN
2014-06-05 10:25 ` psnsilva
2014-06-05 19:21 ` Yann E. MORIN [this message]
2014-06-06 13:46 ` psnsilva
2014-06-06 16:27 ` Yann E. MORIN
2014-06-06 16:42 ` psnsilva
2014-06-06 16:51 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140605192113.GE3553@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox