JFFS2: No space left on a blank mtd device?

Jörn Engel joern at wohnheim.fh-wedel.de
Mon Feb 16 07:06:47 EST 2004


On Fri, 13 February 2004 08:38:04 +0100, Florian Schirmer wrote:
> 
> > Is it mandatory to make a 'blank' JFFS2 filesystem image even for a blank
> > mtd device?
> 
> jffs2 will refuse to mount unless at least one jffs2 was found on the device. 
> Thats the reason why you can't mount an empty device.

...at least one jffs2 erase block was found...

> Just use eraseall -j <mtddevice>
> 
> It will create a dummy inode so you can mount the device.

No it won't, but jffs2 will happily mount an empty device.  *Any* data
on the device and it has to find at least one jffs2 erase block, but
empty is fine.

Jörn

-- 
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein



More information about the linux-mtd mailing list