免费注册 查看新帖 |

Chinaunix

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

hpux启动过程 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-29 02:50 |只看该作者 |倒序浏览

[color="#000000"]HP-UX在vi中如何才何输入汉字

HP-UX在vi中如何才何输入汉字
1,设置环境变量
#vi /etc/rc.config.d/LANG
默认的内容为:
LANG=C
export LANG
改为:
LANG=zh_CN.hp15CN   
export LANG
2,增加这一行到/etc/profile
stty -istrip -parity cs8
3,重新登录
* 你可以检查这个文件/etc/kbdlang看内容是不是
PS2_DIN_S_Chines
hpux的启动过程
实在B2000中作的试验,如与其他系列机型不同,请大家做出补充。   
hpux的启动过程概况如下:   
pdc(Processor-dependent-code,在rom中,完成硬件自检   
| 读取stable storge中的信息,如autosearch,   
| primarypath等等,然后调用isl   
isl (Initial system loader,在boot盘的lif区域。lif   
| 区域主要有四个文件,分别是sl,hpux,AUTO,LABEL   
| 在#下,可以使用lifls命令察看,同时可以使用   
| lifcp 察看AUTO的内容。   
| isl的主要任务是执行lif区域的hpux,同时也可   
| 以改变stable storge中的部分信息,如   
| primarypath,autoboot等等   
hpux 引导os,主要是读取/stand/vmunix文件,同时把   
| 控制权交给内核,   
|   
init 从这里开始,就是软件之间的启动了   
说明:   
1。hpux在系统的启动时是按照stable storge 中设置的   
primarypath/alterpath/其他等来搜寻可引导盘的,   
直到发现可引导盘为止,否则就会停在main command   
状态。如果发现可引导盘,就到了isl状态   
2。如果你忘了root密码,而且security=on的话,   
如果你想获取密码,这只能拔掉硬盘。才能进入   
单用户状态。   
3。如果你设置了security=on,你想将它恢复成   
security=off的话,可以这样,不用拔掉硬盘,   
但需要使用光盘用recovery恢复系统。   
在#下山掉isl   
#lifrm /dev/rdsk/c2t6d0:ISL   
#lifcp /dev/rdsk/c2t6d0:LABEL /dev/rdsk/c2t6d0:ISL   
其中/dev/rdsk/c2t6d0为你的boot盘路径。关于为什么要使用lifcp请看注释   
这样reboot以后,就会停在main command下,就可以   
恢复security=on了,不过现在你的硬盘不能启动   
了,你现在需要从光盘启动,到recovery shell中,   
然后,从新生成boot盘的bootlif的东西)   
4。如果你想改成光盘启动(重装系统之类的),这就更简单了,到   
#下,使用setboot命令,将光盘的路径设为primarypath就可以了   
使用命令 setboot -p 10/0/15/0.0.0   
同时,最好将原boot盘设为alternativepath   
使用命令:setboot -a 10/0/14/0.0.0 假设   
10/0/15/0.0.0为光盘,10/0//14/0.0.0为硬盘   
###############################################   
注释:   
Problem Description   
When I do lifrm /dev/dsk/c0t6d0:ISL to remove the ISL area from   
the LIF area (boot area) on my boot disk, and I reboot the system,   
I am still able to go to ISL and boot -is and boot -lm.   
Why is this possible?   
Configuration Info   
Operating System - HPUX   
Version - 11.0   
Hardware System - HP 9000   
Series - D350   
Solution   
LIF is a filesystem structure that contains continuous files.   
lifrm is nothing but purging file, and in that fs structure, all that   
means is that the file type is set to PURGED, while nothing else is   
touched. When booting, the system is looking for the file by name   
and does not care about it's type; therefore, it finds the file and   
boots. But, since the file type now is PURGED, then any lifcp   
of a smaller file than ISL will use the first area in LIF that fits.   
It will sit on top of ISL and will render the system unbootable.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5411/showart_23722.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP