2009-06-04

来自airships@yeah.net的邮件

我的系统启动不了了

mounting root from ufs:/dev/ad0s1a
/etc/rc.conf: 16:Syntax error:Unterminated quoted string
Enter full pathname of shell or RETURN for /bin/sh:

出现这个提示后就不继续启动了.然后我按ENTER后出现
#
我该怎么修复我的系统啊
哪位大虾帮帮忙

Enter full pathname of shell or RETURN for /bin/sh

There is a syntax error in your /etc/rc.conf. you , I think, are in the single user mode. so, try this way,
#fsck -p / && mount -uw / ( you can read and write /etc/rc.conf)
#fsck -p /usr && mount /usr (mount /usr because you need /usr/bin/vi)
edit that file, find the problem, correct it and save it. reboot.

or if you are in the multiuser mode, just correct the file and reboot.

Hope this can help you.


======================

Enter full pathname of shell or RETURN for /bin/sh


enter
fsck -y
reboot
 
====================
Enter full pathname of shell or RETURN for /bin/sh

晕,我已经解决了,谢谢两位帮忙
哈哈,启动不了是因为我的RC.CONF文件在启动之前我改动了
加了一条语句snmp_enable="yes"
我注销了就可以了.
然后我把SNMP的启动用SH脚本做的/etc/rc.d/snmpd.sh
 

没有评论:

博客归档