Re: Could not run any command even ls

From: Klaus Oberle (Klaus.Oberle@LINDE-MH.DE)
Date: Mon Jul 07 2003 - 04:35:14 EDT


Mohammed,

this is from AIX tech. tips:

How to Restore libc.a from Install Media in Maintenance Mode

How do you restore the file /usr/ccs/lib/libc.a in maintenance mode?

Solution

Boot with the install CD-ROM. Select the following series of options:

             3 Start Maintenance Mode for System Recovery
                1 Access a Root Volume Group
                   1 Volume Group 00002433a01d4c83 contains these disks:
                  hdisk0 305 00-01-00-00 (select this disk)
                         2 Access this Volume Group and start a shell
before mounting
                   file systems.

>From a command prompt, execute the following:

             # mount /dev/hd4 /mnt
             # mount /dev/hd2 /mnt/usr
             # export PATH=/mnt/usr/sbin:/mnt/usr/bin
             # cd /mnt
             # restore -xvqf /../SPOT/usr/sys/inst.images/bos
./usr/ccs/lib/libc.a

/klaus

---------------------------------------------------
Klaus Oberle
IT Administration
Linde Material Handling
Aschaffenburg / Germany
klaus.oberle@linde-mh.de
www.linde.com
--------------------------------------------------

                      Mohammed Kamal
                      <Mohamed.Kamal@S An: aix-l@Princeton.EDU
                      PDC.COM.EG> Kopie:
                      Gesendet von: Thema: Could not run any command even ls
                      IBM AIX
                      Discussion List
                      <aix-l@Princeton
                      .EDU>

                      07.07.2003 08:44
                      Bitte antworten
                      an IBM AIX
                      Discussion List

dear all;
  when i check on the server I couldnot run any command even ls
the error message is:
    Could not load module /usr/lib/libc.a
         Dependent module libcrypt.a couldnot be loaded
    Could not load module libcrypt.a
    Error was: No such file or directory

How can i restore a certain file from a system backup while booting from
the
cd?
Best Regards
Mohammed Kamal
Systems Engineer

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Linde Material Handling.

Since January 2002 we use the e-mail domain linde-mh.de instead
of linde-fh.de.

This mail has been swept for the presence of computerviruses.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:59 EDT