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 |