Gentoo Archives: gentoo-dev

From: Terry Chan <tchan@××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] uptime problems?
Date: Wed, 12 Dec 2001 11:17:51
Message-Id: 20011212111803.A52557@enteract.com
1 Is anyone else have a problem with running the uptime command?
2
3 On a clean install gentoo r11 box (currently upgraded to latest portage
4 and baselayout) running uptime gives:
5
6 uptime: couldn't get boot time: No such file or directory
7
8 drobbins suggested using strace, which gives a lot of stuff but the
9 important part is:
10
11 open("/var/run/utmp", O_RDWR) = 3 (I think this means it successfully
12 opened the file)
13
14 then a lot of seeks and reads that don't seem to find whatever uptime
15 is looking for inside the above file.
16
17 The end of the strace gives the above message "couldn't get boot time: ..."
18
19 Does anyone know how to fix this problem of not being able to get info
20 from "uptime" ?
21
22 Thanks,
23
24 Terry Chan

Replies

Subject Author
Re: [gentoo-dev] uptime problems? Martin Schlemmer <azarah@g.o>
Re: [gentoo-dev] uptime problems? David Edwards <david.edwards@××××××××××.com>