From: Lars Michael <lh_post@yahoo.com>
To: linux-mtd@lists.infradead.org
Subject: mount ubi volume fails: No such device
Date: Mon, 31 Jan 2011 02:35:41 -0800 (PST) [thread overview]
Message-ID: <194189.91256.qm@web30207.mail.mud.yahoo.com> (raw)
Hi,
I am trying to mount an UBI volume, but it fails:
# mount -t ubifs ubi0_0 /mnt/ubi
mount: mounting ubi0_0 on /mnt/ubi failed: No such device
Using mkfs.ubifs and ubinize I have prepared an image containing three volumes. On the target I have used ubiformat to flash the image and ubiattach to attach to mtd1.
Target kernel: 2.6.29, platform m68k (mcf54418). The UBI tools on the host are built from git://git.infradead.org/mtd-utils.git.
Everything looks fine to me, see below, but how do I mount a volume? I have tried various ways to refer to the device (like ubi0:datafs, ubi0_0) without luck.
Thanks for any help!
[root@M54418TWR /]# ls -l /dev/ubi*
crw-rw---- 1 root root 252, 0 Nov 24 17:54 /dev/ubi0
crw-rw---- 1 root root 252, 1 Nov 24 17:54 /dev/ubi0_0
crw-rw---- 1 root root 252, 2 Nov 24 17:54 /dev/ubi0_1
crw-rw---- 1 root root 252, 3 Nov 24 17:54 /dev/ubi0_2
crw-rw---- 1 root root 10, 63 Nov 24 17:31 /dev/ubi_ctrl
[root@M54418TWR /]# ubinfo -a
UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:63
Present UBI devices: ubi0
ubi0:
Volumes count: 3
Logical eraseblock size: 126976
Total amount of logical eraseblocks: 2036 (258523136 bytes, 246.5 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 4
Count of reserved physical eraseblocks: 20
Current maximum erase counter value: 5
Minimum input/output unit size: 2048 bytes
Character device major/minor: 252:0
Present volumes: 0, 1, 2
Volume ID: 0 (on ubi0)
Type: dynamic
Alignment: 1
Size: 1058 LEBs (134340608 bytes, 128.1 MiB)
State: OK
Name: rootfs
Character device major/minor: 252:1
-----------------------------------
Volume ID: 1 (on ubi0)
Type: dynamic
Alignment: 1
Size: 133 LEBs (16887808 bytes, 16.1 MiB)
State: OK
Name: progfs
Character device major/minor: 252:2
-----------------------------------
Volume ID: 2 (on ubi0)
Type: dynamic
Alignment: 1
Size: 821 LEBs (104247296 bytes, 99.4 MiB)
State: OK
Name: datafs
Character device major/minor: 252:3
next reply other threads:[~2011-01-31 10:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 10:35 Lars Michael [this message]
2011-02-06 14:19 ` mount ubi volume fails: No such device Artem Bityutskiy
-- strict thread matches above, loose matches on Subject: below --
2011-02-07 15:05 Lars Michael
2011-02-07 15:27 ` Artem Bityutskiy
2011-02-09 8:32 Lars Michael
2011-02-11 14:28 ` Artem Bityutskiy
2011-02-14 8:49 ` Lars Michael
2011-02-14 11:01 ` Artem Bityutskiy
2011-02-14 12:47 ` Lars Michael
2011-02-09 12:34 Lars Michael
2011-02-11 14:32 ` Artem Bityutskiy
[not found] <9186EF1D8AB86E40B9C8009D36864D0403CA4342@dhreinsvxb03.messaging.danaherad.com>
2011-02-11 14:21 ` Lars Michael
2011-02-11 14:35 ` Artem Bityutskiy
2011-02-11 14:57 ` Artem Bityutskiy
2011-02-14 10:22 Lars Michael
2011-02-18 10:57 Lars Michael
2011-02-25 10:45 ` Artem Bityutskiy
2011-02-28 8:49 ` Lars Michael
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=194189.91256.qm@web30207.mail.mud.yahoo.com \
--to=lh_post@yahoo.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.