Re: e2fsck problems :o



Ron wrote:
On May 15, 5:06 pm, GPS <georg...@xxxxxxxxxxxx> wrote:
roN wrote:
Hi There,
We have developed an embedded application utilizing an ext2 filesystem on
a flash card. This has worked fine without any major problems. Now I
thought in order to obbserve our devices, we should run a e2fsck on a
regular basis returning the results.
Now our device has two partitions, one is the boot partition (hda1) and
the other one (hda2) is where '/'is mounted. So one the booted device I
should be able to run "e2fsck -n /dev/hda2", right?
Thanks for your reply - I actually didn't check well enough, the new
versions are using ext3 fs already for / but i get the exact same
results with it when using e2fsck on it...:(

ext3 = ext2 + journal
So don't expect e2fsck to work much differently on problems that can't be
fixed with a journal that was there before the change.

fsck should never be run on a mounted device, as far as I could see in your
original post, you booted into the distribution on the flash and then run the
fsck, which would indicate that the device is mounted.

I do suggest you rewrite your init script so that a fsck is done while the
root file system still is read only and store the result in ramfs until you
have finished and then mail the resuult or what ever you do.

It could be good to look at the other file systems, they tend to be better as
long as you don't think of needing to use file system shrinking.

--

//Aho
.



Relevant Pages

  • Re: e2fsck problems :o
    ... a flash card. ... This has worked fine without any major problems. ... results with it when using e2fsck on it...:( ... long as you don't think of needing to use file system shrinking. ...
    (alt.os.linux)
  • Re: e2fsck problems :o
    ... This is a system design issue - the person who designed your system has ... -run fsck ... Logging over tcp/ip may be a good option, that way you don't write as much to ... the flash card and if you mount directories that has a lot of temporary files ...
    (alt.os.linux)
  • Re: e2fsck problems :o
    ... This is a system design issue - the person who designed your system has ... -run fsck ... Logging over tcp/ip may be a good option, that way you don't write as much to ... the flash card and if you mount directories that has a lot of temporary files ...
    (alt.os.linux)
  • Re: Compact flash programming and specs
    ... >> compact flash card which will be read by a card reader on a laptop. ... > want it to be readable as a disk you need to impose a file system on it. ... > off to buy a copy of some magazine that addresses the embedded systems ... so you might want to see if you can find ads on their website. ...
    (sci.electronics.design)
  • File System On Flash Card
    ... I am working in workbench 2.5 and vxworks 6.3. ... the file system on the flash card and which type of file sytem. ... I am really confused bcz at present i dont have any flash cards to ...
    (comp.os.vxworks)