[mythtv-users] ext4 fsck after power outage

Ian Clark mrrooster at gmail.com
Fri Apr 9 12:42:03 UTC 2010


On 9 April 2010 13:10, Phill Edwards <philledwards at gmail.com> wrote:

> [snip]
>
> I'm a little wary of adding these lines because I read that doing this
> with a journalled file system like ext3 (and therefore ext4?) can
> cause teh file system check to screw things up (see
> http://www.brunolinux.com/04-The_File_System/Auto_Fsck.html)
>
> I suspect that just means it won't rollback the journal, but will always
perform a full consistancy check and fixes (and disgard the journal),
however if myth was recording or updating the DB in either case you could
have problems, journaling just ensures the FS is consistant after a crash,
not the data on it.

Just combine it with regular DB backups and you should be fine. :)
My objective is to have the box do an automatic file system check on

> the ext4 partitions when it powers back on after an unclean shutdown
> with no user input required. If this isn't the correct way, does
> anyone know what is?
>
> I'm afraid I don't know, but as a last resort you could just put the
apropriate fsck commands in rc.local (a bit 'icky' from a sysadmin point of
view I suppose but it'll do what you want.)

Cheers,

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100409/b9f82097/attachment.htm>


More information about the mythtv-users mailing list