免费注册 查看新帖 |

Chinaunix

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

IA:X86如何从光盘启动,用于超级口令丢失等错误修复。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-22 10:26 |只看该作者 |倒序浏览
IA: How to Boot a System for Recovery Purposes
Follow these steps to boot the system to repair a critical system resource. The
example shows you how to boot from a Solaris Installation CD or the network,
mount the root (/) file system on the disk, and repair the /etc/passwd file.
Substitute the device name of the file system to be repaired for the devicename
variable in the procedures below. If you need help identifying a system’s device
names, refer to Chapter 26.
Follow the instructions below to boot from the Solaris installation CD or the network.
1. Boot from the Solaris installation CD (or the network) to single-user mode.
a. Insert the Configuration Assistant Boot Diskette or the Installation CD you
wish to boot from.
b. Press any key to reboot the system if the system displays the Type any
key to reboot prompt. You can also use the reset button at this prompt. If
the system is shut down, turn the system on with the power (on/off) switch.
c. Press the F2 key (F2_Continue) at the Solaris Device Configuration Assistant
screen.
Device identification is performed and a screen that displays the identified
devices appears.
d. Press the F2 key (F2_Continue) at the Identified Devices screen.
Bootable drivers are loaded.
e. Press the F2 key (F2_Continue) at the Solaris Device Configuration Assistant
screen.
Device identification is performed and a screen that displays the identified
devices appears.
f. Press the F2 key (F2_Continue) at the Identified Devices screen.
Bootable drivers are loaded.
g. Select the CD-ROM drive or network device from the Boot Solaris menu.
Then press the F2 key (F2_Continue).
The Current Boot Parameters menu is displayed.
h. Type b -s at the prompt. Press Enter.
After a few minutes, the single-user mode # prompt is displayed.
2. Mount the root (/) file system that has the invalid passwd file.
# mount /dev/dsk/devicename /a
3. Change to the newly mounted etc directory.
# cd /a/etc
4. Make the necessary change to the passwd file using an editor.
# vi passwd
5. Change to the root (/) directory.
# cd /
6. Unmount the /a directory.
# umount /a
7. Reboot the system.
# init 6
8. Verify the system boots to run level 3.
The login prompt is displayed when the boot process has finished successfully.
hostname console login:

论坛徽章:
0
2 [报告]
发表于 2003-06-23 13:29 |只看该作者

IA:X86如何从光盘启动,用于超级口令丢失等错误修复。

h. Type b -s at the prompt. Press Enter.
After a few minutes, the single-user mode # prompt is displayed.
如果能用的话,巨好,着了很长时间了,晚上回家试试
先帮你顶着

论坛徽章:
0
3 [报告]
发表于 2003-06-23 13:58 |只看该作者

IA:X86如何从光盘启动,用于超级口令丢失等错误修复。

我昨天已经试了,能行的

论坛徽章:
0
4 [报告]
发表于 2003-06-23 18:13 |只看该作者

IA:X86如何从光盘启动,用于超级口令丢失等错误修复。

嗯,,谢谢,很好。。。我也正想知道呢

论坛徽章:
0
5 [报告]
发表于 2003-06-24 08:49 |只看该作者

IA:X86如何从光盘启动,用于超级口令丢失等错误修复。

可是,当我进入#提示符后,想创建目录时,却说我权限不够。请问怎么才能加权限呢?

论坛徽章:
0
6 [报告]
发表于 2003-06-24 10:19 |只看该作者

IA:X86如何从光盘启动,用于超级口令丢失等错误修复。

随便找一个没有被加载的目录即可。
加载后,需要修改的是shadow
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP