免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1361 | 回复: 7
打印 上一主题 下一主题

吃惊:无法进入PROM模式 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-17 16:09 |只看该作者 |倒序浏览
版本:SUN0S 5.5.1
硬件:INTEL P3 450

现象:从正常状态下输入
1. shutdown
2. init 5
3. init 0
4. halt
以及在启动的时候按CTRL+BREAK,都会提示出错:

INIT: failed write of utmpx entry: " "

总之无论是关机还是INIT 0,最后都是重启。

我要进入OK模式,如何做?

谢谢!!

论坛徽章:
0
2 [报告]
发表于 2005-01-17 16:14 |只看该作者

吃惊:无法进入PROM模式

什么硬件平台?

论坛徽章:
1
2016科比退役纪念章
日期:2016-05-26 15:48:47
3 [报告]
发表于 2005-01-17 16:22 |只看该作者

吃惊:无法进入PROM模式

stop+a呢?

论坛徽章:
0
4 [报告]
发表于 2005-01-17 16:22 |只看该作者

吃惊:无法进入PROM模式

呵呵,笔误。
已经修改过来了。

论坛徽章:
0
5 [报告]
发表于 2005-01-17 16:25 |只看该作者

吃惊:无法进入PROM模式

用的是普通的PC键盘,没有STOP+A.

论坛徽章:
0
6 [报告]
发表于 2005-01-17 16:29 |只看该作者

吃惊:无法进入PROM模式

我认为系统已经识别了输入的CTRL+BREAK.

提示错误如下:

INIT: Cannot create /var/adm/utmp or /var/adm/utmpx

INIT: failed write of utmpx entry: " "

INIT: failed write of utmpx entry: " "

INIT: SINGLE USER MODE

论坛徽章:
0
7 [报告]
发表于 2005-01-17 18:04 |只看该作者

吃惊:无法进入PROM模式

哥,PC没有OK状态

论坛徽章:
0
8 [报告]
发表于 2005-01-18 10:05 |只看该作者

吃惊:无法进入PROM模式

一部分问题的解决办法

Unmounting /vol error
This problem is caused by an error in one of the Solaris .rc files.
  

Jan 21 20:32:18 /usr/sbin/vold[418]: problem
unmounting /vol; Interrupted system call
The system attempts to unmount the /vol file system before shutting down the vold daemon which is using /vol. By trying to unmount a used file system, an error is created. The solution is to kill the daemon before unmounting the file system.

Killing the vold daemon first will fix the problem. You will have to become root first. Then create a link to an existing shutdown script before entering run level 0.

Become root and enter the following:
# ln -s /etc/init.d/volmgt /etc/rc0.d/K68volmgt
The /etc/rc0.d directory contains scripts that are executed when Solaris enters run level 0 (Shut Down). Solaris runs all scripts starting with K and passes them "stop" as a parameter. The volmgt script found in the /etc/init.d directory already uses this protocol and the above procedure will cause vold to shutdown properly.



--------------------------------------------------------------------------------

INIT: failed write of utmpx...
The error messages that is most frustrating, however, are this pair of messages. On some installations, We get these errors, and on other installations, We don’t.
  

INIT: f a i l e d o n w r i t e o f u t m p x entry:“sO”
INIT: f a i l e d o n w r i t e o f u t m p x entry:“fw”
For a long time, We’ve just been putting up with these error messages. It turns out that these messages occur for a similar reason as the previous error.
Here, the init command is trying to update the utmpx log file, which contains information about system run-level transitions, as well as user login and logout information. On some Solaris installations, the /var file system was on a separate partition!
When Solaris goes to run level 0, it un-mounts all the expendable file systems, such as /var. However, init then tries to enter this information in the log file, which is no longer accessible. That certainly clears things up!
Thus, all you do is provide a place for init to write your log file entries. If you really don’t care about the run-level transition messages, you can just write the information to/dev/null, and it’ll be thrown away without a trace. To do this, shut down your system and restart it. However, when you restart it, make sure you issue a boot -s command to boot it initially in single-user mode. Once you’ve booted up in single-user mode, enter these commands:

# umount /var
# mkdir /var/adm
# ln -s /dev/null /var/adm/utmpx
# ln -s /dev/null /var/adm/utmp
(If you try to bypass the boot -s step by executing the init S command to go to single-user mode, umount will tell you that the /var file system is busy. Don’t even try to circumvent the shutdown/boot -s procedure, it won’t work.)
Now we simply have a fake file system at the /var mount point. So when Solaris unmounts /var, the files /var/adm/utmpx and /var/adm/utmp will still exist. (They just won’t be the same ones.) Now, init won’t fail when it writes the log entries. You might wonder why we created both utmpx and utmp, when init was complaining only about utmpx. It turns out that if you create the utmpx file, init then complains about the utmp file. It writes log entries to both files, but writes to utmpx (and fails) first.
If you’d really rather keep all the log in-formation, you can try a similar trick. Instead of throwing away all the data, move your utmpx and utmp files to another location. Then create links to these new files at both their real locations and at the fake locations at the mount point. Then you can get rid of the messages and keep all your logging information.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP