Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Re: HELP. Missing files in /USR/OPT directory?
       [not found] <4hm7cr$222@groa.uct.ac.za>
@ 1996-03-06  5:00 ` Dave Parker
  0 siblings, 0 replies; only message in thread
From: Dave Parker @ 1996-03-06  5:00 UTC (permalink / raw)



In article <4hm7cr$222@groa.uct.ac.za>, PARCHER@ELECENG.UCT.AC.ZA (Paul Archer) writes:
|>Hi..
|>
|>I'm running Digital Unix 3.2c and I typed "rm *" as root in the /usr/opt 
|>directory. (I thought I was somewhere else).
|>
|>I don't know if I lost any files, so please can you check out that directory 
|>and tell me if there are any files there (or only sub-directories).
|>
|>As luck would have it, I have no backup, as the backup person has not got the 
|>backup working yet!
|>
|>Hope you can help. Thanks ..
|>
|>
|>Paul :   parcher@eleceng.uct.ac.za
|>

The base operating system product (i.e. Digital UNIX itself) does NOT install
any files in that directory.  However, that directory is heavily used by most
layered products.  If you had any installed, it's likely that you lost files.
Relying on information from others on whether they have any files in /usr/opt
is NOT the way to go as this will differ system by system.

Without a backup, there is no easy way to recover.

I'd suggest that you do the following:

1. Determine if you have any layered products installed.  Do this by executing
   setld -i.  Look for subsets that are installed that don't start with the
   string "OSF".  Note these.

2. Look at the inventory file for each of these subsets in the /usr/.smdb.
   directory and search for entries in /usr/opt.  If there are any, note that
   subset name.  Alternately, you could just type setld -i <subset-name> and 
   grep the output for /usr/opt.

3. Attempt to delete those layered products that had files in /usr/opt.  You
   might lose whatever setup was associated with each product, but you don't
   have much choice.  Use setld -d <subset-name>

4. Reinstall the layered products.

Note that this only helps you recover files placed in /usr/opt by setld.  Any
other files that were there are gone forever!

Backup, backup, backup.....

Dave
-- 

----------------------------------------------------------------------
Dave Parker					djp@unx.dec.com
UNIX Engineering				Digital Equipment Corp
	The comments, opinions, etc. within are mine.....



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-03-06  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4hm7cr$222@groa.uct.ac.za>
1996-03-06  5:00 ` HELP. Missing files in /USR/OPT directory? Dave Parker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox