SD Card corruption is something I've struggled with with the Raspberry Pi. I know that a "sudo halt" is the proper way to shut it down; not necessarily an option with an unstable power supply though. Is there a reasonable way to bullet-proof the Pi for, say, battery-power operations or other situations where power supply may be unreliable?
It might be better to ask this question at <a href="http://raspberrypi.stackexchange.com/" rel="nofollow">http://raspberrypi.stackexchange.com/</a> but you'll probably want to provide more details.