Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jul 2004 22:09:04 -0400
From:      Rajarajan Rajamani <rr@pcp220432pcs.elkrdg01.md.comcast.net>
To:        Murat Ustuntas <ustuntas@bimel.com.tr>;, freebsd-questions@freebsd.org
Subject:   Re: truss command on 5.2.1-p9
Message-ID:  <20040710020904.GA1823@pcp220432pcs.elkrdg01.md.comcast.net>
In-Reply-To: <40ECF1DC.8080101@bimel.com.tr>
References:  <40ECF1DC.8080101@bimel.com.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 08, 2004 at 10:03:56AM +0300, Murat Ustuntas wrote:
> I need to truss command on FreeBSD 5.2.1-p9. But, if
> I want to run the command truss says me:
>    # truss /usr/sbin/sshd
>    truss: cannot open /proc/8668/mem: No such file or directory
>    truss: cannot open /proc/curproc/mem: No such file or directory
> 
> sshd process is running, and in the proc directory,
> i have the number 8668 and mem too. What is the problem? How
> can I fix that? (I dont know that this is a bug or not :( )
> 
I encountered the same problem some months ago and am cut pasting
from a post that proved helpful.

You don't have a process filesystem mounted on /proc.
Execute the following

kldload procfs
mount_procfs /dev/procfs /proc

--
RR



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040710020904.GA1823>