LIBPATH=/usr/ccs/lib:/usr/lib export LIBPATH
ln -s /usr/ccs/lib/libc.a /usr/lib/libc.a
unset LIBPATHIf you don't have a shell accessible to execute this command, follow the instructions in the next section.
The machine should be booted from a CD-ROM or NON_AUTOINSTALL mksysb tape of the same operating system level as the system. See the document "Booting in Service Mode" if there are any questions about booting your particular machine into Service mode. Access the rootvg volume group without mounting the file systems. Use a recent mksysb of the system to retrieve the libc.a file. Afterward, proceed through the following steps.
mount /dev/hd4 /mnt mount /dev/hd2 /mnt/usr cd /mnt
ln -s /usr/ccs/lib/libc.a /mnt/usr/lib/libc.a
First you will need to set the block size of the tape drive. By default, the device driver in Maintenance mode will be set to a block size 512.
restbyname -xvqf/dev/rmtX.Y ./usr/ccs/lib/libc.a
restbyname -xvqf/dev/rmtX.Y ./usr/ccs/lib
restbyname -xvqf/dev/rmtX.Y ./usr/ccs/bin
cd /mnt/usr/sbin ./sync;./sync;./sync
cd / umount /dev/hd2If that commands fails, turn the key to Normal mode, if applicable, and reboot.
umount /dev/hd4If that commands fails, turn the key to Normal mode, if applicable, and reboot.