SPARC: Example--Booting a System for Recovery Purposes (Damaged Password File)
The following example shows how to repair an important system file (in this case, /etc/passwd) after booting from a local CD-ROM.
ok boot cdrom -s # mount /dev/dsk/c0t3d0s0 /a # cd /a/etc # TERM=vt100 # export TERM # vi passwd (Remove invalid entry) # cd / # umount /a # init 6 |
SPARC: Example--Booting a System if You Forgot Root Password
The following example shows how to recover when you forget the root password by booting from the network. This example assumes that the network boot server is already available. Be sure to apply a new root password after the system has rebooted.
ok boot net -s # mount /dev/dsk/c0t3d0s0 /a # cd /a/etc # TERM=vt100 # export TERM # vi shadow (Remove root's encrypted password string) # cd / # umount /a # init 6 |
SPARC: How to Boot the System With the Kernel Debugger (kadb)
If you need to stop the system, type the stop key sequence for your system.
The specific stop key sequence depends on your keyboard type. For example, you can press Stop-A or L1-A. On terminals, press the Break key.
The PROM displays the ok prompt.
Synchronize the file systems and write the crash dump.
> n ok sync
When you see the syncing file systems... message, press the stop key sequence for your system again.
Boot the system with the kernel debugger.
ok boot kadb
Check kadb booting messages to verify that the system has booted with the kernel debugger.
Rebooting with command: kadb Boot device: /iommu/sbus/espdma@4,800000/esp@4,8800000/sd@3,0 . . .
SPARC: Example--Booting the System With the Kernel Debugger (kadb)
Press Stop-A ok sync syncing file systems... Press Stop-A ok boot kadb |
SPARC: Forcing a Crash Dump and Rebooting the System
Forcing a crash dump and rebooting the system is sometimes necessary for troubleshooting purposes. The savecore feature is enabled by default.
For more information on system crash dumps, see "Managing System Crash Information (Tasks)" in System Administration Guide: Advanced Administration.
SPARC: How to Force a Crash Dump and Reboot the System
Use this procedure to force a crash dump and reboot the system when the savecore feature is enabled.
Type the stop key sequence for your system.
The specific stop key sequence depends on your keyboard type. For example, you can press Stop-a or L1-a. On terminals, press the Break key.
The PROM displays the ok prompt.
Synchronize the file systems and write the crash dump.
> n ok sync
After the crash dump is written to disk, the system will continue to reboot.
Verify the system boots to run level 3.
The login prompt is displayed when the boot process has finished successfully.
hostname console login:
SPARC: Example--Forcing a Crash Dump and Rebooting the System
Press Stop-A ok sync |