SUMMARY: Help: Some how have lost /usr/lib/ (fwd)

From: <>
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 []
   Sent:       01 May 2001 12:28
   To:         sunmanagers
   Cc:         ayse
   Subject:    Help: Some how have lost /usr/lib/

   Its actually zero'd:

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

   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 /usr/bin/loadkeys: fatal: /usr/lib/ unknown file
   WARNING: /proc could not be mounted expr: fatal: /usr/lib/ unknown file type swap: fatal: /usr/lib/ unknown file type
   The / file system (/dev/rdsk/c0t0d0s0) is being checked. /usr/sbin/fsck: fatal: /usr/lib/ unknown file type

   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 fsck: fatal: /usr/lib/ unknown file type

   sunmanagers mailing list

<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