Idea: Auto fix SD card corruption
|
8th Feb, 2013, 07:30 PM
Post: #1
|
|||
|
|||
Auto fix SD card corruption
Yesterday i stumbled on a message of one of our users about an SD card corruption. This was due to a sudden removal of the power cable. Now and then, i experience the SD card corruption as well. Mostly because i have weeks in which i reboot my RPi like 100+ times to test new features. My idea was to let a script test the state of the SD card before it was mounted as the root partition so we know if we can expect corruption and if so, fix it automatically.
I have several ideas for this, but the one i would like to try first, is also the simplest. So, i'm especially looking for people who experience the SD card corruption a lot (due to filesystem incosistencies), and that like to test something. The idea is simple. Instead of asking the user to log-in into the rescue kernel to run fsck, i want to force fsck by default, so it fixes the FS without notice. This can be enabled by running this command: Code: sudo sed -i 's/#FSCKFIX=no/FSCKFIX=yes/g' /etc/default/rcS && grep "FSCKFIX=yes" /etc/default/rcS | wc -l The command was successfull if it outputted a 1 Please stress the SD card a little by suddenly removing the power plug and by enabling Turbo Mode etc. Stuff that would normally be a risk of corruption. pilight - modular domotica solution
|
|||
« Next Oldest | Next Newest »
|