FreeBSD Mount /proc File System Command

2009-05-13 13:40:37来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


Q.Few commands under
[url=javascript:;]FreeBSD[/url]
depends upon
[url=javascript:;]procfs[/url]
(process file system). FreeBSD does not
[url=javascript:;]mount[/url]
it by default. How do I mount /proc (procfs) from a
[url=javascript:;]shell[/url]
prompt?
A.Yes few commands will not work, as procfs has to be mounted. The process file system, or procfs, implements a view of the system process table inside the file system. It is normally mounted on /proc, and is required for the complete operation of programs such as strace, ps and w.
Task: Mount procfs from a shell prompt
To mount a procfs file system on /proc, login as the root user and enter:
# mount -t procfs proc /proc
# mount
Sample output:
/dev/ad4s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad4s1d on /tmp (ufs, local, soft-updates)
/dev/ad4s1g on /usr (ufs, local, soft-updates)
/dev/ad4s1e on /var (ufs, local, soft-updates)
/dev/ad6s1 on /disk1 (ufs, local, soft-updates)
/dev/ad4s1f on /webroot (ufs, local, soft-updates)
devfs on /usr/home/j/mroot/dev (devfs, local)
/usr/home/j/mroot on /usr/home/j/www (nullfs, local, read-only)
/usr/home/js/www on /usr/home/j/www/s (nullfs, local)procfs on /proc(procfs, local)
Open /etc/fstab - file system table, enter:
# vi /etc/fstab
Append following line so that procfs get mounted automatically at boot time:
proc /proc procfs rw 0 0
Save and close the file.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_557894.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:ZFS时代FreeBSD系统的数据冗余策略

下一篇:利用freebsd-update升级freeb