running out of space dd'ing JFFS2 image to /dev/mtdblock/0
Josh Boyer
jdub at us.ibm.com
Mon Jan 31 10:21:37 EST 2005
On Mon, 2005-01-31 at 10:14 -0500, Robert P. J. Day wrote:
> just for curiosity's sake, after i build a JFFS2 image using
> mkfs.jffs2, i want to mount out to verify its contents. to do that, i
> use a recipe i patched together a while back involving loading the
> appropriate modules, creating /dev/mtdblock/0, dd'ing the image to
> that device, then mounting it.
>
> however, this morning, in trying this with a larger-than-normal
> JFFS2 image, i get:
>
> # dd bs=4096 if=soefsimage of=/dev/mtdblock/0
> # dd: writing `/dev/mtdblock/0': No space left on device
> 1025+0 records in
> 1024+0 records out
>
> IOW, it dies after 4M. is this a limit imposed by the ramdisk limit
> in the kernel configuration? is this a configurable parameter at
> module load time? thanks for any pointers.
If you are using mtdram.c, it should be a module parameter. Try setting
total_size to something larger.
josh
More information about the linux-mtd
mailing list