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

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!bootes.sds.no!toreh
  3. From: toreh@bootes.sds.no (Tore Haraldsen)
  4. Subject: Re: 386BSD: /bin -> /usr/bin reorganization
  5. Message-ID: <1992Nov20.030832.7666@ulrik.uio.no>
  6. Sender: news@ulrik.uio.no (Mr News)
  7. Nntp-Posting-Host: 192.68.77.217
  8. Organization: Statens Datasentral A/S, SDS, Norway
  9. References: <1992Nov18.064604.2992@pool.info.sunyit.edu> <CGD.92Nov18155017@eden.CS.Berkeley.EDU> <DERAADT.92Nov19133341@newt.newt.cuc.ab.ca>
  10. Date: Fri, 20 Nov 1992 03:08:32 GMT
  11. Lines: 92
  12.  
  13. In article <DERAADT.92Nov19133341@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
  14. >In article <CGD.92Nov18155017@eden.CS.Berkeley.EDU> cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou) writes:
  15. >   In article <DERAADT.92Nov17041728@newt.newt.cuc.ab.ca> deraadt@newt.cuc.ab.ca (Theo de Raadt) writes:
  16. >   >Among a large number of other Sunifications I have made to my 386BSD
  17. >   >system, I've made this one:
  18. >   >
  19. >   >lrwxr-xr-x    1 root            8 Oct 24 21:05 bin@ -> /usr/bin
  20. >   >
  21. >
  22. >   there are problems with this: notably, straight bsd systems
  23. >   aren't "meant" to mount /usr when they're brought up into single user
  24. >   mode.
  25. >
  26. >   i assume you're running with / and /usr physically residing in the same
  27. >   partition.  otherwise, i don't see how this could work -- sh is in
  28. >   /bin, so you couldn't even run /etc/rc, if / and /usr were in different
  29. >   partitions.
  30. >Did you not finish reading my posting?? I mentioned that 'init' needed to
  31. >be fixed, and even gave the output from 'df'
  32. >
  33. >   I think any Sun admin who saw you running with / and /usr in the same
  34. >   partition would die laughing.
  35. >It's exactly because the default setup has / and /usr in the same partition
  36. >that I nearly THREW UP and I sat down and fixed that IMMEDIATELY.
  37. >
  38. >   there are many more changes which are necessary to move stuff
  39. >   from /bin into /usr/bin, and make it 'stick' properly.
  40. >
  41. >I believe I made it quite clear in my previous posting that / and /usr
  42. >are in seperate postings. I copied all the binaries that I absolutely
  43. >needed into /sbin. That is essentially what Sun did as well.
  44. >
  45. >I know what is going on. A sun machine needs / and /usr both to run single
  46. >user. It does mount /usr as read-only, but it needs some of the binaries
  47. >there. They place only about 6 programs in /sbin (hostname, ifconfig, init,
  48. >mount, sh, and one called intr). I found that I needed a bunch more in
  49. >/sbin -- every program that /etc/rc ever needs.
  50. >
  51. >And, I had to modify init.c so that init would know to look for sh and
  52. >fsck in /sbin instead of /bin.
  53. >
  54. >Really, it is working, and you can tell because my root partition is
  55. >using LESS than 15M of disk while my /usr is enormous.
  56. >
  57. >Filesystem      512-blks    used   avail capacity  Mounted on
  58. >/dev/wd0a          62462   11490   44724    20%    /
  59. >/dev/wd0g         187742  153470   15496    91%    /usr
  60. >
  61. >It *DOES* work.
  62. > <tdr.
  63. >--
  64. >
  65. >This space not left unintentionally unblank.        deraadt@newt.cuc.ab.ca
  66.  
  67. I split out /usr in its own partition two months ago WITHOUT moving any
  68. programs around. It works fine, as far as I can see.
  69.  
  70. I have two 300Mb SCSI disks in my home machine,
  71.  
  72. sd0 contains
  73.     MS-DOS, 386bsd / & swap, SCO ODT 2.0 / partitions.
  74.  
  75. sd1 contains
  76.     MS-DOS, 386bsd /usr, SCO ODT 2.0 /u partitions.
  77.  
  78. What is so strange or wonderful about that? The only pain in the ass
  79. was setting it up initially. I did the following (courtesy the
  80. limitations in 386bsd install & disklabel programs):
  81.  
  82. 1) Install 386bsd in minimum partition on sd0.
  83. 2) Swap SCSI numbers.
  84. 3) Install 386bsd in reasonably-sized partition on sd1(sd0).
  85. 4) Swap SCSI numbers back.
  86. 5) Boot from fixit.fs.
  87. 6) Remove all files from sd1a.
  88. 7) Move all of sd0a/usr to sd1a/ with cpio -p.
  89. 8) Remove sd0a/usr.
  90. 9) Save remaining files from sd0a/ on sd1a/ with cpio -o.
  91. 10)Redesign label of sd0 with disklabel, keep 16Mb for root, leave the
  92.    rest for swapping.
  93. 11)Re-create sd0a/
  94. 12)Move contents back to sd0a from saved stuff on sd1a.
  95. 13)Modify sd0a/etc/fstab to reflect partitioning.
  96. 14)Reboot - that's it!!
  97.  
  98. You do the same with two WD-type drives with no sweat.
  99.  
  100. -- tore
  101. -- 
  102. ------------------------------------------------------------------------
  103. Tore Haraldsen, Statens Datasentral A/S - SDS, Norway
  104. email: toreh@bootes.sds.no
  105.