*BSD News Article 13158


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!howland.reston.ans.net!agate!agate.berkeley.edu!cgd
From: cgd@erewhon.CS.Berkeley.EDU (Chris G. Demetriou)
Newsgroups: comp.unix.bsd
Subject: Re: Help! Lost "extract"
Date: 22 Mar 93 08:03:36
Organization: Kernel Hackers 'r' Us
Lines: 70
Message-ID: <CGD.93Mar22080336@erewhon.CS.Berkeley.EDU>
References: <1993Mar14.022824.7584@zip.eecs.umich.edu> <21250028@hpuamsa.neth.hp.com>
	<1993Mar22.143444.27590@prism.poly.edu>
NNTP-Posting-Host: erewhon.cs.berkeley.edu
In-reply-to: ssnyder@prism.poly.edu's message of Mon, 22 Mar 93 14:34:44 GMT

In article <1993Mar22.143444.27590@prism.poly.edu> ssnyder@prism.poly.edu (Sharon Snyder) writes:
> [ stuff about how to get the "extract" program"
>
>This requires re-installation - right?

nope.  examining the "baseutils.cpio.Z" file on the
dist.fs floppy, one sees:

103 [sun-lamp] cgd % zcat /mnt/etc/baseutils.cpio.Z | cpio -idtalmuv
100664 root     4752  Jul 14 22:17:25 1992  CONTRIB.LIST
100664 root     3936  Jul 14 22:16:59 1992  CAREWARE.INFO
100664 root     2724  Jul 14 22:16:51 1992  SOFTWARE.FORM
100664 root     1757  Jul 14 22:16:51 1992  BUGNFIX.FORM
100664 root      611  Jul 15 01:45:37 1992  MANIFEST.base
100644 root     2024  Jun  4 00:25:14 1992  etc/services
100644 root      492  Jun  4 00:25:15 1992  etc/protocols
100644 root     1590  Jul  6 22:01:11 1992  etc/base.profile
100775 root    11404  Jul 15 01:44:06 1992  tmp/extract
100555 root    32768  Jul  1 18:01:47 1992  bin/chmod
.
.
.

which means that, since the pathnames are relative, you don't need
to worry about the files in /etc getting overwritten, if you
do things right...

"right" in this case == a sequence like:

mount /dev/fd0a /mnt		# where the fixit.fs is in /mnt
cd /usr
mkdir foo
cd foo
zcat /mnt/etc/baseutils.cpio.Z | cpio -idalmuv
umount /mnt

you'll then have extract in /usr/foo/tmp.


rather than going through all of this, it's worthwhile to note
(as i did in my "for-a-normal-partitioning-scheme" installation
instructions, which i believe are in the FAQ) that to extract
a given distribution set you can simply say, for example:

cat src01.?? | uncompress | (cd / ; cpio -idalmu)

note that you can't really do this w/"bin01" because you need
some of the files from the installation disks, and there
are some files in /usr/src which *should* be in "src01" but
are actually in "bin01" so unless you're careful, you can
get into trouble there, as well.  those files (the ones which
should be in "src01") are also available from

agate.berkeley.edu:pub/386BSD/386bsd-0.1/unofficial/bin-h.cpio.Z

and can be installed with the command:

zcat bin-h.cpio.Z | (cd / ; cpio -idalmu)





good luck!

chris
--
Chris G. Demetriou                                    cgd@cs.berkeley.edu

                 MENTALLY CONTAMINATED and proud of it!