home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9092 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.9 KB  |  68 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!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
  3. From: deraadt@newt.cuc.ab.ca (Theo de Raadt)
  4. Subject: Re: 386BSD: /bin -> /usr/bin reorganization
  5. In-Reply-To: cgd@eden.CS.Berkeley.EDU's message of 18 Nov 92 23: 50:17 GMT
  6. Message-ID: <DERAADT.92Nov19133341@newt.newt.cuc.ab.ca>
  7. Sender: news@newt.cuc.ab.ca
  8. Nntp-Posting-Host: newt
  9. Organization: little lizard city
  10. References: <DERAADT.92Nov17041728@newt.newt.cuc.ab.ca>
  11.     <1992Nov18.064604.2992@pool.info.sunyit.edu>
  12.     <CGD.92Nov18155017@eden.CS.Berkeley.EDU>
  13. Date: Thu, 19 Nov 1992 20:33:41 GMT
  14. Lines: 52
  15.  
  16. In article <CGD.92Nov18155017@eden.CS.Berkeley.EDU> cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou) writes:
  17.    In article <DERAADT.92Nov17041728@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
  18.    >Among a large number of other Sunifications I have made to my 386BSD
  19.    >system, I've made this one:
  20.    >
  21.    >lrwxr-xr-x    1 root            8 Oct 24 21:05 bin@ -> /usr/bin
  22.    >
  23.  
  24.    there are problems with this: notably, straight bsd systems
  25.    aren't "meant" to mount /usr when they're brought up into single user
  26.    mode.
  27.  
  28.    i assume you're running with / and /usr physically residing in the same
  29.    partition.  otherwise, i don't see how this could work -- sh is in
  30.    /bin, so you couldn't even run /etc/rc, if / and /usr were in different
  31.    partitions.
  32. Did you not finish reading my posting?? I mentioned that 'init' needed to
  33. be fixed, and even gave the output from 'df'
  34.  
  35.    I think any Sun admin who saw you running with / and /usr in the same
  36.    partition would die laughing.
  37. It's exactly because the default setup has / and /usr in the same partition
  38. that I nearly THREW UP and I sat down and fixed that IMMEDIATELY.
  39.  
  40.    there are many more changes which are necessary to move stuff
  41.    from /bin into /usr/bin, and make it 'stick' properly.
  42.  
  43. I believe I made it quite clear in my previous posting that / and /usr
  44. are in seperate postings. I copied all the binaries that I absolutely
  45. needed into /sbin. That is essentially what Sun did as well.
  46.  
  47. I know what is going on. A sun machine needs / and /usr both to run single
  48. user. It does mount /usr as read-only, but it needs some of the binaries
  49. there. They place only about 6 programs in /sbin (hostname, ifconfig, init,
  50. mount, sh, and one called intr). I found that I needed a bunch more in
  51. /sbin -- every program that /etc/rc ever needs.
  52.  
  53. And, I had to modify init.c so that init would know to look for sh and
  54. fsck in /sbin instead of /bin.
  55.  
  56. Really, it is working, and you can tell because my root partition is
  57. using LESS than 15M of disk while my /usr is enormous.
  58.  
  59. Filesystem      512-blks    used   avail capacity  Mounted on
  60. /dev/wd0a          62462   11490   44724    20%    /
  61. /dev/wd0g         187742  153470   15496    91%    /usr
  62.  
  63. It *DOES* work.
  64.  <tdr.
  65. --
  66.  
  67. This space not left unintentionally unblank.        deraadt@newt.cuc.ab.ca
  68.