You are not logged in.

#1 2012-04-10 17:17:44

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 180

Mount jffs2 file

Hello,

I'd like to mount a jffs2 file I have extracted but if fails.

$ file jffsfile 
jffsfile: Linux jffs2 filesystem data little endian
# modprobe jffs2
# mount -t jffs2 -o loop jffsfile /mnt 
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

$ dmesg | tail
...
[38009.042102] MTD: Attempt to mount non-MTD device "/dev/loop0"

I have found these explanations but with no more success

# modprobe mtdram total_size=65536 erase_size=64
# modprobe mtdblock
# dd if=jffsfile of=/dev/mtdblock0 
17861+1 records in
17861+1 records out
9145140 bytes (9.1 MB) copied, 0.0859552 s, 106 MB/s
# mount -t jffs2 /dev/mtdblock0 /mnt 
mount: /dev/mtdblock0: can't read superblock
# dmesg | tail
[38414.263985] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x008a001c: 0x5634 instead
[38414.263987] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x008a0020: 0xe1f6 instead
[38414.263989] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x008a0024: 0xe1b4 instead
[38414.263991] Further such events for this erase block will not be printed
[38414.264323] Old JFFS2 bitmask found at 0x008ad4d8
[38414.264325] You cannot use older JFFS2 filesystems with newer kernels
[38414.264567] Old JFFS2 bitmask found at 0x008b6fb8
[38414.264568] You cannot use older JFFS2 filesystems with newer kernels
[38414.264887] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[38414.264889] empty_blocks 954, bad_blocks 0, c->nr_blocks 1024

With full dmesg (I may have done twice the command)

Any idea why ?

Thank you

Last edited by martvefun (2012-04-10 17:23:37)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad

Offline

Board footer

Powered by FluxBB