Running out of space on MTD partition with JFFS2

David Woodhouse dwmw2 at infradead.org
Thu Mar 25 05:39:33 EST 2004


On Thu, 2004-03-25 at 16:18 +0530, Rajesh B. V. wrote:
> Hi David,
> 
> Thanks for the response.
> 
> >Are you removing the old files first, or writing the new files with
> >different names and then renaming them to the same name as the original
> >files? Or are you opening the original files with O_TRUNC?
> 
> I am overwriting the old files with new files ( with same name directly ) 
> using simple 'cp'
> # cp -f /config  /mnt/jffs2  ( where /mnt/jffs2 is mounted through 
> /dev/mtdblock4 ).
> 
> >Are there any processes running which still have the old file open?
> 
> There are no other processes using these files once copy is done. Only 
> during bootup and during taking backup only these files will be accessed.

Ok. How big is the partition, how big is the config file and what else
is on the partition? Can you show me the output of 'df' when you start,
and when you do this a few times? If you remove the old file first, what
does 'df' say then, before you write the new one?

-- 
dwmw2




More information about the linux-mtd mailing list