public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Patrick <kpa_info@yahoo.fr>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Error whe mounting ubifs volume
Date: Tue, 21 Feb 2012 16:57:10 +0000 (GMT)	[thread overview]
Message-ID: <1329843430.47249.YahooMailNeo@web29019.mail.ird.yahoo.com> (raw)

Dear mailing-list,

I am using UBI and UBIFS for the first time on a custom board that use a SLC NAND. We use the 3.0.21 kernel with UBI and UBIFS enabled.
I use mkfs.ubifs to generate a ubifs image of my rootfs with the following arguments: -m 2048 -e 129024 -c 4060


I the use the following sequence to flash this image and mount it:

flash_eraseall /dev/mtd4
ubiformat /dev/mtd4
ubiattach -p /dev/mtd4
ubimkvol /dev/ubi0 -N volume_name -s 128MiB
ubiupdatevol /dev/ubi0_0 my_rootfs.ubifs
mount -t ubifs ubi0:volume_name /media/test

Everything works well but when doing the mount I have the following error:

mount: wrong fs type, bad option, bad superblock on /dev/ubi0_0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


On the kernel log I have the following error:

 UBIFS error (pid 397): ubifs_read_node: bad node type (0 but expected 6)
 UBIFS error (pid 397): ubifs_read_node: bad node at LEB 0:0, LEB mapping status 1


I am probably doing something wrong but I am not able to point what's the problem.

Any help is welcome. Thanks in advance

Patrick


             reply	other threads:[~2012-02-21 16:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 16:57 Patrick [this message]
2012-03-08 12:12 ` Error whe mounting ubifs volume Artem Bityutskiy

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=1329843430.47249.YahooMailNeo@web29019.mail.ird.yahoo.com \
    --to=kpa_info@yahoo.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