From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d2e2b24b3604c5db,start X-Google-Attributes: gid1164f8,public From: djp@zeus.unx.dec.com (Dave Parker) Subject: Re: HELP. Missing files in /USR/OPT directory? Date: 1996/03/06 Message-ID: <4hk3lj$m7l@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 142105103 distribution: world references: <4hm7cr$222@groa.uct.ac.za> organization: Digital Equipment Corporation reply-to: djp@zeus.unx.dec.com (Dave Parker) newsgroups: comp.sys.dec 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 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 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.....