Can not mount UBIFS

Artem Bityutskiy dedekind1 at gmail.com
Tue Apr 6 04:48:36 EDT 2010


Hi,

On Thu, 2010-03-11 at 15:43 +0800, 林于峻 wrote:
> Dear all,
> 
> I am trying UBIFS on android on nVidia Tegra T20.
> I add a new MTD partition, flash_eraseall, ubiattach, ubimkvol, and mount it.
> Error occurs when mount it.
> 
> The total command I enter is:
>     # ubidetach /dev/ubi_ctrl -d 0
>     ubidetach /dev/ubi_ctrl -d 0
>     # flash_eraseall /dev/mtd/mtd4
>     flash_eraseall /dev/mtd/mtd4

Better use ubiformat instead of flash_eraseall:

http://www.linux-mtd.infradead.org/faq/ubi.html#L_ubierase

>     Erasing 128 Kibyte @ 2000000 -- 100 % complete.
>     # ubiattach /dev/ubi_ctrl -m 4
>     ubiattach /dev/ubi_ctrl -m 4
>     UBI device number 0, total 256 LEBs (32505856 bytes, 31.0 MiB),
> available 250 LEBs (31744000 bytes, 30.3 MiB), LEB size 126976 bytes
> (124.0 KiB)
>     # ubimkvol /dev/ubi0 -m -N rootfs
>     ubimkvol /dev/ubi0 -m -N rootfs
>     Set volume size to 31744000
>     Volume ID 0, size 250 LEBs (31744000 bytes, 30.3 MiB), LEB size
> 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
>     # mount -t ubifs ubi0:rootfs /sdcard
>     mount -t ubifs ubi0:rootfs /sdcard
>     mount: Invalid argument
> 
> The NAND flash is HY27UF084G2B.

Could you please first validate your flash with nandtests? Take the
tests from the latest kernel.

http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests

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




More information about the linux-mtd mailing list