HPUX 启动到单用户修改root密码
1.在MP中进行 系统重启,如不是MP进行,直接从第3步开始:
MP MAIN MENU:
CO: Consoles
VFP: Virtual Front Panel
CM: Command Menu
CL: Console Logs
SL: Show Logs
FW: Firmware Update
HE: Help
X: Exit Connection
[astro-1] MP> cm
Enter HE to get a list of available commands
(Use ^B to return to main menu.)
[astro-1] MP:CM> rs
2. 重启过程
(1) (按 CTRL 和 B 即可进入MP主菜单 ,如下:)
MP MAIN MENU:
CO: Console
VFP: Virtual Front Panel
CM: Command Menu
SMCLP: Server Management Command Line Protocol
CL: Console Log
SL: Show Event Logs
HE: Main Help Menu
X: Exit Connection
[donghai-1] MP> co (键入 co , 回车 后, 会要求 按 键
Ctrl-Ecf )
(2) [Use Ctrl-B or ESC-( to return to MP main menu.]
- - - - - - - - - - - - Live Console - - - - - - - - - - - -
[Read only - use Ctrl-Ecf for console write access.] (按下 Ctrl-Ecf 后即可监视启
动过程)
[bumped user - Admin]
(3)
启动过程会出现如下界面,然后选择 EFI SHELL[BUILT-IN]即可:
(4)
a. 在 EFI Shell 提示符处输入 map 来列出系统上的可引导设备。
所列出的设备条目以 fs#: 开头(其中,# 是数字,例如 0、1、2、3
等)。例如:
fs0 :
Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88F40A3A-
B992-11E1-8002-D6217B60E588)
fs1 :
Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part3,Sig88F40A9E-
B992-11E1-8004-D6217B60E588)
blk0 : Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)
blk1 :
Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A3A-
B992-11E1-8002-D6217B60E588)
blk2 :
Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A6C-
B992-11E1-8003-D6217B60E588)
blk4 : Acpi(HWP0002,500)/Pci(2|0)/Ata(Secondary,Master)
b. 确定哪一个条目映射到包含用于引导的内核文件的设备,并在 Shell
提示符处输入 fs#:名称。
例如,如果要使用的引导设备所对应的条目标记为“fs0:”,请在
Shell 提示符处输入 fs0::
Shell> fs0:
与 fs0: 条目相关的设备现在即为选定的引导设备。 (5) 请在 Shell 提示符处输入命令 hpux,并在看到倒计时器显示自动引导即将开始
时,准备停止自动引导序列(即按下控制台键盘上的任意键)。 00:fs7:\> hpux
(C) Copyright 1999-2006 Hewlett-Packard Development Company, L.P.
All rights reserved
HP-UX Boot Loader for IPF -- Revision 2.028
Press Any Key to interrupt Autoboot
\efi\hpux\AUTO ==> boot vpmon -a
Seconds left till autoboot - 10 (期间会出现10秒等候,此时按任意键
中断)
Type 'help' for help
HPUX> (6)此时,提示符为
HPUX> boot –is vmunix (以单用户方式引导)
# mount –a (挂接文件系统)如果mountb不上执行 fsck
(7) # passwd root改密码
如果是trast 系统, passwd root 将会报错,需执行如下后再改密码:
/etc/tsconvert –r
(注:/etc/Tsconvert 建立trust方式
/etc/tsconvert –r 改成非 trust方式)
(8) #init 3 引导多用户方式。
9.HPUX profile boot …
第二个10秒中断,HPUX>hpux –is 进入单用户模式:mount –a