Superblock set in the future, fixing system clock

83

Solution 1

Probably your BIOS battery is failing. This seems to be somewhat common in some models of old laptops. Replacing the battery would probably fix the problem. Another solution that worked for me is to tell e2fsck your clock is broken:

Put the following in /etc/e2fsck.conf:

[options]
broken_system_clock = true

Then you have to get that conf file added to your initramfs.
Put the following into /etc/initramfs-tools/hooks/e2fsck-conf.sh:

#!/bin/sh

PREREQ=""  
prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

. /usr/share/initramfs-tools/hook-functions
CONFFILE=/etc/e2fsck.conf
CONFDIR=`dirname "$CONFFILE"`
if [ -f "$CONFFILE" ]
then 
   mkdir -p ${DESTDIR}${CONFDIR}
   cp $CONFFILE ${DESTDIR}${CONFDIR}
fi

Then execute sudo update-initramfs -u.

Source: Debian user forums. I took the liberty of making the initramfs hook script a bit more verbose. That's purely my stylistic preference.

Solution 2

The answer appears to be fixed here

Basically, Start Terminal with Ctrl+Alt+T. then type in.

sudo apt-get install ntp

Once this has installed, start the service with:

sudo service ntp start
Share:
83

Related videos on Youtube

Danish Adeel
Author by

Danish Adeel

Updated on September 18, 2022

Comments

  • Danish Adeel
    Danish Adeel over 1 year

    I am trying to install Resharper 10.0.2 with VS 2013, I have completed the setup but still unable to see any menu item related to Resharper also found nothing in tools > options. I am running Windows 7.

    I wants to rename my files and master pages in my running project with all references. I have read that resharper will do it properly, is there any other way or help me installing Resharper.

    • SimplySimon
      SimplySimon over 10 years
      Can you tell us what computer system you are using? It could be something as simple as the BIOS battery failure.
    • Bob R
      Bob R over 10 years
      ASUS G750JH Laptop, BIOS G750JHA.202 07/31/2013
  • Bob R
    Bob R over 10 years
    Nope that's not it, this didn't fix it.
  • Sparhawk
    Sparhawk over 9 years
    Brilliant. FWIW this works on small computers such as the Raspberry Pi that lack a hardware clock. Boot time has been reduced from ten minutes to two.