Re: check filesystem every n mounts (was Re: qt extended stops receiving sms)
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.paul...@gmail.com wrote: 2009/3/19 Robin Paulson robin.paul...@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@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: check filesystem every n mounts (was Re: qt extended stops receiving sms)
tune2fs -c 10 /dev/mtdblock6 as others said, the internal flash uses jiffs2 -- since apparently you never checked or you don't know about different filesystems, i strongly advise you to refrain from such potentially destructive actions until you really know, what you do. i found a few mentions of a fsck.jiffs2 but ever actually encountered a binary. anyway, jiffs2 is supposed to manage that stuff of operations itself, iirc, w/o any need to force it. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
check filesystem every n mounts (was Re: qt extended stops receiving sms)
2009/3/19 Robin Paulson robin.paul...@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@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community