Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: Gentoo-Dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] uptime problems?
Date: Wed, 12 Dec 2001 11:28:10
Message-Id: 1008177992.3441.8.camel@nosferatu.lan
In Reply to: [gentoo-dev] uptime problems? by Terry Chan
1 On Wed, 2001-12-12 at 19:18, Terry Chan wrote:
2
3 /proc mounted ?
4
5
6 > Is anyone else have a problem with running the uptime command?
7 >
8 > On a clean install gentoo r11 box (currently upgraded to latest portage
9 > and baselayout) running uptime gives:
10 >
11 > uptime: couldn't get boot time: No such file or directory
12 >
13 > drobbins suggested using strace, which gives a lot of stuff but the
14 > important part is:
15 >
16 > open("/var/run/utmp", O_RDWR) = 3 (I think this means it successfully
17 > opened the file)
18 >
19 > then a lot of seeks and reads that don't seem to find whatever uptime
20 > is looking for inside the above file.
21 >
22 > The end of the strace gives the above message "couldn't get boot time: ..."
23 >
24 > Does anyone know how to fix this problem of not being able to get info
25 > from "uptime" ?
26 >
27 > Thanks,
28 >
29 > Terry Chan
30 > _______________________________________________
31 > gentoo-dev mailing list
32 > gentoo-dev@g.o
33 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
34 --
35
36 Martin Schlemmer
37 Gentoo Linux Developer, Desktop Team Developer
38 Cape Town, South Africa