public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] uptime problems?
@ 2001-12-12 17:18 Terry Chan
  2001-12-12 17:26 ` Martin Schlemmer
  2001-12-12 17:31 ` David Edwards
  0 siblings, 2 replies; 3+ messages in thread
From: Terry Chan @ 2001-12-12 17:18 UTC (permalink / raw
  To: gentoo-dev

Is anyone else have a problem with running the uptime command?

On a clean install gentoo r11 box (currently upgraded to latest portage
and baselayout) running uptime gives:

uptime: couldn't get boot time: No such file or directory

drobbins suggested using strace, which gives a lot of stuff but the
important part is:

open("/var/run/utmp", O_RDWR)  = 3  (I think this means it successfully 
                                     opened the file)
                                     
then a lot of seeks and reads that don't seem to find whatever uptime
is looking for inside the above file.

The end of the strace gives the above message "couldn't get boot time: ..."

Does anyone know how to fix this problem of not being able to get info
from "uptime" ?

Thanks,

Terry Chan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] uptime problems?
  2001-12-12 17:18 [gentoo-dev] uptime problems? Terry Chan
@ 2001-12-12 17:26 ` Martin Schlemmer
  2001-12-12 17:31 ` David Edwards
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Schlemmer @ 2001-12-12 17:26 UTC (permalink / raw
  To: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

On Wed, 2001-12-12 at 19:18, Terry Chan wrote:

/proc mounted ?


> Is anyone else have a problem with running the uptime command?
> 
> On a clean install gentoo r11 box (currently upgraded to latest portage
> and baselayout) running uptime gives:
> 
> uptime: couldn't get boot time: No such file or directory
> 
> drobbins suggested using strace, which gives a lot of stuff but the
> important part is:
> 
> open("/var/run/utmp", O_RDWR)  = 3  (I think this means it successfully 
>                                      opened the file)
>                                      
> then a lot of seeks and reads that don't seem to find whatever uptime
> is looking for inside the above file.
> 
> The end of the strace gives the above message "couldn't get boot time: ..."
> 
> Does anyone know how to fix this problem of not being able to get info
> from "uptime" ?
> 
> Thanks,
> 
> Terry Chan
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] uptime problems?
  2001-12-12 17:18 [gentoo-dev] uptime problems? Terry Chan
  2001-12-12 17:26 ` Martin Schlemmer
@ 2001-12-12 17:31 ` David Edwards
  1 sibling, 0 replies; 3+ messages in thread
From: David Edwards @ 2001-12-12 17:31 UTC (permalink / raw
  To: gentoo-dev

On Wed, Dec 12, 2001 at 11:18:03AM -0600, Terry Chan wrote:
> Is anyone else have a problem with running the uptime command?
> 
> On a clean install gentoo r11 box (currently upgraded to latest portage
> and baselayout) running uptime gives:
> 
> uptime: couldn't get boot time: No such file or directory
> 
> drobbins suggested using strace, which gives a lot of stuff but the
> important part is:
> 
Yep, I went through the same thing. I emerge'd sh-utils and it was fixed. It
appears the one that gets installed with baselayout(?) does not access
/proc.

-- 
David Edwards
ALH Systems, Inc.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-12 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-12 17:18 [gentoo-dev] uptime problems? Terry Chan
2001-12-12 17:26 ` Martin Schlemmer
2001-12-12 17:31 ` David Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox