Solved

ld.so.1 Problem on Solaris 2.5.1

Posted on 1997-11-05
1
346 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

756 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