Gentoo Archives: gentoo-user

From: Chris Reffett <mellitussum@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: fsck date problem during boot
Date: Thu, 05 Nov 2009 00:28:17
Message-Id: 4AF21C11.5030702@verizon.net
In Reply to: Re: [gentoo-user] Re: fsck date problem during boot by Dale
1 Dale wrote:
2 > Harry Putnam wrote:
3 >
4 >> Stroller <stroller@××××××××××××××××××.uk> writes:
5 >>
6 >>
7 >>
8 >>> On 4 Nov 2009, at 15:45, Harry Putnam wrote:
9 >>>
10 >>>
11 >>>> ...
12 >>>> Somehow the date of last fsck on /boot is seen as `in the future' so
13 >>>> fsck fails on /dev/had1 (/boot).
14 >>>>
15 >>>>
16 >>> The first thing I would want to check is the motherboard battery. Is
17 >>> the time correct if you reboot and immediately enter BIOS?
18 >>>
19 >>>
20 >> That was a pretty good help but apparently not all the story.
21 >>
22 >> When I checked bios, the clock was exactly 1 hr fast (didn't pick up
23 >> the end of daylight saving time I guess).
24 >>
25 >> Reset the clock and tested with 2 more reboots, each time mounting
26 >> /boot and fiddling around with files.
27 >>
28 >> Each time the same failure occurs. I check bios time again. Its
29 >> right.
30 >>
31 >> Here is the (edited) output form fsck
32 >>
33 >> Superblock last mount time (Wed Nov 4 18:05:13 2009,
34 >> now = Wed Nov 4 12:11:49 2009) is in the future.
35 >> Fix<y>? yes
36 >>
37 >> [...]
38 >> ------- --------- ---=--- --------- --------
39 >> Superblock last mount time (Wed Nov 4 18:14:54 2009,
40 >> now = Wed Nov 4 12:18:01 2009) is in the future.
41 >> Fix<y>? yes
42 >>
43 >> [...]
44 >>
45 >> so still somehow, those last mount dates are way wrong.
46 >>
47 >> I hope I'm checking the right thing in bios. Its under cmos and shows
48 >> the time ticking away. You can adjust all columns. with +/-.
49 >>
50 >>
51 >>
52 >
53 > I can't recall exactly how I did this but there is a command to tell the
54 > OS to set the clock on the mobo to the system time when shutting down.
55 > That way everything should sync up when you reboot, except for that tiny
56 > little bit if you shutdown completely for a few days or something. The
57 > command is hwclock. I can't recall where I put the thing because I am
58 > logged into KDE 4 and I can't find nothing in here yet. It's pretty but
59 > it is different so I'm lost.
60 >
61 > I *think* I put it in the rc file or something. I remember the file is
62 > run during shutdown tho. That may help if you know which file that is.
63 >
64 > Hope that helps.
65 >
66 > Dale
67 >
68 > :-) :-)
69 >
70 >
71 >
72 It's in /etc/conf.d/clock (or /etc/conf.d/hwclock for baselayout
73 2/openrc), and it's called CLOCK_SYSTOHC. Set it to yes to write the
74 system time to hardware on shutdown.

Replies

Subject Author
Re: [gentoo-user] Re: fsck date problem during boot Dale <rdalek1967@×××××.com>