Superblock / date problems (also posted in news://alt.os.linux.suse)

Hi all

Booted my machine this evening to find superblock errors resulting from a
calendar set several years / months (May 2013) in the future. Now, I can
see how to set the date both forward and back via yast to enable me to
boot, but this is going to be tedious for the next 3 and a bit years. How
can I reset the superblock so that it has a nicer date to enable clean
booting each time?

No problems on the disk so far as I can tell (fsck.ext4 / smartctl show no
errors)

Using 11.3, kernel 2.6.34.7-0.5, not sure what other info may be useful

Stephan

you got a good answer in the newsgroup…

QUOTE-----------------------------------

> not sure what other info may be useful

The exact error messages for starters…
tune2fs -T might be what you are looking for.

END QUOTE-------------------------------


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

What if there were no hypothetical questions?

[QUOTE=DenverD;2277450]you got a good answer in the newsgroup…

QUOTE-----------------------------------

> not sure what other info may be useful

The exact error messages for starters…
tune2fs -T might be what you are looking for.

END QUOTE-------------------------------

Yes, I know. Have just checked there.

Thanks

When you reboot, the hardware clock should be set by to your system clock. Check your BIOS to see what date the BIOS is using. Set it to the correct time.

I had a problem with a bios clock because I was dual booting Win and Linux but on one system it used daylight savings while the other didn’t. That caused the hwclock to be reset every reboot and superblocks. After I managed to synchronize the 2 OS clocks no more superblocks.

You should be able to use the “hwclock” command to set the hardware clock to system time, especially if you’re using NTP to keep the correct time.