*BSD News Article 8297


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!wupost!gumby!destroyer!cs.ubc.ca!alberta!cpsc.ucalgary.ca!xenlink!newt.cuc.ab.ca!deraadt
From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
Subject: Re: 386BSD: /bin -> /usr/bin reorganization
In-Reply-To: cgd@eden.CS.Berkeley.EDU's message of 18 Nov 92 23: 50:17 GMT
Message-ID: <DERAADT.92Nov19133341@newt.newt.cuc.ab.ca>
Sender: news@newt.cuc.ab.ca
Nntp-Posting-Host: newt
Organization: little lizard city
References: <DERAADT.92Nov17041728@newt.newt.cuc.ab.ca>
	<1992Nov18.064604.2992@pool.info.sunyit.edu>
	<CGD.92Nov18155017@eden.CS.Berkeley.EDU>
Date: Thu, 19 Nov 1992 20:33:41 GMT
Lines: 52

In article <CGD.92Nov18155017@eden.CS.Berkeley.EDU> cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou) writes:
   In article <DERAADT.92Nov17041728@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
   >Among a large number of other Sunifications I have made to my 386BSD
   >system, I've made this one:
   >
   >lrwxr-xr-x    1 root            8 Oct 24 21:05 bin@ -> /usr/bin
   >

   there are problems with this: notably, straight bsd systems
   aren't "meant" to mount /usr when they're brought up into single user
   mode.

   i assume you're running with / and /usr physically residing in the same
   partition.  otherwise, i don't see how this could work -- sh is in
   /bin, so you couldn't even run /etc/rc, if / and /usr were in different
   partitions.
Did you not finish reading my posting?? I mentioned that 'init' needed to
be fixed, and even gave the output from 'df'

   I think any Sun admin who saw you running with / and /usr in the same
   partition would die laughing.
It's exactly because the default setup has / and /usr in the same partition
that I nearly THREW UP and I sat down and fixed that IMMEDIATELY.

   there are many more changes which are necessary to move stuff
   from /bin into /usr/bin, and make it 'stick' properly.

I believe I made it quite clear in my previous posting that / and /usr
are in seperate postings. I copied all the binaries that I absolutely
needed into /sbin. That is essentially what Sun did as well.

I know what is going on. A sun machine needs / and /usr both to run single
user. It does mount /usr as read-only, but it needs some of the binaries
there. They place only about 6 programs in /sbin (hostname, ifconfig, init,
mount, sh, and one called intr). I found that I needed a bunch more in
/sbin -- every program that /etc/rc ever needs.

And, I had to modify init.c so that init would know to look for sh and
fsck in /sbin instead of /bin.

Really, it is working, and you can tell because my root partition is
using LESS than 15M of disk while my /usr is enormous.

Filesystem      512-blks    used   avail capacity  Mounted on
/dev/wd0a          62462   11490   44724    20%    /
/dev/wd0g         187742  153470   15496    91%    /usr

It *DOES* work.
 <tdr.
--

This space not left unintentionally unblank.		deraadt@newt.cuc.ab.ca