logo       

Re: jffs2 on MTD mounting problem: msg#00049

Subject: Re: jffs2 on MTD mounting problem

Ulf Samuelsson wrote:
> 
> ...
> 
> >
> > now I issued
> > mount /dev/mtdblock/1 /a -t jffs2 which was successful.
> >
> > How ever I run df I got
> > # df
> > Filesystem           1k-blocks      Used Available Use% Mounted on
> > /dev/root                 1787       736       949  44% /
> > /dev/mtdblock/1            768       768         0 100% /a
> >
> > i.e there is no room left in this partition though I did not use it at
> > any time.
> > # cd /a
> > # ls -la
> > drwxr-xr-x    1 0        0               0 Jan  1 00:01 .
> > drwxr-xr-x   11 0        0            1024 Jan  1 00:01 ..
> >
> > Where I have gone wrong?
> 
> Don't you have to create/format a file system on the device`?
> mkfs or something like that...
> 

There is a chance there is actually no room left, jffs2 reserves 5
sectors
for garbage collection I think, (or if it was 5 for each chip if it is
parallel),
which leaves 128k if it is empty don't know if there is any more
overhead 
regarding the filesystem itself.

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ/Etiquette:       http://www.arm.linux.org.uk/armlinux/mailinglists.php



<Prev in Thread] Current Thread [Next in Thread>