public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Gilles <gilles.ganault@free.fr>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [Ubifs] Reboot -> "recovery needed"?
Date: Tue, 28 Jun 2011 14:38:04 +0300	[thread overview]
Message-ID: <1309261088.23597.68.camel@sauron> (raw)
In-Reply-To: <gfej07dg451r0l2co91fuvn4k2ujktk1ta@4ax.com>

On Tue, 2011-06-28 at 13:25 +0200, Gilles wrote:
> On Tue, 28 Jun 2011 14:22:38 +0300, Artem Bityutskiy
> <dedekind1@gmail.com> wrote:
> >> Thanks for the info. I'll see if I can edit the source code to
> >> "reboot" to unmount the root filesystem, or replace "reboot" with
> >> another application or script.
> >
> >I think it may be enough to re-mount read-only, and probably it is
> >impossible to unmount in many cases. But I am not 100% sure.
> 
> So I could rename "reboot" something else, then write a shell script
> named "reboot" that will first remount the Ubifs partition ro, and
> then call the real "reboot"?

I think it is not that simple - if there is any file open for writing -
remount will fail with EBUSY. So you'd first need to shut down apps,
then do that. You should probably refer standard boot scripts to see
what they do.

On the other hand, as long as your reboot command runs sync, it is
harmless to not unmount UBIFS.

-- 
Best Regards,
Artem Bityutskiy

  reply	other threads:[~2011-06-28 11:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-25 11:34 [Ubifs] Reboot -> "recovery needed"? Gilles
2011-06-28  7:33 ` Artem Bityutskiy
2011-06-28 11:19   ` Gilles
2011-06-28 11:22     ` Artem Bityutskiy
2011-06-28 11:25       ` Gilles
2011-06-28 11:38         ` Artem Bityutskiy [this message]
2011-06-28 11:50           ` Gilles
2011-06-28 12:14             ` Artem Bityutskiy
2011-06-28 12:33               ` Gilles
2011-06-28 12:43                 ` Artem Bityutskiy
2011-06-28 12:45                   ` Gilles

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=1309261088.23597.68.camel@sauron \
    --to=dedekind1@gmail.com \
    --cc=gilles.ganault@free.fr \
    --cc=linux-mtd@lists.infradead.org \
    /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