Talk:Modifying the root image

The roots.jffs2 for the n900 cannot be mounted this way: file doesn't recognize it as a jffs2 filesystem and trying to mounting it floods syslog with these messages:

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x4255 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000003c: 0x844e instead
Empty flash at 0x00000040 ends at 0x00000200
....
....

Empty flash at 0x001a0a9c ends at 0x001a0aa0
Empty flash at 0x001a0b94 ends at 0x001a0b98
Empty flash at 0x001a0d54 ends at 0x001a0d58
Empty flash at 0x001a11b4 ends at 0x001a11b8
Empty flash at 0x001a1494 ends at 0x001a1498
Empty flash at 0x001a157c ends at 0x001a1580
....
....
Empty flash at 0x005040cc ends at 0x005040d0
Old JFFS2 bitmask found at 0x0050435c
You cannot use older JFFS2 filesystems with newer kernels
Empty flash at 0x00504664 ends at 0x00504668
....
....
Empty flash at 0x091adfa4 ends at 0x091adfa8
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 1166

Maybe it's encrypted?

Nope, it's just a different filesystem (UBIFS).

Well, they shouldn't call it jffs2 then, anyway see this tmo thread:

http://talk.maemo.org/showthread.php?t=35554