public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: DATACOM - Nedel <nedel@datacom-telematica.com.br>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Volume write-protected
Date: Thu, 09 Apr 2009 09:09:21 +0300	[thread overview]
Message-ID: <1239257361.3390.5.camel@localhost.localdomain> (raw)
In-Reply-To: <49DCD7C9.2050802@datacom-telematica.com.br>

On Wed, 2009-04-08 at 13:58 -0300, DATACOM - Nedel wrote:
> # mount -t ubifs ubi0!ubipart /mnt/flash/
> UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 
> 8188:512, written 0 bytes
> UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 
> 8191:512, written 0 bytes
> UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 
> 8190:512, written 0 bytes
> UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 
> 8189:512, written 0 bytes

-5 is EIO, Input/output error. UBI tries to write 512 bytes, which is
one subpage, to offset 512 (i.e., it writes the second subpage). And
the MTD layer returns 512. So the issue is somewhere below UBI.

Possibly, your flash does not support sub-pages, but it declares that
it does. You should look at your MTD driver. The other possibility is
to force UBI not to use subpages.

> UBI error: ubi_io_write: read-only mode
> UBI error: erase_worker: failed to erase PEB 8188, error -30
> UBI error: do_work: work failed with error code -30
> UBI error: ubi_thread: ubi_bgt0d: work failed with error code -30
> UBIFS error (pid 6550): ubifs_write_node: cannot write 2048 bytes to LEB 
> 1:2048, error -30
> mount: ubi0!ubipart is write-protected, mounting read-only

UBI attaches the volume in R/O mode, because of the write error.
UBI tries to be nice to you, and instead of totally refusing the
MTD device, it attaches it R/O.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

      reply	other threads:[~2009-04-09  6:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08 16:58 Volume write-protected DATACOM - Nedel
2009-04-09  6:09 ` Artem Bityutskiy [this message]

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=1239257361.3390.5.camel@localhost.localdomain \
    --to=dedekind@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nedel@datacom-telematica.com.br \
    /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