Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-27 Thread Charles Steinkuehler
On 3/26/2014 10:22 PM, Yiling Cao wrote: Thanks Brandon for your experience. I do agree with that better to put whole disk read only. But how do iPhone and Android survive? Esp for those Android phones? They are very prone to sudden power removal as well. What? These devices are battery

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-27 Thread Yiling Cao
Thanks for your reply. On Thu, Mar 27, 2014 at 8:41 PM, Charles Steinkuehler char...@steinkuehler.net wrote: On 3/26/2014 10:22 PM, Yiling Cao wrote: Thanks Brandon for your experience. I do agree with that better to put whole disk read only. But how do iPhone and Android survive? Esp

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-27 Thread Yiling Cao
When there are very small time window to update the content in flash. do you choose to: 1. initially mount as ro, remount as rw, write your changes and remount back to ro? OR 2. just mount as rw to boot up? On Thu, Mar 27, 2014 at 8:47 PM, Yiling Cao yiling@gmail.com wrote: Thanks for

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-27 Thread John Syn
From: Brandon I brandon.ir...@gmail.com Reply-To: beagleboard@googlegroups.com Date: Wednesday, March 26, 2014 at 6:46 PM To: beagleboard@googlegroups.com Subject: Re: [beagleboard] eMMC data corruption due to power removal? Here's a good read: http://www.embeddedarm.com/about/resource.php

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-27 Thread David Lambert
mailto:beagleboard@googlegroups.com Subject: Re: [beagleboard] eMMC data corruption due to power removal? Here's a good read: http://www.embeddedarm.com/about/resource.php?item=459 I had a lng discussion about this with a colleague of mine after we started seeing boards die

[beagleboard] eMMC data corruption due to power removal?

2014-03-26 Thread Yiling Cao
Hi I have some my products deployed with am335x with Micron eMMC 2GB, but my products allow users to unplug power as they wish. My linux app very rarely writes to the eMMC. and my /etc/fstab specifies /var/log and /tmp to tempfs; fstab mount all partitions with noatime properties. But around 2

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-26 Thread Sungjin Chun
How about making system partition be mounted as read-only and data partition be mounted after booting and checking? In this case, only data partition has possibility of corruption. Sent from my iPad On Mar 26, 2014, at 9:53 PM, Yiling Cao yiling@gmail.com wrote: Hi I have some my

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-26 Thread Brandon I
Here's a good read: http://www.embeddedarm.com/about/resource.php?item=459 I had a lng discussion about this with a colleague of mine after we started seeing boards die. Basically you're eventually doomed unless you mount the whole disk as read only since the wear leveling algorithms

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-26 Thread Yiling Cao
Thanks Brandon for your experience. I do agree with that better to put whole disk read only. But how do iPhone and Android survive? Esp for those Android phones? They are very prone to sudden power removal as well. How do routers handle this issue? they save the settings on different devices? I

Re: [beagleboard] eMMC data corruption due to power removal?

2014-03-26 Thread Yiling Cao
Anyway to make monuting do fsck before mounting? Shall I edit fstab command line or ? On Thu, Mar 27, 2014 at 11:22 AM, Yiling Cao yiling@gmail.com wrote: Thanks Brandon for your experience. I do agree with that better to put whole disk read only. But how do iPhone and Android survive?