Mike Frysinger wrote:
> 
> On Monday 04 May 2009 12:30:09 Roger Andersen wrote:
>> I'm using a Compulab iGLX board with an AMD Geode LX800 CPU running
>> Gentoo.
>> When I power-cycle the board without a clean shutdown (or sometimes even
>> with one), the file system always gets corrupted in some way, and Linux
>> struggles mightily to come back to life.
>>
>> The vendor suggests that I need to modify the Linux installation so that
>> the root file system is mounted read-only - but they offer no clue how to
>> do this (which makes me think they don't know how to do it themselves).
>>
>> I've searched for techniques, and found things are that are close, but so
>> far, no cigar.
>>
>> 1. Is there a standard way to go about this with Gentoo Linux?
>>
>> 2. Am I missing something blindingly obvious here as far as using
>> Gentoo/Linux file systems in embedded systems where the CPU will almost
>> never get any warning before a system reset? I know it's possible to do
>> this successfully but I can't get over the goal line with this iGLX
>> board.
> 
> could you provide some more information ?
> 
>  - what file system format is your rootfs ?
>  - what kind of storage are you using ?  (IDE/PATA/CF/FLASH/....)
>  - what boot loader are you using ?
>  - is the Gentoo install all standard stuff or are you using embedded 
> replacements ?
>  - is it normally read only or do you just want to boot it up initially
> that 
> way ?
> 
> -mike
> 
>  
> 


Mike, thanks for your response.
1. My root file system format is... well, I have conflicting data. 

a. When I boot, the console says:
root (hd0,0)
  Filesystem type is ext2fs, partition type 0x83

b. After I'm up, I see that my /etc/fstab contains:
/dev/sda1  /boot  ext2 noatime 1 2
/dev/sda2  /   ext3   noatime 0 1

c. When I type "mount" I get:
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw, noatime)

2. Storage media is flash

3. Boot loader is GRUB

4. Gentoo install is, as far as I know, all standard stuff, but I got it
from the vendor and they don't provide tons of documentation.

5. The root filesystem is normally read/write, and I want to make it
readonly in an attempt to keep it from being corrupted every stinking time I
power cycle the board. I imagine I'd want to make it read/write again from
time to time to do maintenance on the system.

Hope this helps. Again, the overriding goal is to make this system robust in
the fact of abrupt resets and power cycles. I'm astounded at how little help
the vendor has been in this regard, since anyone who puts Linux on a
computer the size of a credit card has to know it's going to come in for
some dirty resets, and you'd think they'd have cracked that nut before
shipping it, but in this case, not so much...

Thanks -
Roger



-- 
View this message in context: 
http://www.nabble.com/file-system-corruption-on-reset---map-root-file-system-readonly--tp23260810p23490066.html
Sent from the gentoo-embedded mailing list archive at Nabble.com.


Reply via email to