AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Problem restoring libc.a (AIX 5.3)

    Posted Fri August 06, 2010 07:34 AM

    Originally posted by: Nico.AIX


    Hi,

    The symbolic link from /usr/lib/libc.a to /usr/ccs/lib/libc.a was deleted by accident. So we are trying to restore it, but we have some problems.

    After booting from CD, and access the rootvg volume group (without mounting the system), we tried to execute the next commands:

    
    mount /dev/hd4 /mnt mount /dev/hd2 /mnt/usr cd /mnt ln -s /usr/ccs/lib/libc.a /mnt/usr/lib/libc.a cd /mnt/usr/sbin ./sync;./sync;./sync cd /  umount /dev/hd2 umount /dev/hd4 exit
    


    But the we can't execute the step of creating the symbolic link because seems that the directory /usr/css/lib doesnt exists.
    We have tried other options, like create a link to the file */mnt/*usr/ccs/lib/libc.a or copy the file */mnt/*usr/ccs/lib/libc.a to /mnt/usr/lib, but after enter all the commands and typing exit, the shell cant load the library and start to show errors.

    Any idea of what we can do?
    We are booting using the AIX 7 Beta DVD because we cant find right now the AIX 5.3 CD's.

    Thanks in advance.
    #AIX-Forum


  • 2.  Re: Problem restoring libc.a (AIX 5.3)

    Posted Fri August 06, 2010 12:35 PM

    Originally posted by: flodstrom


    You have to be careful when you create the symbolic link. You can't use absolute path's in miniroot environments like that.

    For example:
    Repeat the first two steps where you mount the root and usr filesystems. Then do a cd /mnt/usr/lib. Then run "ln -s ../ccs/lib/libc.a ."
    #AIX-Forum


  • 3.  Re: Problem restoring libc.a (AIX 5.3)

    Posted Mon August 09, 2010 03:53 AM

    Originally posted by: Nico.AIX


    Thanks a lot flodstrom! It works now! :)
    #AIX-Forum


  • 4.  Re: Problem restoring libc.a (AIX 5.3)

    Posted Mon December 06, 2010 05:56 PM

    Originally posted by: Leelee.Dutton


    flodstrom wrote:
    You have to be careful when you create the symbolic link. You can't use absolute path's in miniroot environments like that.

    For example:
    Repeat the first two steps where you mount the root and usr filesystems. Then do a cd /mnt/usr/lib. Then run "ln -s ../ccs/lib/libc.a ."

    Thanks for your explanation! It is exactly what I need, It's good for reference.
    #AIX-Forum