Solved

ld.so.1 Problem on Solaris 2.5.1

Posted on 1997-11-05
1
357 Views
Last Modified: 2013-12-27
       Some shared libraries were accidentally removed from /usr/lib, including ld.so.1.  Now nothing works (including cp, su, mv, ls), except for built-in shell commands (e.g., cd)!  I believe we are running Solaris 2.5.1.  I've tried using /usr/sbin/cp to copy the library back into /usr/lib, but /sbin/su and /sbin/sulogin complain that no root entry exists in the password file (I'm not sure what could have happened to the password file.  As a last resort I could try to boot from cdrom and copy the library in from there, but I was wondering if I there was an easy fix to the su/sulogin problem so that I can copy the library more easily.  The error I get from su/sulogin is below:

2:44pm [11] Wed 11/04/97 bors:~ % /sbin/su
su: Unknown id: root
                                                                                2:44pm [12] Wed 11/04/97 bors:~ % /sbin/sulogin
 
*** NO ENTRY FOR root IN PASSWORD FILE! ***

$

utmp_update: Cannot find /usr/lib/ld.so.1
Entering System Maintenance Mode
 
$ /home/khoi/static/cp /home/khoi/ld.so.1 /usr/lib/  
cp: cannot create /usr/lib/ld.so.1: Permission denied
$

Many thanks in advance for your help.

-Khoi
0
Comment
Question by:khoin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 2007658
Assume that you have another Solaris in your net:

  1. if you have setup ftp (as recommded:), you should have
     a static version of cp and/or mv there (/pub/bin ?)
     Use these to copy your libs from an other host.

  2. Try to mount your corrupted /usr at another host with user
     root access, then copy missing libs from there.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question