check filesystem every n mounts (was Re: qt extended stops receiving sms)
Franky Van Liedekerke
liedekef at telenet.be
Sat Mar 21 11:03:50 CET 2009
tune2fs is for ext2/ext3 formatted partitions. On openmoko, the root
partition is jffs2 formatted, so this can't be used (idem for
fsck.ext2/3).
Franky
On Sat, 21 Mar 2009 16:16:43 +1300
Robin Paulson <robin.paulson at gmail.com> wrote:
> 2009/3/19 Robin Paulson <robin.paulson at gmail.com>:
> >> If it is the same for you (I mean you use QText from uSD) try fsck.
> >
> > i've been having the same problem with .12 installed on internal
> > flash
> >
> > as it's internal flash and not microsd, i can't take it out and
> > check it in my laptop, and i recall there are issues with fsck'ing
> > a mounted filesystem - how can i check it without causing problems?
> > is there a way to autocheck it at boot?
>
> ok, in answer to my own question, i did some research on filesystem
> checking, and discovered 'tune2fs' is the programme i need to set the
> fs to be checked at regular intervals
>
> this is the command i came up with, i.e. to check the internal flash
> every 10 mounts
>
> tune2fs -c 10 /dev/mtdblock6
>
> i chose mtdblock6, as it's the filesystem listed in fstab, which is
> mounted to /
>
> when i run this, it gives me an error:
> tune2fs: Bad magic number in super-block while trying to
> open /dev/mtdblock6
>
> which i don't entirely understand. any suggestions what's going on
> here?
>
> cheers
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
More information about the community
mailing list