*BSD News Article 7839


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!olivea!charnel!sifon!CC.UMontreal.CA!IRO.UMontreal.CA!newsflash.concordia.ca!mizar.cc.umanitoba.ca!access.usask.ca!kakwa.ucs.ualberta.ca!alberta!cpsc.ucalgary.ca!xenlink!newt.cuc.ab.ca!deraadt
From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
Newsgroups: comp.unix.bsd
Subject: 386BSD: /bin -> /usr/bin reorganization
Message-ID: <DERAADT.92Nov17041728@newt.newt.cuc.ab.ca>
Date: 17 Nov 92 11:17:28 GMT
Sender: news@newt.cuc.ab.ca
Organization: little lizard city
Lines: 35
Nntp-Posting-Host: newt

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

This may not seem significant, but I am of course running with not just
one partition, but many:

Filesystem        kbytes    used   avail capacity  Mounted on
/dev/wd0a          31231    5697   22410    20%    /
/dev/wd0g          93871   76735    7748    91%    /usr
/dev/wd0e          31231      41   28066     0%    /tmp
/dev/wd1a         318294  134528  151936    47%    /gecko.userb
/dev/wd0h          31231       1   28106     0%    /gecko.usera
newt:/newt.usera  564164  416208   91539    82%    /newt.usera

I'm really happy with this change. It's always a pain when I write programs
and I want to give an absolute path to a program. When the program is written
for different architectures, things like uptime can end up being in one of
5 places!

Anyone interested in merging a change like this one in?
 <tdr.

ps. Anyone interested in doing this themselves, easiest is to do this...
	1. cp /bin/* /sbin
	2. edit init.c and change it so that it runs programs from /sbin
	   instead of /bin
	3. install new init; reboot
	4. cp /bin/* /usr/bin; rm -rf /bin; cd /; ln -s /usr/bin
	5. Delete all the unneccesary programs that are now in /usr/sbin
	   Note: Many are required for rc and rc.single to run.
--

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