This document describes how to recover after running the rm command in the root directory and applies to AIX Versions 4.x.
Deleting the files in the root directory will delete the following links:
bin -> /usr/bin
lib -> /usr/lib
u -> /home
unix -> /usr/lib/boot/unix_up ( or unix_mp )
In the root directory, removing the bin directory link disables the korn shell needed for login. The recovery will boot in service mode and rebuild the links.
NOTE: The following procedure describes how to boot the machine into maintenance mode, access the rootvg volume group and start a shell prior to mounting the file systems. If the system does not have a key or if additional details are needed, please contact your AIX support center.
The bootable media can be any one of the following:
Follow the prompts to the Welcome to Base OS menu.
The next screen prompts the Maintenance menu.
At this stage the console should display information about rootvg and also display a menu with two options.
NOTE: If there are errors from the preceding option, do not continue with the rest of this procedure. Correct the problem causing the error. If you need assistance in correcting the problem causing the error, contact one of the following:
If no errors occur, proceed with the following steps.
fsck -y /dev/hd4NOTE: When running the preceding command with -y, yes will be answered automatically.
mount /dev/hd4 /mnt
ln -s /usr/bin bin
ln -s /usr/lib/boot/unix_up unix OR ln -s /usr/lib/boot/unix_mp unix
ln -s /usr/lib lib
ln -s /home u
cd / umount /dev/hd4 exit sync;sync;sync
Turn the key back to normal mode and reboot.
[ Doc Ref: 90605221114600 Publish Date: Spt. 29, 2000 4FAX Ref: 6836 ]