FreeBSD Mount /proc File System Command
2009-05-13 13:40:37来源:未知 阅读 ()
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- freebsd7 RAID0, Geom方式 成功 2009-05-13
- netbsd启动gnome失败! 2009-05-13
- 选择FreeBSD的中文编码 2009-05-13
- 提示:bad kernel: arp : 内网IP地址 is on em0 but got rep 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash