August 12, 2004

cramfs file size limit

cramfs default maximum file size is 16M (16777215)
if file size > 16M, you'll get this message when mkcramfs
warning: file sizes truncated to 16MB (minus 1 byte).

it's possible to make limit larger!

modify to value CRAMFS_SIZE_WIDTH in kernel source
include/linux/cramfs_fs.h
(default #define CRAMFS_SIZE_WIDTH 24)

after I tested, maximum value is 28, in other word,
file size limit 268435455 (256MB)

don't forget to modify mkcramfs, get cramfs tools and
change the value as above (modify /usr/include/linux/cramfs_fs.h and rebuid mkcramfs), use modified mkcramfs to make cram files.

note. CRAMFS_SIZE_WIDTH in kernel and mkcramfs must be the same,
or cramfs will not work.

Posted by pank at August 12, 2004 04:50 PM
Comments

modify /usr/include/linux/cramfs_fs.h and rebuid mkcramfs

Posted by: pank at February 28, 2006 12:37 AM

Would you please give you more information on how to modify mkcramfs... Thanks.

Posted by: thuy at October 21, 2005 04:47 PM

Good

Posted by: jenn at January 25, 2005 03:54 PM
Post a comment













Remember personal info?