truss command on 5.2.1-p9
Rajarajan Rajamani
rr at pcp220432pcs.elkrdg01.md.comcast.net
Fri Jul 9 19:09:14 PDT 2004
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
More information about the freebsd-questions
mailing list