JFFS2: No space left on a blank mtd device?
Hi,
I mounted a blank mtd device at /mnt with type JFFS2. (I erased everything before mounting the device.) But I cannot create any files in it. 'df -k' shows there is no available space left.
Is it mandatory to make a 'blank' JFFS2 filesystem image even for a blank mtd device?
Thanks a lot,
-Shawn.
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
Hi,
Quoted 2 lines
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.
Just use eraseall -j <mtddevice>
It will create a dummy inode so you can mount the device.
Regards,
Florian
Quoted 6 lines · Florian Schirmer
Quoted 3 lines
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...
Quoted 3 lines
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
Signature · 2 lines
Everything should be made as simple as possible, but not simpler. -- Albert Einstein