Hi, it could be interesting to attach ubi in read-only mode (for example getting ubi volume info without altering flash). A solution to do that could be to add an argument to UBI_IOCATT ioctl. Another solution should be to have a way to switch MTD_WRITEABLE flags. What do you think a that ? PS : attached a proof of concept for solution 1