mtd:<myname> mount syntax unique to jffs2 ?

David Oberhollenzer david.oberhollenzer at sigma-star.at
Sun Jul 10 08:21:23 PDT 2022


Hi Joakim,

On 7/7/22 16:56, Joakim Tjernlund wrote:
> Why does "mtd:myrootfs" work to mount jffs2 rootfs but not squashfs?
> What does squashfs need to support the same ?
> 

squashfs can only mount block devices and does not support
raw mtd partitions or ubi volumes directly.

There is an "mtdblock" driver, which provides a read-only
block device on top of an mtd partition. Squashfs can then
be mounted from that.

However, what you probably want is the "ubiblock" driver,
which emulates a read-only block device on top of an ubi
volume.

Using ubi underneath takes care of bit-flip handling and
wear leveling, which is still an issue with nand flash,
even when used in a read-only fashion.

Greetings,

David



More information about the linux-mtd mailing list