SUMMARY: Help: Some how have lost /usr/lib/libc.so.1 (fwd)

From: <ayse_at_deakin.edu.au>
Date: Fri May 04 2001 - 22:54:54 EDT
Thank-you for all who responsed.
Too many to name all. This is a fantastic list (but it took 2 days
for my original e-mail to appear :(  )

Here is a cut and paste of one of the e-mail

1.  Boot from cd into single user.

2. fsck /dev/rdsk/c-whatever is you rootdisk

3. mount rootdisk as /mnt

4. cd /mnt and then do your restore.

	. ftp/copy over from another system in the same subnet
		"remember u should copy from the same version of OS"
	. tape backup
	. mount the root fs on /a; the /usr on /a/usr and
	  use pkgadd -R /a -d <packages source directory> SUNWcsl



This should work ok to restore /usr -

And for those who have the root disks encapsulated with Veritas or DiskSuite
	"Just you hope you haven't"
I guess this means a re-install of the OS.


   -----Original Message-----
   From:       ayse [SMTP:ayse@deakin.edu.au]
   Sent:       01 May 2001 12:28
   To:         sunmanagers
   Cc:         ayse
   Subject:    Help: Some how have lost /usr/lib/libc.so.1

   Its actually zero'd:

      # ls -l /a//usr/lib/libc.so.1
      -rwxr-xr-x   1 root     bin            0 Apr 30 23:52
   /a//usr/lib/libc.so.1

   And of course I cannot boot - can anyone tell me how I can
   restore this file in single user mode . The text below show
   the output when I attempted to boot my box:


   Rebooting with command: boot
   Boot device: disk:a  File and args:

   NOTICE: 64-bit OS installed, but the 32-bit OS is the default
      for the processor(s) on this system.
      See boot(1M) for more information.

   Booting the 32-bit OS ...

   SunOS Release 5.8 Version Generic_108528-06 32-bit
   Copyright 1983-2000 Sun Microsystems, Inc.  All rights reserved.
   configuring IPv4 interfaces: hme0.
   Hostname: thehostname
   ld.so.1: /usr/bin/loadkeys: fatal: /usr/lib/libc.so.1: unknown file
   type
   Killed
   Killed
   Killed
   WARNING: /proc could not be mounted
   ld.so.1: expr: fatal: /usr/lib/libc.so.1: unknown file type
   ld.so.1: swap: fatal: /usr/lib/libc.so.1: unknown file type
   Killed
   Killed
   The / file system (/dev/rdsk/c0t0d0s0) is being checked.
   ld.so.1: /usr/sbin/fsck: fatal: /usr/lib/libc.so.1: unknown file type
   Killed

   WARNING - fatal error from fsck - error 137
   Unable to repair the / filesystem. Run fsck manually
   (fsck -F ufs /dev/rdsk/c0t0d0s0). System will reboot when you exit
   the shell.

   *** Unable to retrieve `root' entry in shadow password file ***

   Entering System Maintenance Mode

   # fsck
   ld.so.1: fsck: fatal: /usr/lib/libc.so.1: unknown file type
   Killed




   _______________________________________________
   sunmanagers mailing list
   sunmanagers@sunmanagers.org
   http://www.sunmanagers.org/mailman/listinfo/sunmanagers




<NOTE:The information in this email is intended for the person it is addressed to. If you are not the named addressee, you must not copy, distribute or take any action as a result of the information in it. Yorkshire Electricity Group plc cannot give any warranties or assurances about the safety and content of this email and any attachments. Yorkshire Electricity Group plc does not accept any responsibility for viruses and it is your responsibility to scan the email and any attachments.>
Received on Sat May 5 03:54:54 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:54 EDT