Is it possible to make pybflash disk readonly?
Posted: Sun Nov 15, 2020 8:51 am
I want make pybflash disk to readonly mode, what command can be used to implement this function?
Please see the new forum at
https://forum.micropython.org/
os.mount() takes a `readonly` kwarg.shaoziyang wrote: ↑Sun Nov 15, 2020 8:51 amI want make pybflash disk to readonly mode, what command can be used to implement this function?
I tried it the way you did, it does change to read-only mode in micropython, but it's still writable in windows.jimmo wrote: ↑Sun Nov 15, 2020 11:11 amos.mount() takes a `readonly` kwarg.shaoziyang wrote: ↑Sun Nov 15, 2020 8:51 amI want make pybflash disk to readonly mode, what command can be used to implement this function?
In boot.py you can unmount /flash and then re-mount it readonly.
I don't know much about Windows, but here are some pointers that might help:shaoziyang wrote: ↑Mon Nov 16, 2020 2:25 amI tried it the way you did, it does change to read-only mode in micropython, but it's still writable in windows.