ubiattach problem

Artem Bityutskiy dedekind at infradead.org
Sun Aug 9 00:36:41 EDT 2009


On Wed, 2009-07-08 at 15:23 +0300, Oren wrote:
> Well...thanks...seems like my device was not work properly.
> After fixing it...i have progress in ubiattach:
> 
> 
> [ 1387.120000] UBI: volume 0 ("NAND-block1") re-sized from 133 to 1655
> LEBs
> [ 1387.130000] UBI: attached mtd2 to ubi0
> [ 1387.130000] UBI: MTD device name:            "NAND-block2"
> [ 1387.140000] UBI: MTD device size:            210 MiB
> [ 1387.140000] UBI: number of good PEBs:        1675
> [ 1387.150000] UBI: number of bad PEBs:         5
> [ 1387.150000] UBI: max. allowed volumes:       128
> [ 1387.160000] UBI: wear-leveling threshold:    4096
> [ 1387.160000] UBI: number of internal volumes: 1
> [ 1387.170000] UBI: number of user volumes:     1
> [ 1387.170000] UBI: available PEBs:             0
> [ 1387.170000] UBI: total number of reserved PEBs: 1675
> [ 1387.180000] UBI: number of PEBs reserved for bad PEB handling: 16
> [ 1387.190000] UBI: max/mean erase counter: 0/0
> [ 1387.190000] UBI: background thread "ubi_bgt0d" started, PID 141
> 
> but when trying to mount i get the following:
> 
>  mount -t ubifs ubi0:NAND-block1 /mnt/ubi 
> [ 1654.740000] UBIFS error (pid 149): validate_sb: LEB size mismatch:
> 129024 in superblock, 126976 real
> [ 1654.750000] UBIFS error (pid 149): validate_sb: bad superblock, error
> 1
> mount: mounting ubi0:NAND-block1 on /mnt/ubi failed: Invalid argument

I've just created this FAQ entry for you:
http://www.linux-mtd.infradead.org/faq/ubifs.html#L_lebsz_mismatch

Enjoy :-)

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




More information about the linux-mtd mailing list