关于4.11, top/pstat等命令出错的解决办法
时间:2007-01-04 10:28:13
来源: 作者:whsong 点击:次 出处:技术无忧
关键字:关于
在此感谢freechoice的帮助特征:
QUOTEroot@5sky(23:57)/boot=> pstat
pstat: undefined symbol: _numvnodes
root@5sky(23:57)/boot=> top
top: nlist failed
解决:
QUOTEMost likely you have /boot on it's own partition. On FreeBSD, /boot should be on the root (/) partition, otherwise it will not be able to use /boot/loader(8) and force the system to fall back directly on the /kernel . To fix this, you need to copy the data out of /boot/ to a directory on / , unmount /boot, remove it from /etc/fstab , then move the contents that were in /boot to the (now plain directory) /boot/ . Once you reboot it should be working normally.
最有可能的是/boot不在他的分区上,在FREEBSD上,/boot应该在root(/)分区,否则他将不会使用/boot/loader(8)并强制系统直接退回到/kernel.要修复这个,你需要将/boot中的数据复制到/分区中的一个目录,umount /boot,移除/etc/fstab中的/boot行,现在将原/boot中的数据到/boot(现在直接是个目录)。当你重启后就会正常工作了
大概意思是系统分区时专用了一个区来存放/boot, 需要将/boot目录以及所有内容放至/分区下.并将/etc/fstab里的有关mount /boot的内容删除.reboot就好了
eg:
CODEroot@5sky(0:30)/boot=> cp -rp /boot /root/ # 备份/boot目录以及其下内容
root@5sky(0:30)/root=> umount /boot # umount boot区
root@5sky(0:30)/root=> cp -rp /root/boot / # 将/boot目录及其内容放至/下
root@5sky(0:27)/boot=> vi /etc/fstab #修改该文档.
# See the fstab(5) manual page for important information on automatic mounts
# of network filesystems before modifying this file.
#
# Device Mountpoint FStype Options Dump Pass#
/dev/da0s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/da0s1e /boot ufs rw 2 2
/dev/da0s1g /tmp ufs rw 2 2
/dev/da0s1h /usr ufs rw 2 2
/dev/da0s1f /var ufs rw 2 2
/dev/acd0c /cdrom cd9660 ro,noauto 0 0
proc
#隐掉这行 "# /dev/da0s1e /boot ufs rw 2 2"
#存盘退出
root@5sky(0:27)/boot=> init 6 #重启系统.
访问技术无忧网,软硬件通吃保你技术无忧!网址http://www.pc51.net

上一篇:FreeBSD有用的命令
下一篇:JDK安装详解











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面