mtd + jffs2 error "No space left on device"

Michel Fidelis michel.fidelis at gmail.com
Mon May 23 14:41:35 EDT 2005


Hello,

I'm trying to mount a jffs2 file system on a MTD partition.
My partition (/dev/mtd1) has 768 KB (0xc0000) (3 flash continuous
sectors of 256 KB (0x40000) each one).
I'm thinking the problem is with the -p option in the mkfs.jffs2 command.

The steps I have done are:

1)eraseall /dev/mtd1 (if I use the erase command it just erases the
first sector).
2)mkfs.jffs2 -p 0xc0000 -e 0x40000 -d jffs2dir -o jffs2.img (the image
is created without erros)
3)cp jffs2.img /dev/mtd1 (it executes without erros)
4)mount -t jffs2 /dev/mtdblock1 /mnt (it executes without erros)

However, when I try to create some file on the /mnt file system I
receive the following error: No space left on device.

The df /mnt output  is:

Total 768 KB
free 0 KB
total nodes 0 KB
free nodes 0 KB

I'm working with a Motorola m5272c3 board which has an AMD Am29PL160C
flash memory (2 MB). I'm using Kernel 2.4.x.

Can anybody help me?




More information about the linux-mtd mailing list