Solved

ld.so.1 Problem on Solaris 2.5.1

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Parsing a file using ksh 10 64
looking for unix program to search some keywords in side EAR WAR and JAR files 10 93
Martian Packets Unix 5 51
awk sed 8 42
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

777 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