ubifs image file confusion!

Nancy nancydreaming at gmail.com
Tue May 13 08:52:07 EDT 2008


> dd if=/dev/mtd5 of=file
> or
> dd if=/dev/ubi0_0 of=file
dd have to specify the count, blk...... I mean read size, It is
difficult to get the size.
And the output file is large. We need a small output file (only
contain neccessary data).
Cause those files will be offered online. suppose, the /dev/mtd5 is
1G, or /dev/ubi0_0 is 500M
but the neccessary data only 10 or 100MiB. That waist too many space
and our bandwidth which is unacceptable.

> >       VFAT give me a hint, the file system reserved space are all
> > 0x00. Like you allocate a space: reserved=malloc( 3LEBsize );  Though
> > you do not use it now, but you can init it memset(reserved, 0x00,
> > 3LEBsize);  And if like that, the file system reserved space will
> > become mapped.
> >       Would you mind do this?
>
> Sorry, I still do not understand what is this all about. I do not
> understand the problem.
I mean will you please make the ubifs.img(generated by mkfs.ubifs)
contains all mapped LEBs? fill all ubifs.img's unmapped LEBs with
0x00. Is that possible?

-- 
Best wishes,
Nancy



More information about the linux-mtd mailing list