mount ubi volume fails: No such device

Lars Michael lh_post at yahoo.com
Mon Feb 7 10:05:24 EST 2011


> On Mon, 2011-01-31 at 02:35 -0800, Lars Michael wrote:
> > 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!
> 
> Do you have ubifs in /proc/filesystems?
> 

Well, no! UBIFS is included in the kernel, why doesn't it show up?
Now I changed it to a kernel object and now it appears in proc/filesystems after running insmod.

Next I try to attach again. But now other errors occur, see below:

[root at M54418TWR /]# ubiattach /dev/ubi_ctrl -m 1
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: volume 2 ("datafs") re-sized from 133 to 821 LEBs
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "ubi"
UBI: MTD device size:            255 MiB
UBI: number of good PEBs:        2036
UBI: number of bad PEBs:         4
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     3
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 2036
UBI: number of PEBs reserved for bad PEB handling: 20
UBI: max/mean erase counter: 6/2
UBI: background thread "ubi_bgt0d" started, PID 642 UBI device number 0, total 2036 LEBs (258523136 bytes, 246.5 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) [root at M54418TWR /]# UBI: scrubbed PEB 9, data moved to PEB 2035
UBI: scrubbed PEB 10, data moved to PEB 1963
UBI: scrubbed PEB 13, data moved to PEB 1767 ...
UBI: scrubbed PEB 860, data moved to PEB 1098
UBI: scrubbed PEB 863, data moved to PEB 1097 UBI warning: ubi_eba_copy_leb: read data back from PEB 1092 and it is different UBI error: wear_leveling_worker: error -22 while moving PEB 868 to PEB 1092 UBI warning: ubi_ro_mode: switch to read-only mode UBI error: do_work: work failed with error code -22 UBI error: ubi_thread: ubi_bgt0d: work failed with error code -22

Regards,
- Lars Michael



      



More information about the linux-mtd mailing list