General question about mounting mtdblock device

Riyaz R, Syed Ismail SyedIsmail.RiyazR at trane.com
Mon Jun 23 07:57:36 PDT 2014


Is it safe to do a flash_eraseall and nandwrite a jffs2 image on a mtdblock that is not unmounted cleanly, then mount to a new mount point.
i.e,
1)mount -t jffs2 /dev/mtdblock2 /mnt/1/
2)flash_eraseall -j /dev/mtd2
3)nandwrite -p /dev/mtdblock2 jffs2_image
4)mount -t jffs2 /dev/mtdblock2 /mnt/1/

The mount point is different. This is just a workaround to account for *if* umount doesn't work.

Will the 2nd mount result in nand corruption, since both are accessing same nand space. Specifically, will reboot in such a scenario cause problems, since both will try to sync and unmounts at the time.

--Ismail

________________________________

The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.



More information about the linux-mtd mailing list