mount ubi volume fails: No such device
Lars Michael
lh_post at yahoo.com
Mon Jan 31 05:35:41 EST 2011
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 at 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 at 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
More information about the linux-mtd
mailing list