- 论坛徽章:
- 0
|
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: |
|