TheBlueWizard | how do I force a fsck upon rebooting? I googled and it said "sudo touch /forcefsck", but upon rebooting that file got deleted, but fsck is not performed | 03:20 |
---|---|---|
gnarface | what filesystem, TheBlueWizard? | 03:27 |
gnarface | and are you sure it didn't just succeed really fast because there was no work to do? | 03:30 |
gnarface | my google searches suggest you can use tune2fs to set the counter to 1, which should fsck every reboot | 03:31 |
gnarface | that's only for ext2/3/4 though | 03:31 |
gnarface | other filesystems might need different treatment | 03:31 |
TheBlueWizard | ext3 and it just fast executed, if anything. backstory: I was working on my computer when I was hit with a one second blackout. It of course rebooted, did a journal recovery and proceed to boot up into a GUI login screen. Just when I am about to log back in, I'm hit with another blackout, which this time lasted nearly 3 hours | 03:33 |
TheBlueWizard | afyer the power is back on, I manually turned my computer on, and this time I didn't see any journal recovery and it just rebooted as if nothing happened. I don't trust this behavior | 03:34 |
gnarface | i don't blame you | 03:36 |
gnarface | i believe that the tune2fs tools can also be used to check the counter and see when the last time it thinks it fscked was too though | 03:36 |
gnarface | or you could just run fsck manually | 03:37 |
TheBlueWizard | by the way, I'm a bit surprised by how hard it is to find certain instructions :-[ I'll look into tune2fs | 03:37 |
TheBlueWizard | need to do it on root | 03:37 |
gnarface | a live image is useful to keep around for such times | 03:37 |
TheBlueWizard | directory, that is | 03:37 |
gnarface | make sure it has the right version of tune2fs though | 03:37 |
gnarface | older versions are known to silently corrupt ext4 | 03:37 |
TheBlueWizard | ok | 03:37 |
gnarface | i feel you on the 1-second blackouts though. we don't have a good software solution for this. you need a battery backup | 03:38 |
gnarface | it's not just about data loss, those power grid hiccups are super bad for your hardware | 03:39 |
* TheBlueWizard nods | 03:57 | |
TheBlueWizard | despite this, I don't see any real evidence of problems...I guess the journaling did a good job of keeping things clean. Still, it's best to fsck just to be safe | 03:59 |
gnarface | it should say that it found clean drives somewhere during boot up on screen | 04:02 |
gnarface | ? | 04:02 |
TheBlueWizard | don't remember seeing that....a lot of log messages going by :-) | 04:23 |
gnarface | maybe it doesn't, i'm not sure | 04:40 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!