The following steps show how to recover the system after the damage has been done ie., after the losing access to the system completely.
The recovery process starts with booting Solaris from bootable CD-ROM. The steps are as follows:
- Put the CD-ROM into CD drive and reboot the system.
- From the boot solaris menu, select CD-ROM drive and then type
b -s
at the prompt.
The other way is the typeboot cdrom -s
atok
prompt. - The above step takes you to single user mode with a functional but limited Solaris access from CD-ROM.
- To access your file system(s), you need to mount them. So, atleast mount the root file system (/).
eg.,
If your root file system isc0t0d0s0
, mount it as follows:mount /dev/dsk/c0t0d0s0 /mnt
Note:
If you don't know the partition name where / is installed, have a look at/mnt/etc/vfstab
file. - Then copy back the original run-time linker (
ld.so.1
). For example, if you have the originalld.so.1
copied told.so.1.orig
, copy it told.so.1
as shown below:cp /mnt/usr/lib/ld.so.1.orig /mnt/usr/lib/ld.so.1
- Finally reboot the system.
0 comments:
Post a Comment