How to recover programs from install disks
John Gayman
john at wa3wbu.UUCP
Fri Jun 1 21:17:25 AEST 1990
In article <1990May31.153301.2562 at monymsys.uucp>, david at monymsys.uucp (David Kozinn) writes:
> While playing around with the accounting facilities on my Sys V/386 system, I
> managed to clobber /usr/lib/acct/acctcon2, one of the programs used to
> process accounting records. While I've backed up any useful data on the
> system, I never did a full system backup because I figured that I could always
> recover any clobbered programs from the installation disks. Well, I tried to
> do that today and I just can't figure out how. Obviously, I don't want to
When you execute pkginstall, it actually just goes and runs a shell
script called /etc/installit. Looking at this script you can see there
are several forms of cpio it will use depending on what you were doing.
Mostly they are pretty similar and will serve your purpose. Here they are
from installit:
cpio -iu </dev/rdsk/f0q15dt 2>/dev/null
cpio -icBdmu $1 </dev/rdsk/f0q15d 2>/dev/null
cpio -icBdmu </dev/rdsk/f0q15d
As you can see the key is using /dev/rdsk/f0q15d. I have selectively
restored many files from the distribution disks this way and it works
great. Good luck.
John
--
John Gayman, WA3WBU | UUCP: uunet!wa3wbu!john
1869 Valley Rd. | ARPA: john at wa3wbu.uu.net
Marysville, PA 17053 | Packet: WA3WBU @ WB3EAH
More information about the Comp.unix.microport
mailing list