No space left on almost empty JFFS2 filesystem

Paul van Gool paul.vangool at
Wed Jun 25 11:48:15 EDT 2003


I have created an small and almost empty JFFS2 filesystem and have put it
on my flash. The image is padded to 128K and there should be space left.
When I mount it though the filesystem shows up as full. Any hints where to

I created the image with:

mkfs.jffs2 --pad --little-endian --squash -e 0x20000 -d /home/vangool/jffs -o jffs.img

/home/vangool/jffs contains:

[vangool at sb-lnx3 vangool]$ ls -l /home/vangool/jffs
total 16
-rwxr-xr-x    1 vangool  develop     11769 Jun 25 07:49 hello
-rw-r--r--    1 vangool  develop       158 Jun 25 07:49 hello.c

When I mount it on my dev board I see:

# mount -t jffs2  /dev/mtdblock4 /mnt/jffs                                      
# df                                                                              
Filesystem           1k-blocks      Used Available Use% Mounted on              
rootfs                    7931      3682      4249  46% /                       
/dev/root                 7931      3682      4249  46% /                         74730396   3471336  67462904   5% /mnt/camb-lnx1            74754492   5980872  64976256   8% /mnt/camb-lnx2          
/dev/mtdblock4             128       128         0 100% /mnt/jffs

And as a result:

# /mnt/jffs/hello > /mnt/jffs/hello.out                                         
cannot create /mnt/jffs/hello.out: No space left on device                      

In case it's important, I flashed the image using Redboot:

load -r -v -b 0x8F000000 camb-devbrd1/jffs.img -m TFTP -h
fis create jffs -f 0x80300000 -l 0x20000 -b 0x8F000000 -r 0x8F000000

Thanks in advance.

Paul van Gool                                               Rincon Networks
paul.vangool at                              (805)-705-1442

More information about the linux-mtd mailing list