Quote:
Originally Posted by Mono
There is also a problem if SD card is write-protected. M92 seems to work (saving things), but nothing is saved and no warning is issued.
I have micro SD card in SD adapter and when inserting to M92 it may happen that the switch on the adapter moves to lock possition.  There is no means to get known, things do not work and no work is saved.  (((
|
Hi Mono.
If you're interested:
I hacked a set of scripts to reduce the chance of this happening.
I won't guarantee them to work in all cases, but they do the trick for me

.
I've attached it to this post. (as usually: backup, be careful about your data, folks - I won't accept liability for lost data or non-booting devices, although I did my best to make things safe and don't see things that could happen which are not fixable

)
(Note: They leave the choice not to modify boot scripts, if you feel uneasy about that)
Please read the entire README file before using the scripts.
They rely on a previously installed set of script_ui_primitives (you can find them in the software wiki or the developer thread).
The scripts umount the SDCard directory, if a nasty user simply removes the card without properly using the menu,
they check whether the card is writable when a card is inserted,
they check (by default) whether there's more than 10MB left every 5 minutes (modify variables to change this),
and issue warnings, if something's found amiss.
Cheers and enjoy!