Thursday, September 19, 2013

How to mount a JFFS2 image

Mount a JFFS2 image:

$ sudo su
$ mkdir /mnt/image
$ modprobe mtdram total_size=deviceSize erase_size=128
$ modprobe mtdblock
$ dd if=jffs2_image.bin of=/dev/mtdblock0
$ mount -t jffs2 /dev/mtdblock0 /mnt/image
$ cd /mnt/image

deviceSize: size of the virtual MTD device in Kb (choose a size greater than the image size)

This procedure is also useful when you need to emulate an MTD device for testing or other purposes.

2 comments:

Hallebose said...

Useful

emilyjones said...

Mastering AutoCAD requires precision, technical skills, and a deep understanding of complex tools and commands. Many students find themselves overwhelmed with tight deadlines and challenging projects. That is why accessing Online AutoCAD Assignment Help UK has become the smartest choice for students aiming to excel academically. At Rapid Assignment Help, our qualified experts provide step-by-step guidance on 2D drafting, 3D modelling, mechanical drawings, and more. With affordable pricing, plagiarism-free work, and 24/7 support, we ensure every student delivers outstanding results. Take the first step towards academic excellence and connect with our experts today!