Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] Auto fix SD card corruption
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Auto fix SD card corruption
8th Feb, 2013, 07:30 PM
Post: #1
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
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
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Auto fix SD card corruption - CurlyMo - 8th Feb, 2013 07:30 PM
RE: Auto fix SD card corruption - raspberry_pd - 10th Feb, 2013, 04:06 AM
RE: Auto fix SD card corruption - CurlyMo - 10th Feb, 2013, 04:11 AM
RE: Auto fix SD card corruption - nvd - 10th Feb, 2013, 04:48 AM
RE: Auto fix SD card corruption - Uncle_Tubbie - 10th Feb, 2013, 04:55 AM
RE: Auto fix SD card corruption - CurlyMo - 10th Feb, 2013, 06:03 AM
RE: Auto fix SD card corruption - Scanto - 12th Feb, 2013, 06:28 PM
RE: Auto fix SD card corruption - CurlyMo - 12th Feb, 2013, 07:00 PM
RE: Auto fix SD card corruption - Scanto - 12th Feb, 2013, 07:08 PM
RE: Auto fix SD card corruption - CurlyMo - 12th Feb, 2013, 07:13 PM
RE: Auto fix SD card corruption - Scanto - 12th Feb, 2013, 11:50 PM
RE: Auto fix SD card corruption - namtih - 14th Feb, 2013, 04:41 AM
RE: Auto fix SD card corruption - CurlyMo - 14th Feb, 2013, 05:38 AM
RE: Auto fix SD card corruption - Scanto - 14th Feb, 2013, 09:28 AM
RE: Auto fix SD card corruption - CurlyMo - 14th Feb, 2013, 09:34 AM
RE: Auto fix SD card corruption - 2twisty - 22nd Feb, 2013, 03:15 AM
Re: Auto fix SD card corruption - BartOtten - 23rd Feb, 2013, 09:22 PM
RE: Auto fix SD card corruption - CurlyMo - 23rd Feb, 2013, 09:31 PM
Re: Auto fix SD card corruption - BartOtten - 24th Feb, 2013, 07:20 PM
RE: Auto fix SD card corruption - b0rna - 5th Mar, 2013, 04:34 PM
RE: Auto fix SD card corruption - CurlyMo - 5th Mar, 2013, 06:24 PM
RE: Auto fix SD card corruption - b0rna - 6th Mar, 2013, 10:02 AM
RE: Auto fix SD card corruption - Sim1 - 7th Mar, 2013, 06:15 AM
RE: Auto fix SD card corruption - gizi - 17th Mar, 2013, 10:10 AM
RE: Auto fix SD card corruption - gizag - 21st Mar, 2013, 06:48 PM
RE: Auto fix SD card corruption - CurlyMo - 21st Mar, 2013, 07:32 PM
RE: Auto fix SD card corruption - Evansans - 9th Oct, 2019, 02:06 PM
RE: Auto fix SD card corruption - deHakkelaar - 12th Oct, 2019, 02:54 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 24th May, 2025, 07:53 PM Powered By MyBB, © 2002-2025 MyBB Group.