[ELDK] fsck and no RTC

Wolfgang Denk wd at denx.de
Fri Apr 30 11:34:18 CEST 2010

Dear "Chris Alfred",

In message <7C3E97B087B24ABBA9CCB414040E6CCB at kos> you wrote:
> We have a 5200 based board with no RTC (having a battery is not an 
> option for this application). We use NTP for time.
> When / is mounted, as the time has not yet been set by NTP, and so the 
> super block is deemed to be last modified in the future - so an fsck 
> is always forced. But NTP uses the file system for its configuration 
> and operation.
> Any suggestions how to resolve this conundrum?

Use ntpdate to set the date before fsck is run.

Best regards,

Wolfgang Denk

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
SW engineering is a race between programmers trying  to  make  better
idiot-proof programs and the universe producing greater idiots.

More information about the eldk mailing list