* JFFS2: No space left on a blank mtd device?
@ 2004-02-12 19:55 Shawn Jin
2004-02-13 7:38 ` Florian Schirmer
0 siblings, 1 reply; 3+ messages in thread
From: Shawn Jin @ 2004-02-12 19:55 UTC (permalink / raw)
To: linuxmtd
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: JFFS2: No space left on a blank mtd device?
2004-02-12 19:55 JFFS2: No space left on a blank mtd device? Shawn Jin
@ 2004-02-13 7:38 ` Florian Schirmer
2004-02-16 12:06 ` Jörn Engel
0 siblings, 1 reply; 3+ messages in thread
From: Florian Schirmer @ 2004-02-13 7:38 UTC (permalink / raw)
To: linux-mtd; +Cc: Shawn Jin
Hi,
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: JFFS2: No space left on a blank mtd device?
2004-02-13 7:38 ` Florian Schirmer
@ 2004-02-16 12:06 ` Jörn Engel
0 siblings, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2004-02-16 12:06 UTC (permalink / raw)
To: Florian Schirmer; +Cc: Shawn Jin, linux-mtd
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-16 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-12 19:55 JFFS2: No space left on a blank mtd device? Shawn Jin
2004-02-13 7:38 ` Florian Schirmer
2004-02-16 12:06 ` Jörn Engel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox