2OF1 · the depletionmode zineLinkedIn · X
← back to the issue

11 July 2010

Mounting jffs2 on Ubuntu

Originally published on the old depletionmode / 2of1 blog (archived copy).

How to mount a jffs2 image on ubuntu…

Install prerequisite packages:

listing text
sudo apt-get install mtd-tools

Load kernel modules (note that you can adjust the size of the mtd device while loading mtdram):

listing text
sudo modprobe mtd
sudo modprobe jffs2
sudo modprobe mtdram total_size=16384 erase_size=512
sudo modprobe mtdchar
sudo modprobe mtdblock

Load jffs2 image into mtd block device:

listing text
sudo dd if=firmware.jffs2 of=/dev/mtd0

You are now ready to mount the image:

listing text
sudo mkdir /mnt/image
sudo mount -t jffs2 /dev/mtdblock0 /mnt/image

→ end of entry

2/1
@depletionmode
security research & systems engineering