cramfs file size limit

| | Comments (3)

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
(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.


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

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

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on August 12, 2004 4:50 PM.

Some regex example was the previous entry in this blog.

Windows XP Unattended Installation is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.