*BSD News Article 8180


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!mudos!mju
From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
Subject: Re: 386BSD: /bin -> /usr/bin reorganization
Message-ID: <ByCt8x.2xw@mudos.ann-arbor.mi.us>
Date: Fri, 27 Nov 1992 02:50:56 GMT
References: <1992Nov18.064604.2992@pool.info.sunyit.edu>> <CGD.92Nov18155017@eden.CS.Berkeley.EDU> <awesley.722734655@neumann.une.edu.au>
Organization: The Programmer's Pit Stop, Ann Arbor MI
Lines: 39

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.

Well, in order to replace /bin with a symlink to /usr/bin, you have to
make some additional changes to the filesystem organization.

First of all, /sbin contains binaries that are necessary when booting
the system or otherwise useful when running in single-user mode.
Things like df, init, mv, rm, clri, mount/umount, mkfs, and so forth
-- a lot of this stuff you're probably accustomed to seeing in /etc.
/bin/sh also moves to /sbin, so you have a shell without needing /bin.

/usr/sbin contains system administration-related binaries that are not
needed when booting the system or when in single-user mode.  For
example, the various networking daemons, sar, swap, link, and so
forth.  You might be accustomed to seeing this stuff either in
/usr/bin, /etc, or /usr/etc.

/usr/ucb contains BSD-specific binaries, or binaries used in
implementing the BSD-compatibility package (SVR4 only).

/usr/bin now holds all the other binaries.

Note that I only have experience with the SVR4 layout -- Sun's may
differ, although they should be pretty close.

-- 
Marc Unangst, N8VRH         | "There are two ways to solve this problem:
mju@mudos.ann-arbor.mi.us   | the hard way, and the easy way.  Let's start
                            | with the hard way."
                            |   - W. Scheider, from a Physics lecture