View Single Post
Old 04-29-2012, 02:51 PM   #503
kodomo
M92 info archivist
kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.kodomo is no ebook tyro.
 
Posts: 238
Karma: 1398
Join Date: Jun 2008
Device: IRex Iliad 2nd ed., Onyx Boox M92, Onyx Boox Max Lumi
sdc_watchdog

Quote:
Originally Posted by Mono View Post
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!
Attached Files
File Type: zip sdc_watchdog.zip (16.7 KB, 231 views)

Last edited by kodomo; 04-29-2012 at 03:00 PM.
kodomo is offline   Reply With Quote