[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /mnt/flash almost full, but no files in it




----- Original Message ----- 
From: "Anders Blomdell" <anders.blomdell@xxxxxxx.se>
To: "dev-etrax" <dev-etrax@xxxxxxx.com>
Sent: Thursday, September 30, 2004 2:12 PM
Subject: /mnt/flash almost full, but no files in it


> Hi,
> 
> I have problems with a newly flashed DevBoard LX, after reflashing,  
> /mnt/flash is almost full, but without any files in it:
> 
> # df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> rootfs                    2848      2848         0 100% /
> /dev/flash3               2848      2848         0 100% /
> /dev/flash2                384       352        32  92% /mnt/flash
> tmpfs                     3472        48      3424   1% /var
> 
> # uname -a
> Linux AxisProduct 2.4.26 #2 Fri Sep 17 09:40:38 CEST 2004 cris unknown
> 
> A hexdump of flash2.img reveals that only the first 64k are dirty, so  
> who has stolen all the blocks?
> 
> /usr/bin/hexdump flash2.img
> 0000000 1985 e001 002b 0000 6ee6 7d26 0001 0000
> ....
> ....
> 0007f90 93a8 506c ffff ffff ffff ffff ffff ffff
> 0007fa0 ffff ffff ffff ffff ffff ffff ffff ffff
> *
> 0010000 1985 2003 000c 0000 b0b1 e41e ffff ffff
> 0010010 ffff ffff ffff ffff ffff ffff ffff ffff
> *
> 0020000 1985 2003 000c 0000 b0b1 e41e ffff ffff
> 0020010 ffff ffff ffff ffff ffff ffff ffff ffff
> *
> 0030000 1985 2003 000c 0000 b0b1 e41e ffff ffff
> 0030010 ffff ffff ffff ffff ffff ffff ffff ffff
> *
> 0040000 1985 2003 000c 0000 b0b1 e41e ffff ffff
> 0040010 ffff ffff ffff ffff ffff ffff ffff ffff
> *
> 0050000 1985 2003 000c 0000 b0b1 e41e ffff ffff
> 0050010 ffff ffff ffff ffff ffff ffff ffff ffff
> *
> 0060000
> 
> 
> ------------------------------------------------------------------------ 
> ------
>   Anders Blomdell
>   Department of Automatic Control     Email:  
> anders.blomdell@xxxxxxx.se
>   Lund Institute of Technology        Phone: +46 46 222 4625
>   Box 118, S-221 00 Lund, Sweden      Fax:   +46 46 138118

Are you using JFFS2 on a partition with only 6 blocks?
JFFS2 reserves a couple of blocks for garbage collection.
Try changing to JFFS1 instead or increase the JFFS2 partition.

/Johan